Commit 0f96cd666c5a62f437e22f57e29f5fe747d01053
1 parent
c8ef0267
增加点播视频MD5唯一值
Showing
3 changed files
with
50 additions
and
23 deletions
src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
| ... | ... | @@ -108,6 +108,7 @@ public class VideosControllerApi { |
| 108 | 108 | shyVideos.setVideo_desc(json.getString("videoIntro")); |
| 109 | 109 | shyVideos.setVideo_tags(json.getString("videoTag")); |
| 110 | 110 | shyVideos.setVideo_keyword(json.getString("videoKeyword")); |
| 111 | + shyVideos.setVideo_md5(json.getString("video_md5")); | |
| 111 | 112 | shyVideos.setVideo_upload_time(json.getDate(" uploadTime")); |
| 112 | 113 | shyVideos.setVideo_priority(json.getString("priority")); |
| 113 | 114 | shyVideos.setCallback(json.getString("callback")); |
| ... | ... | @@ -150,6 +151,7 @@ public class VideosControllerApi { |
| 150 | 151 | shyVideos1.setVideo_priority(json.getString("priority")); |
| 151 | 152 | shyVideos1.setCallback(json.getString("callback")); |
| 152 | 153 | shyVideos1.setSpid(json.getInteger("spId")); |
| 154 | + shyVideos1.setVideo_md5(json.getString("video_md5")); | |
| 153 | 155 | shyVideos1.setState(CommonConst.AUDIT_INTT); |
| 154 | 156 | shyVideos1.setBucket(json.getString("bucketName")); |
| 155 | 157 | shyVideos1.setPlat(json.getInteger("bucketType")); | ... | ... |
src/main/java/com/cnlive/shenhe/entity/ShyVideos.java
| ... | ... | @@ -12,6 +12,9 @@ public class ShyVideos { |
| 12 | 12 | |
| 13 | 13 | private Integer spid; |
| 14 | 14 | |
| 15 | + @Transient | |
| 16 | + private String spid_desc; | |
| 17 | + | |
| 15 | 18 | /** |
| 16 | 19 | * 点播url |
| 17 | 20 | */ |
| ... | ... | @@ -30,7 +33,7 @@ public class ShyVideos { |
| 30 | 33 | private String video_tags; |
| 31 | 34 | |
| 32 | 35 | /** |
| 33 | - * 更新者 | |
| 36 | + * 审核人姓名 | |
| 34 | 37 | */ |
| 35 | 38 | private String updater; |
| 36 | 39 | |
| ... | ... | @@ -65,7 +68,7 @@ public class ShyVideos { |
| 65 | 68 | private Integer shenhe_type; |
| 66 | 69 | |
| 67 | 70 | /** |
| 68 | - * 审核状态:0.未审核,1:已审核,2.拒绝 | |
| 71 | + * 审核状态:0-未审核 1-已通过 2-拒绝 3-自动审核失败 | |
| 69 | 72 | */ |
| 70 | 73 | private Integer state; |
| 71 | 74 | |
| ... | ... | @@ -139,11 +142,16 @@ public class ShyVideos { |
| 139 | 142 | private String video_user_id; |
| 140 | 143 | |
| 141 | 144 | /** |
| 142 | - * 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 | |
| 145 | + * 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 4-老年大学 5-美食中国 | |
| 143 | 146 | */ |
| 144 | 147 | private String source; |
| 145 | 148 | |
| 146 | 149 | /** |
| 150 | + * 视频唯一值 | |
| 151 | + */ | |
| 152 | + private String video_md5; | |
| 153 | + | |
| 154 | + /** | |
| 147 | 155 | * 抽帧图片地址 |
| 148 | 156 | */ |
| 149 | 157 | private String avsample_imgs; |
| ... | ... | @@ -152,8 +160,6 @@ public class ShyVideos { |
| 152 | 160 | * 抽帧返回信息(主要找问题时使用) |
| 153 | 161 | */ |
| 154 | 162 | private String avsample_msg; |
| 155 | - @Transient | |
| 156 | - private String spid_desc; | |
| 157 | 163 | |
| 158 | 164 | /** |
| 159 | 165 | * @return id |
| ... | ... | @@ -266,18 +272,18 @@ public class ShyVideos { |
| 266 | 272 | } |
| 267 | 273 | |
| 268 | 274 | /** |
| 269 | - * 获取更新者 | |
| 275 | + * 获取审核人姓名 | |
| 270 | 276 | * |
| 271 | - * @return updater - 更新者 | |
| 277 | + * @return updater - 审核人姓名 | |
| 272 | 278 | */ |
| 273 | 279 | public String getUpdater() { |
| 274 | 280 | return updater; |
| 275 | 281 | } |
| 276 | 282 | |
| 277 | 283 | /** |
| 278 | - * 设置更新者 | |
| 284 | + * 设置审核人姓名 | |
| 279 | 285 | * |
| 280 | - * @param updater 更新者 | |
| 286 | + * @param updater 审核人姓名 | |
| 281 | 287 | */ |
| 282 | 288 | public void setUpdater(String updater) { |
| 283 | 289 | this.updater = updater; |
| ... | ... | @@ -392,18 +398,18 @@ public class ShyVideos { |
| 392 | 398 | } |
| 393 | 399 | |
| 394 | 400 | /** |
| 395 | - * 获取审核状态:0.未审核,1:已审核,2.拒绝 | |
| 401 | + * 获取审核状态:0-未审核 1-已通过 2-拒绝 3-自动审核失败 | |
| 396 | 402 | * |
| 397 | - * @return state - 审核状态:0.未审核,1:已审核,2.拒绝 | |
| 403 | + * @return state - 审核状态:0-未审核 1-已通过 2-拒绝 3-自动审核失败 | |
| 398 | 404 | */ |
| 399 | 405 | public Integer getState() { |
| 400 | 406 | return state; |
| 401 | 407 | } |
| 402 | 408 | |
| 403 | 409 | /** |
| 404 | - * 设置审核状态:0.未审核,1:已审核,2.拒绝 | |
| 410 | + * 设置审核状态:0-未审核 1-已通过 2-拒绝 3-自动审核失败 | |
| 405 | 411 | * |
| 406 | - * @param state 审核状态:0.未审核,1:已审核,2.拒绝 | |
| 412 | + * @param state 审核状态:0-未审核 1-已通过 2-拒绝 3-自动审核失败 | |
| 407 | 413 | */ |
| 408 | 414 | public void setState(Integer state) { |
| 409 | 415 | this.state = state; |
| ... | ... | @@ -672,24 +678,42 @@ public class ShyVideos { |
| 672 | 678 | } |
| 673 | 679 | |
| 674 | 680 | /** |
| 675 | - * 获取0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 | |
| 681 | + * 获取0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 4-老年大学 5-美食中国 | |
| 676 | 682 | * |
| 677 | - * @return source - 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 | |
| 683 | + * @return source - 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 4-老年大学 5-美食中国 | |
| 678 | 684 | */ |
| 679 | 685 | public String getSource() { |
| 680 | 686 | return source; |
| 681 | 687 | } |
| 682 | 688 | |
| 683 | 689 | /** |
| 684 | - * 设置0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 | |
| 690 | + * 设置0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 4-老年大学 5-美食中国 | |
| 685 | 691 | * |
| 686 | - * @param source 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 | |
| 692 | + * @param source 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 4-老年大学 5-美食中国 | |
| 687 | 693 | */ |
| 688 | 694 | public void setSource(String source) { |
| 689 | 695 | this.source = source; |
| 690 | 696 | } |
| 691 | 697 | |
| 692 | 698 | /** |
| 699 | + * 获取视频唯一值 | |
| 700 | + * | |
| 701 | + * @return video_md5 - 视频唯一值 | |
| 702 | + */ | |
| 703 | + public String getVideo_md5() { | |
| 704 | + return video_md5; | |
| 705 | + } | |
| 706 | + | |
| 707 | + /** | |
| 708 | + * 设置视频唯一值 | |
| 709 | + * | |
| 710 | + * @param video_md5 视频唯一值 | |
| 711 | + */ | |
| 712 | + public void setVideo_md5(String video_md5) { | |
| 713 | + this.video_md5 = video_md5; | |
| 714 | + } | |
| 715 | + | |
| 716 | + /** | |
| 693 | 717 | * 获取抽帧图片地址 |
| 694 | 718 | * |
| 695 | 719 | * @return avsample_imgs - 抽帧图片地址 |
| ... | ... | @@ -725,11 +749,11 @@ public class ShyVideos { |
| 725 | 749 | this.avsample_msg = avsample_msg; |
| 726 | 750 | } |
| 727 | 751 | |
| 728 | - public String getSpid_desc() { | |
| 729 | - return spid_desc; | |
| 730 | - } | |
| 752 | + public String getSpid_desc() { | |
| 753 | + return spid_desc; | |
| 754 | + } | |
| 731 | 755 | |
| 732 | - public void setSpid_desc(String spid_desc) { | |
| 733 | - this.spid_desc = spid_desc; | |
| 734 | - } | |
| 756 | + public void setSpid_desc(String spid_desc) { | |
| 757 | + this.spid_desc = spid_desc; | |
| 758 | + } | |
| 735 | 759 | } |
| 736 | 760 | \ No newline at end of file | ... | ... |
src/main/resources/mapper/ShyVideosMapper.xml
| ... | ... | @@ -36,6 +36,7 @@ |
| 36 | 36 | <result column="category" jdbcType="VARCHAR" property="category" /> |
| 37 | 37 | <result column="video_user_id" jdbcType="VARCHAR" property="video_user_id" /> |
| 38 | 38 | <result column="source" jdbcType="VARCHAR" property="source" /> |
| 39 | + <result column="video_md5" jdbcType="VARCHAR" property="video_md5" /> | |
| 39 | 40 | <result column="avsample_imgs" jdbcType="LONGVARCHAR" property="avsample_imgs" /> |
| 40 | 41 | <result column="avsample_msg" jdbcType="LONGVARCHAR" property="avsample_msg" /> |
| 41 | 42 | </resultMap> | ... | ... |