Commit 01f3f34424361b908e2fa8ed5c1b9e00399cbc31

Authored by liwei2917
1 parent 75c82074

修改送审视频第二次进入去掉了领取状态和领取人的问题

src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
@@ -115,6 +115,9 @@ public class VideosControllerApi { @@ -115,6 +115,9 @@ public class VideosControllerApi {
115 shyVideos.setDuration(duration); 115 shyVideos.setDuration(duration);
116 shyVideos.setCategory(category);//传入栏目分类 116 shyVideos.setCategory(category);//传入栏目分类
117 shyVideos.setVideo_user_id(sid);//传入sid 117 shyVideos.setVideo_user_id(sid);//传入sid
  118 + shyVideos.setReceive(CommonConst.RECEIVE_BEFORE);
  119 + shyVideos.setReceive_user_id(null);
  120 + shyVideos.setUpdated_at(CommonUtils.getCurrentTime());
118 videosService.getShenheType(shyVideos);//获取审核类型 121 videosService.getShenheType(shyVideos);//获取审核类型
119 boolean YorN = videosService.updateshyVideos(shyVideos); 122 boolean YorN = videosService.updateshyVideos(shyVideos);
120 if (YorN == true) { 123 if (YorN == true) {
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
@@ -92,7 +92,7 @@ public class VideosServiceImpl { @@ -92,7 +92,7 @@ public class VideosServiceImpl {
92 } 92 }
93 93
94 public boolean updateshyVideos(ShyVideos shyVideos) { 94 public boolean updateshyVideos(ShyVideos shyVideos) {
95 - int i = shyVideosMapper.updateByPrimaryKey(shyVideos); 95 + int i = shyVideosMapper.updateByPrimaryKeySelective(shyVideos);
96 if (i == 0) { 96 if (i == 0) {
97 return false; 97 return false;
98 } 98 }