Commit 993268c0a082f0f42d575a97239df5d1fe32bd6a

Authored by 徐近程
1 parent 9486142e

童声共济免审

src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
@@ -74,6 +74,8 @@ public class VideosControllerApi { @@ -74,6 +74,8 @@ public class VideosControllerApi {
74 ShyVideos shyVideos1 = new ShyVideos(); 74 ShyVideos shyVideos1 = new ShyVideos();
75 //g得到视频id去查询是否已有 75 //g得到视频id去查询是否已有
76 String videoId = json.getString("videoId"); 76 String videoId = json.getString("videoId");
  77 + //目击者类型 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督
  78 + String source = json.getString("source");
77 shyVideos1.setVideo_id(videoId); 79 shyVideos1.setVideo_id(videoId);
78 Integer duration = json.getInteger("duration"); 80 Integer duration = json.getInteger("duration");
79 if (CommonUtils.isNotNull(duration)) duration = duration / 1000; 81 if (CommonUtils.isNotNull(duration)) duration = duration / 1000;
@@ -94,6 +96,7 @@ public class VideosControllerApi { @@ -94,6 +96,7 @@ public class VideosControllerApi {
94 ShyVideos shyVideos = listshyVideos.get(0); 96 ShyVideos shyVideos = listshyVideos.get(0);
95 //封装数据入库 97 //封装数据入库
96 shyVideos.setVideo_id(videoId); 98 shyVideos.setVideo_id(videoId);
  99 + shyVideos.setSource(source);
97 shyVideos.setVideo_title(json.getString("videoTitle")); 100 shyVideos.setVideo_title(json.getString("videoTitle"));
98 shyVideos.setVideo_url(json.getString("videoUrl")); 101 shyVideos.setVideo_url(json.getString("videoUrl"));
99 String videoCoverUrl = json.getString("videoCoverUrl"); 102 String videoCoverUrl = json.getString("videoCoverUrl");
src/main/java/com/cnlive/shenhe/entity/ShyVideos.java
@@ -139,6 +139,11 @@ public class ShyVideos { @@ -139,6 +139,11 @@ public class ShyVideos {
139 private String video_user_id; 139 private String video_user_id;
140 140
141 /** 141 /**
  142 + * 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督
  143 + */
  144 + private String source;
  145 +
  146 + /**
142 * 抽帧图片地址 147 * 抽帧图片地址
143 */ 148 */
144 private String avsample_imgs; 149 private String avsample_imgs;
@@ -667,6 +672,24 @@ public class ShyVideos { @@ -667,6 +672,24 @@ public class ShyVideos {
667 } 672 }
668 673
669 /** 674 /**
  675 + * 获取0-目击者 1-童声共济 2-全民健身 3-目击者政府监督
  676 + *
  677 + * @return source - 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督
  678 + */
  679 + public String getSource() {
  680 + return source;
  681 + }
  682 +
  683 + /**
  684 + * 设置0-目击者 1-童声共济 2-全民健身 3-目击者政府监督
  685 + *
  686 + * @param source 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督
  687 + */
  688 + public void setSource(String source) {
  689 + this.source = source;
  690 + }
  691 +
  692 + /**
670 * 获取抽帧图片地址 693 * 获取抽帧图片地址
671 * 694 *
672 * @return avsample_imgs - 抽帧图片地址 695 * @return avsample_imgs - 抽帧图片地址
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
@@ -414,7 +414,7 @@ public class VideosServiceImpl { @@ -414,7 +414,7 @@ public class VideosServiceImpl {
414 //审核类型,1:免审,2:机审,3:人工审 414 //审核类型,1:免审,2:机审,3:人工审
415 Integer shenheType = 3; 415 Integer shenheType = 3;
416 //如果当前sp是免审sp 416 //如果当前sp是免审sp
417 - if (sites.contains(shyVideo.getSpid())) { 417 + if (sites.contains(shyVideo.getSpid()) || "1".equals(shyVideo.getSource())) {
418 //免审 418 //免审
419 shenheType = 1; 419 shenheType = 1;
420 } else { 420 } else {
src/main/resources/mapper/ShyVideosMapper.xml
@@ -35,6 +35,7 @@ @@ -35,6 +35,7 @@
35 <result column="duration" jdbcType="INTEGER" property="duration" /> 35 <result column="duration" jdbcType="INTEGER" property="duration" />
36 <result column="category" jdbcType="VARCHAR" property="category" /> 36 <result column="category" jdbcType="VARCHAR" property="category" />
37 <result column="video_user_id" jdbcType="VARCHAR" property="video_user_id" /> 37 <result column="video_user_id" jdbcType="VARCHAR" property="video_user_id" />
  38 + <result column="source" jdbcType="VARCHAR" property="source" />
38 <result column="avsample_imgs" jdbcType="LONGVARCHAR" property="avsample_imgs" /> 39 <result column="avsample_imgs" jdbcType="LONGVARCHAR" property="avsample_imgs" />
39 <result column="avsample_msg" jdbcType="LONGVARCHAR" property="avsample_msg" /> 40 <result column="avsample_msg" jdbcType="LONGVARCHAR" property="avsample_msg" />
40 </resultMap> 41 </resultMap>