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,7 +68,8 @@ public class ContentControllerApi {
68 } 68 }
69 shyContent1.setCreate_date(CommonUtils.getCurrentTime()); 69 shyContent1.setCreate_date(CommonUtils.getCurrentTime());
70 shyContent1.setCallback(json.getString("callback"));//回调地址 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 shyContent1.setSp_id(json.getInteger("spId"));//spid 73 shyContent1.setSp_id(json.getInteger("spId"));//spid
73 shyContent1.setContent_tag("content");//图文标签 74 shyContent1.setContent_tag("content");//图文标签
74 shyContent1.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态 75 shyContent1.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态
@@ -98,7 +99,8 @@ public class ContentControllerApi { @@ -98,7 +99,8 @@ public class ContentControllerApi {
98 } 99 }
99 shyContent.setCreate_date(CommonUtils.getCurrentTime()); 100 shyContent.setCreate_date(CommonUtils.getCurrentTime());
100 shyContent.setCallback(json.getString("callback"));//回调地址 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 shyContent.setSp_id(json.getInteger("spId"));//spid 104 shyContent.setSp_id(json.getInteger("spId"));//spid
103 shyContent.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态 105 shyContent.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态
104 shyContent.setLast_update(CommonUtils.getCurrentTime());//最后一次更新时间 106 shyContent.setLast_update(CommonUtils.getCurrentTime());//最后一次更新时间
@@ -146,7 +148,7 @@ public class ContentControllerApi { @@ -146,7 +148,7 @@ public class ContentControllerApi {
146 shyContent1.setSp_id(json.getInteger("spId"));//spid 148 shyContent1.setSp_id(json.getInteger("spId"));//spid
147 shyContent1.setAuthor(json.getString("userId"));//用户id 149 shyContent1.setAuthor(json.getString("userId"));//用户id
148 shyContent1.setSource(json.getString("nickName"));//用户昵称 150 shyContent1.setSource(json.getString("nickName"));//用户昵称
149 - shyContent1.setVideoId(json.getString("videoId"));//关联videoId 151 + shyContent1.setVideo_id(json.getString("videoId"));//关联videoId
150 shyContent1.setContent_tag("moment");//图文标签 152 shyContent1.setContent_tag("moment");//图文标签
151 shyContent1.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态 153 shyContent1.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态
152 shyContent1.setLast_update(CommonUtils.getCurrentTime());//最后一次更新时间 154 shyContent1.setLast_update(CommonUtils.getCurrentTime());//最后一次更新时间
@@ -177,7 +179,7 @@ public class ContentControllerApi { @@ -177,7 +179,7 @@ public class ContentControllerApi {
177 shyContent.setSp_id(json.getInteger("spId"));//spid 179 shyContent.setSp_id(json.getInteger("spId"));//spid
178 shyContent.setAuthor(json.getString("userId"));//用户id 180 shyContent.setAuthor(json.getString("userId"));//用户id
179 shyContent.setSource(json.getString("nickName"));//用户昵称 181 shyContent.setSource(json.getString("nickName"));//用户昵称
180 - shyContent.setVideoId(json.getString("videoId"));//关联videoId 182 + shyContent.setVideo_id(json.getString("videoId"));//关联videoId
181 shyContent.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态 183 shyContent.setReceive_status(CommonConst.RECEIVE_BEFORE);//领取状态
182 shyContent.setLast_update(CommonUtils.getCurrentTime());//最后一次更新时间 184 shyContent.setLast_update(CommonUtils.getCurrentTime());//最后一次更新时间
183 boolean YorN = contentService.impotContent(shyContent); 185 boolean YorN = contentService.impotContent(shyContent);
src/main/java/com/cnlive/shenhe/entity/ShyContent.java
@@ -19,11 +19,6 @@ public class ShyContent { @@ -19,11 +19,6 @@ public class ShyContent {
19 private Integer sp_id; 19 private Integer sp_id;
20 20
21 /** 21 /**
22 - * 内容标题  
23 - */  
24 - private String title;  
25 -  
26 - /**  
27 * 标题图片(头像) 22 * 标题图片(头像)
28 */ 23 */
29 private String title_image; 24 private String title_image;
@@ -34,11 +29,16 @@ public class ShyContent { @@ -34,11 +29,16 @@ public class ShyContent {
34 private String content_tag; 29 private String content_tag;
35 30
36 /** 31 /**
37 - * 图文发布的url 32 + * 图文发布h5的url
38 */ 33 */
39 private String content_url; 34 private String content_url;
40 35
41 /** 36 /**
  37 + * 图文发布pc的地址
  38 + */
  39 + private String content_pc_url;
  40 +
  41 + /**
42 * 审核类型,1:免审,2:机审,3:人工审 42 * 审核类型,1:免审,2:机审,3:人工审
43 */ 43 */
44 private Integer shenhe_type; 44 private Integer shenhe_type;
@@ -66,7 +66,7 @@ public class ShyContent { @@ -66,7 +66,7 @@ public class ShyContent {
66 /** 66 /**
67 * 关联的点播id 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,12 +102,19 @@ public class ShyContent {
102 * 审核意见 102 * 审核意见
103 */ 103 */
104 private String shenhe_msg; 104 private String shenhe_msg;
  105 +
  106 + /**
  107 + * 内容标题
  108 + */
  109 + private String title;
105 110
106 /** 111 /**
107 * sp名称 112 * sp名称
108 */ 113 */
109 @Transient 114 @Transient
110 private String sp_desc; 115 private String sp_desc;
  116 +
  117 +
111 118
112 /** 119 /**
113 * @return id 120 * @return id
@@ -160,24 +167,6 @@ public class ShyContent { @@ -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 * @return title_image - 标题图片(头像) 172 * @return title_image - 标题图片(头像)
@@ -214,24 +203,42 @@ public class ShyContent { @@ -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 public String getContent_url() { 210 public String getContent_url() {
222 return content_url; 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 public void setContent_url(String content_url) { 219 public void setContent_url(String content_url) {
231 this.content_url = content_url; 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 * 获取审核类型,1:免审,2:机审,3:人工审 242 * 获取审核类型,1:免审,2:机审,3:人工审
236 * 243 *
237 * @return shenhe_type - 审核类型,1:免审,2:机审,3:人工审 244 * @return shenhe_type - 审核类型,1:免审,2:机审,3:人工审
@@ -324,19 +331,19 @@ public class ShyContent { @@ -324,19 +331,19 @@ public class ShyContent {
324 /** 331 /**
325 * 获取关联的点播id 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 * 设置关联的点播id 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,5 +479,21 @@ public class ShyContent {
472 public void setSp_desc(String sp_desc) { 479 public void setSp_desc(String sp_desc) {
473 this.sp_desc = sp_desc; 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 \ No newline at end of file 500 \ No newline at end of file
src/main/java/com/cnlive/shenhe/serviceImpl/ContentServiceImpl.java
@@ -238,10 +238,10 @@ public class ContentServiceImpl { @@ -238,10 +238,10 @@ public class ContentServiceImpl {
238 //如果当前图文是朋友圈的视频,通知点播云 238 //如果当前图文是朋友圈的视频,通知点播云
239 if(CommonUtils.isNotEmpty(content.getContent_tag()) 239 if(CommonUtils.isNotEmpty(content.getContent_tag())
240 &&content.getContent_tag().equals("moment") 240 &&content.getContent_tag().equals("moment")
241 - &&CommonUtils.isNotEmpty(content.getVideoId()) 241 + &&CommonUtils.isNotEmpty(content.getVideo_id())
242 &&state==CommonConst.AUDIT_REFUSE){ 242 &&state==CommonConst.AUDIT_REFUSE){
243 ShyVideos shyVideos1 = new ShyVideos(); 243 ShyVideos shyVideos1 = new ShyVideos();
244 - shyVideos1.setVideo_id(content.getVideoId()); 244 + shyVideos1.setVideo_id(content.getVideo_id());
245 List<ShyVideos> listshyVideos = videosService.findshyVideo(shyVideos1); 245 List<ShyVideos> listshyVideos = videosService.findshyVideo(shyVideos1);
246 if (listshyVideos.size() > 0) { 246 if (listshyVideos.size() > 0) {
247 ShyVideos shyVideos = listshyVideos.get(0); 247 ShyVideos shyVideos = listshyVideos.get(0);
src/main/resources/mapper/ShyContentMapper.xml
@@ -8,16 +8,16 @@ @@ -8,16 +8,16 @@
8 <id column="id" jdbcType="INTEGER" property="id" /> 8 <id column="id" jdbcType="INTEGER" property="id" />
9 <result column="content_id" jdbcType="VARCHAR" property="content_id" /> 9 <result column="content_id" jdbcType="VARCHAR" property="content_id" />
10 <result column="sp_id" jdbcType="INTEGER" property="sp_id" /> 10 <result column="sp_id" jdbcType="INTEGER" property="sp_id" />
11 - <result column="title" jdbcType="VARCHAR" property="title" />  
12 <result column="title_image" jdbcType="VARCHAR" property="title_image" /> 11 <result column="title_image" jdbcType="VARCHAR" property="title_image" />
13 <result column="content_tag" jdbcType="VARCHAR" property="content_tag" /> 12 <result column="content_tag" jdbcType="VARCHAR" property="content_tag" />
14 <result column="content_url" jdbcType="VARCHAR" property="content_url" /> 13 <result column="content_url" jdbcType="VARCHAR" property="content_url" />
  14 + <result column="content_pc_url" jdbcType="VARCHAR" property="content_pc_url" />
15 <result column="shenhe_type" jdbcType="INTEGER" property="shenhe_type" /> 15 <result column="shenhe_type" jdbcType="INTEGER" property="shenhe_type" />
16 <result column="content_status" jdbcType="INTEGER" property="content_status" /> 16 <result column="content_status" jdbcType="INTEGER" property="content_status" />
17 <result column="callback" jdbcType="VARCHAR" property="callback" /> 17 <result column="callback" jdbcType="VARCHAR" property="callback" />
18 <result column="source" jdbcType="VARCHAR" property="source" /> 18 <result column="source" jdbcType="VARCHAR" property="source" />
19 <result column="author" jdbcType="VARCHAR" property="author" /> 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 <result column="content_time" jdbcType="TIMESTAMP" property="content_time" /> 21 <result column="content_time" jdbcType="TIMESTAMP" property="content_time" />
22 <result column="create_date" jdbcType="TIMESTAMP" property="create_date" /> 22 <result column="create_date" jdbcType="TIMESTAMP" property="create_date" />
23 <result column="last_update" jdbcType="TIMESTAMP" property="last_update" /> 23 <result column="last_update" jdbcType="TIMESTAMP" property="last_update" />
@@ -25,5 +25,6 @@ @@ -25,5 +25,6 @@
25 <result column="auditor_id" jdbcType="VARCHAR" property="auditor_id" /> 25 <result column="auditor_id" jdbcType="VARCHAR" property="auditor_id" />
26 <result column="updater" jdbcType="VARCHAR" property="updater" /> 26 <result column="updater" jdbcType="VARCHAR" property="updater" />
27 <result column="shenhe_msg" jdbcType="VARCHAR" property="shenhe_msg" /> 27 <result column="shenhe_msg" jdbcType="VARCHAR" property="shenhe_msg" />
  28 + <result column="title" jdbcType="LONGVARCHAR" property="title" />
28 </resultMap> 29 </resultMap>
29 </mapper> 30 </mapper>
30 \ No newline at end of file 31 \ No newline at end of file
src/main/resources/templates/page/contentDetail.html
@@ -85,8 +85,13 @@ @@ -85,8 +85,13 @@
85 <h5 th:text="${content.sp_id}+'('+${content.sp_desc}+')'">821403</h5> 85 <h5 th:text="${content.sp_id}+'('+${content.sp_desc}+')'">821403</h5>
86 </div> 86 </div>
87 </div> 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 <div class="form-group"> 95 <div class="form-group">
91 <label for="activity_id" class="control-label col-sm-2">图文标题:</label> 96 <label for="activity_id" class="control-label col-sm-2">图文标题:</label>
92 <div class="col-sm-10"> 97 <div class="col-sm-10">