Commit 993268c0a082f0f42d575a97239df5d1fe32bd6a
1 parent
9486142e
童声共济免审
Showing
4 changed files
with
28 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
| ... | ... | @@ -74,6 +74,8 @@ public class VideosControllerApi { |
| 74 | 74 | ShyVideos shyVideos1 = new ShyVideos(); |
| 75 | 75 | //g得到视频id去查询是否已有 |
| 76 | 76 | String videoId = json.getString("videoId"); |
| 77 | + //目击者类型 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 | |
| 78 | + String source = json.getString("source"); | |
| 77 | 79 | shyVideos1.setVideo_id(videoId); |
| 78 | 80 | Integer duration = json.getInteger("duration"); |
| 79 | 81 | if (CommonUtils.isNotNull(duration)) duration = duration / 1000; |
| ... | ... | @@ -94,6 +96,7 @@ public class VideosControllerApi { |
| 94 | 96 | ShyVideos shyVideos = listshyVideos.get(0); |
| 95 | 97 | //封装数据入库 |
| 96 | 98 | shyVideos.setVideo_id(videoId); |
| 99 | + shyVideos.setSource(source); | |
| 97 | 100 | shyVideos.setVideo_title(json.getString("videoTitle")); |
| 98 | 101 | shyVideos.setVideo_url(json.getString("videoUrl")); |
| 99 | 102 | String videoCoverUrl = json.getString("videoCoverUrl"); | ... | ... |
src/main/java/com/cnlive/shenhe/entity/ShyVideos.java
| ... | ... | @@ -139,6 +139,11 @@ public class ShyVideos { |
| 139 | 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 | 149 | private String avsample_imgs; |
| ... | ... | @@ -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 | 695 | * @return avsample_imgs - 抽帧图片地址 | ... | ... |
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
| ... | ... | @@ -414,7 +414,7 @@ public class VideosServiceImpl { |
| 414 | 414 | //审核类型,1:免审,2:机审,3:人工审 |
| 415 | 415 | Integer shenheType = 3; |
| 416 | 416 | //如果当前sp是免审sp |
| 417 | - if (sites.contains(shyVideo.getSpid())) { | |
| 417 | + if (sites.contains(shyVideo.getSpid()) || "1".equals(shyVideo.getSource())) { | |
| 418 | 418 | //免审 |
| 419 | 419 | shenheType = 1; |
| 420 | 420 | } else { | ... | ... |
src/main/resources/mapper/ShyVideosMapper.xml
| ... | ... | @@ -35,6 +35,7 @@ |
| 35 | 35 | <result column="duration" jdbcType="INTEGER" property="duration" /> |
| 36 | 36 | <result column="category" jdbcType="VARCHAR" property="category" /> |
| 37 | 37 | <result column="video_user_id" jdbcType="VARCHAR" property="video_user_id" /> |
| 38 | + <result column="source" jdbcType="VARCHAR" property="source" /> | |
| 38 | 39 | <result column="avsample_imgs" jdbcType="LONGVARCHAR" property="avsample_imgs" /> |
| 39 | 40 | <result column="avsample_msg" jdbcType="LONGVARCHAR" property="avsample_msg" /> |
| 40 | 41 | </resultMap> | ... | ... |