Commit 350d4af1ca3275f9f49630ff79eb36a534dc10c3

Authored by liwei2917
1 parent d77ed1db

修改图文审核内容

src/main/java/com/cnlive/shenhe/api/ContentControllerApi.java
... ... @@ -68,7 +68,8 @@ public class ContentControllerApi {
68 68 }
69 69 shyContent1.setCreate_date(CommonUtils.getCurrentTime());
70 70 shyContent1.setCallback(json.getString("callback"));//回调地址
71   - shyContent1.setContent_url(json.getString("contentUrl"));//图文发布的url
  71 + shyContent1.setContent_url(json.getString("contentUrl"));//图文发布h5的url
  72 + shyContent1.setContent_pc_url(json.getString("contentPCUrl"));//图文发布pc的url
72 73 shyContent1.setSp_id(json.getInteger("spId"));//spid
73 74 shyContent1.setContent_tag("content");//图文标签
74 75 shyContent1.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态
... ... @@ -98,7 +99,8 @@ public class ContentControllerApi {
98 99 }
99 100 shyContent.setCreate_date(CommonUtils.getCurrentTime());
100 101 shyContent.setCallback(json.getString("callback"));//回调地址
101   - shyContent.setContent_url(json.getString("contentUrl"));//图文发布的url
  102 + shyContent.setContent_url(json.getString("contentUrl"));//图文发布h5的url
  103 + shyContent.setContent_pc_url(json.getString("contentPCUrl"));//图文发布pc的url
102 104 shyContent.setSp_id(json.getInteger("spId"));//spid
103 105 shyContent.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态
104 106 shyContent.setLast_update(CommonUtils.getCurrentTime());//最后一次更新时间
... ... @@ -146,7 +148,7 @@ public class ContentControllerApi {
146 148 shyContent1.setSp_id(json.getInteger("spId"));//spid
147 149 shyContent1.setAuthor(json.getString("userId"));//用户id
148 150 shyContent1.setSource(json.getString("nickName"));//用户昵称
149   - shyContent1.setVideoId(json.getString("videoId"));//关联videoId
  151 + shyContent1.setVideo_id(json.getString("videoId"));//关联videoId
150 152 shyContent1.setContent_tag("moment");//图文标签
151 153 shyContent1.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态
152 154 shyContent1.setLast_update(CommonUtils.getCurrentTime());//最后一次更新时间
... ... @@ -177,7 +179,7 @@ public class ContentControllerApi {
177 179 shyContent.setSp_id(json.getInteger("spId"));//spid
178 180 shyContent.setAuthor(json.getString("userId"));//用户id
179 181 shyContent.setSource(json.getString("nickName"));//用户昵称
180   - shyContent.setVideoId(json.getString("videoId"));//关联videoId
  182 + shyContent.setVideo_id(json.getString("videoId"));//关联videoId
181 183 shyContent.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态
182 184 shyContent.setLast_update(CommonUtils.getCurrentTime());//最后一次更新时间
183 185 boolean YorN = contentService.impotContent(shyContent);
... ...
src/main/java/com/cnlive/shenhe/entity/ShyContent.java
... ... @@ -19,11 +19,6 @@ public class ShyContent {
19 19 private Integer sp_id;
20 20  
21 21 /**
22   - * 内容标题
23   - */
24   - private String title;
25   -
26   - /**
27 22 * 标题图片(头像)
28 23 */
29 24 private String title_image;
... ... @@ -34,11 +29,16 @@ public class ShyContent {
34 29 private String content_tag;
35 30  
36 31 /**
37   - * 图文发布的url
  32 + * 图文发布h5的url
38 33 */
39 34 private String content_url;
40 35  
41 36 /**
  37 + * 图文发布pc的地址
  38 + */
  39 + private String content_pc_url;
  40 +
  41 + /**
42 42 * 审核类型,1:免审,2:机审,3:人工审
43 43 */
44 44 private Integer shenhe_type;
... ... @@ -66,7 +66,7 @@ public class ShyContent {
66 66 /**
67 67 * 关联的点播id
68 68 */
69   - private String videoId;
  69 + private String video_id;
70 70  
71 71 /**
72 72 * 图文的创建时间
... ... @@ -102,12 +102,19 @@ public class ShyContent {
102 102 * 审核意见
103 103 */
104 104 private String shenhe_msg;
  105 +
  106 + /**
  107 + * 内容标题
  108 + */
  109 + private String title;
105 110  
106 111 /**
107 112 * sp名称
108 113 */
109 114 @Transient
110 115 private String sp_desc;
  116 +
  117 +
111 118  
112 119 /**
113 120 * @return id
... ... @@ -160,24 +167,6 @@ public class ShyContent {
160 167 }
161 168  
162 169 /**
163   - * 获取内容标题
164   - *
165   - * @return title - 内容标题
166   - */
167   - public String getTitle() {
168   - return title;
169   - }
170   -
171   - /**
172   - * 设置内容标题
173   - *
174   - * @param title 内容标题
175   - */
176   - public void setTitle(String title) {
177   - this.title = title;
178   - }
179   -
180   - /**
181 170 * 获取标题图片(头像)
182 171 *
183 172 * @return title_image - 标题图片(头像)
... ... @@ -214,24 +203,42 @@ public class ShyContent {
214 203 }
215 204  
216 205 /**
217   - * 获取图文发布的url
  206 + * 获取图文发布h5的url
218 207 *
219   - * @return content_url - 图文发布的url
  208 + * @return content_url - 图文发布h5的url
220 209 */
221 210 public String getContent_url() {
222 211 return content_url;
223 212 }
224 213  
225 214 /**
226   - * 设置图文发布的url
  215 + * 设置图文发布h5的url
227 216 *
228   - * @param content_url 图文发布的url
  217 + * @param content_url 图文发布h5的url
229 218 */
230 219 public void setContent_url(String content_url) {
231 220 this.content_url = content_url;
232 221 }
233 222  
234 223 /**
  224 + * 获取图文发布pc的地址
  225 + *
  226 + * @return content_pc_url - 图文发布pc的地址
  227 + */
  228 + public String getContent_pc_url() {
  229 + return content_pc_url;
  230 + }
  231 +
  232 + /**
  233 + * 设置图文发布pc的地址
  234 + *
  235 + * @param content_pc_url 图文发布pc的地址
  236 + */
  237 + public void setContent_pc_url(String content_pc_url) {
  238 + this.content_pc_url = content_pc_url;
  239 + }
  240 +
  241 + /**
235 242 * 获取审核类型,1:免审,2:机审,3:人工审
236 243 *
237 244 * @return shenhe_type - 审核类型,1:免审,2:机审,3:人工审
... ... @@ -324,19 +331,19 @@ public class ShyContent {
324 331 /**
325 332 * 获取关联的点播id
326 333 *
327   - * @return videoId - 关联的点播id
  334 + * @return video_id - 关联的点播id
328 335 */
329   - public String getVideoId() {
330   - return videoId;
  336 + public String getVideo_id() {
  337 + return video_id;
331 338 }
332 339  
333 340 /**
334 341 * 设置关联的点播id
335 342 *
336   - * @param videoId 关联的点播id
  343 + * @param video_id 关联的点播id
337 344 */
338   - public void setVideoId(String videoId) {
339   - this.videoId = videoId;
  345 + public void setVideo_id(String video_id) {
  346 + this.video_id = video_id;
340 347 }
341 348  
342 349 /**
... ... @@ -472,5 +479,21 @@ public class ShyContent {
472 479 public void setSp_desc(String sp_desc) {
473 480 this.sp_desc = sp_desc;
474 481 }
  482 + /**
  483 + * 获取内容标题
  484 + *
  485 + * @return title - 内容标题
  486 + */
  487 + public String getTitle() {
  488 + return title;
  489 + }
475 490  
  491 + /**
  492 + * 设置内容标题
  493 + *
  494 + * @param title 内容标题
  495 + */
  496 + public void setTitle(String title) {
  497 + this.title = title;
  498 + }
476 499 }
477 500 \ No newline at end of file
... ...
src/main/java/com/cnlive/shenhe/serviceImpl/ContentServiceImpl.java
... ... @@ -238,10 +238,10 @@ public class ContentServiceImpl {
238 238 //如果当前图文是朋友圈的视频,通知点播云
239 239 if(CommonUtils.isNotEmpty(content.getContent_tag())
240 240 &&content.getContent_tag().equals("moment")
241   - &&CommonUtils.isNotEmpty(content.getVideoId())
  241 + &&CommonUtils.isNotEmpty(content.getVideo_id())
242 242 &&state==CommonConst.AUDIT_REFUSE){
243 243 ShyVideos shyVideos1 = new ShyVideos();
244   - shyVideos1.setVideo_id(content.getVideoId());
  244 + shyVideos1.setVideo_id(content.getVideo_id());
245 245 List<ShyVideos> listshyVideos = videosService.findshyVideo(shyVideos1);
246 246 if (listshyVideos.size() > 0) {
247 247 ShyVideos shyVideos = listshyVideos.get(0);
... ...
src/main/resources/mapper/ShyContentMapper.xml
... ... @@ -8,16 +8,16 @@
8 8 <id column="id" jdbcType="INTEGER" property="id" />
9 9 <result column="content_id" jdbcType="VARCHAR" property="content_id" />
10 10 <result column="sp_id" jdbcType="INTEGER" property="sp_id" />
11   - <result column="title" jdbcType="VARCHAR" property="title" />
12 11 <result column="title_image" jdbcType="VARCHAR" property="title_image" />
13 12 <result column="content_tag" jdbcType="VARCHAR" property="content_tag" />
14 13 <result column="content_url" jdbcType="VARCHAR" property="content_url" />
  14 + <result column="content_pc_url" jdbcType="VARCHAR" property="content_pc_url" />
15 15 <result column="shenhe_type" jdbcType="INTEGER" property="shenhe_type" />
16 16 <result column="content_status" jdbcType="INTEGER" property="content_status" />
17 17 <result column="callback" jdbcType="VARCHAR" property="callback" />
18 18 <result column="source" jdbcType="VARCHAR" property="source" />
19 19 <result column="author" jdbcType="VARCHAR" property="author" />
20   - <result column="videoId" jdbcType="VARCHAR" property="videoId" />
  20 + <result column="video_id" jdbcType="VARCHAR" property="video_id" />
21 21 <result column="content_time" jdbcType="TIMESTAMP" property="content_time" />
22 22 <result column="create_date" jdbcType="TIMESTAMP" property="create_date" />
23 23 <result column="last_update" jdbcType="TIMESTAMP" property="last_update" />
... ... @@ -25,5 +25,6 @@
25 25 <result column="auditor_id" jdbcType="VARCHAR" property="auditor_id" />
26 26 <result column="updater" jdbcType="VARCHAR" property="updater" />
27 27 <result column="shenhe_msg" jdbcType="VARCHAR" property="shenhe_msg" />
  28 + <result column="title" jdbcType="LONGVARCHAR" property="title" />
28 29 </resultMap>
29 30 </mapper>
30 31 \ No newline at end of file
... ...
src/main/resources/templates/page/contentDetail.html
... ... @@ -85,8 +85,13 @@
85 85 <h5 th:text="${content.sp_id}+'('+${content.sp_desc}+')'">821403</h5>
86 86 </div>
87 87 </div>
88   -
89   -
  88 + <div class="form-group">
  89 + <label for="program_id" class="control-label col-sm-2">pc地址:</label>
  90 +<!-- <button type="button" class="btn btn-primary pull-right" onclick="content(1);"></button> -->
  91 + <div class="col-sm-10">
  92 + <a th:href="@{${content.content_pc_url}}" th:text="${content.content_pc_url}" target="blank"></a>
  93 + </div>
  94 + </div>
90 95 <div class="form-group">
91 96 <label for="activity_id" class="control-label col-sm-2">图文标题:</label>
92 97 <div class="col-sm-10">
... ...