Commit 757f9bccbb24a7589c65bebe68bab9a45cdc3bd8

Authored by liwei2917
1 parent 76585a77

修改最后更新时间

src/main/java/com/cnlive/shenhe/serviceImpl/ContentServiceImpl.java
@@ -26,8 +26,8 @@ import java.util.Date; @@ -26,8 +26,8 @@ import java.util.Date;
26 import java.util.List; 26 import java.util.List;
27 27
28 /** 28 /**
29 - * @Auther: chenhao  
30 - * @Date: 2018/12/4 17:30 29 + * @Auther: liwei
  30 + * @Date: 2019/5/20 17:30
31 * @Description: 31 * @Description:
32 */ 32 */
33 @Service 33 @Service
@@ -195,6 +195,7 @@ public class ContentServiceImpl { @@ -195,6 +195,7 @@ public class ContentServiceImpl {
195 content.setAuditor_id(userId); 195 content.setAuditor_id(userId);
196 content.setShenhe_type(CommonConst.AUDIT_TYPE_USER);// 设置审核类型为人工 196 content.setShenhe_type(CommonConst.AUDIT_TYPE_USER);// 设置审核类型为人工
197 } 197 }
  198 + content.setLast_update(CommonUtils.getCurrentTime());
198 int i = shyContentMapper.updateByPrimaryKeySelective(content); 199 int i = shyContentMapper.updateByPrimaryKeySelective(content);
199 if (i != 1) { 200 if (i != 1) {
200 success = false; 201 success = false;
@@ -215,6 +216,7 @@ public class ContentServiceImpl { @@ -215,6 +216,7 @@ public class ContentServiceImpl {
215 if (CommonUtils.isNotNull(shyContent) && shyContent.getReceive_status() == CommonConst.RECEIVE_BEFORE ) { 216 if (CommonUtils.isNotNull(shyContent) && shyContent.getReceive_status() == CommonConst.RECEIVE_BEFORE ) {
216 shyContent.setAuditor_id(userId); 217 shyContent.setAuditor_id(userId);
217 shyContent.setReceive_status(CommonConst.RECEIVE_AFTER); 218 shyContent.setReceive_status(CommonConst.RECEIVE_AFTER);
  219 + shyContent.setLast_update(CommonUtils.getCurrentTime());
218 shyContentMapper.updateByPrimaryKeySelective(shyContent); 220 shyContentMapper.updateByPrimaryKeySelective(shyContent);
219 n++; 221 n++;
220 } 222 }
@@ -230,6 +232,7 @@ public class ContentServiceImpl { @@ -230,6 +232,7 @@ public class ContentServiceImpl {
230 for (ShyContent shyContent : shyContentList) { 232 for (ShyContent shyContent : shyContentList) {
231 shyContent.setAuditor_id(userId); 233 shyContent.setAuditor_id(userId);
232 shyContent.setReceive_status(CommonConst.RECEIVE_AFTER); 234 shyContent.setReceive_status(CommonConst.RECEIVE_AFTER);
  235 + shyContent.setLast_update(CommonUtils.getCurrentTime());
233 shyContentMapper.updateByPrimaryKeySelective(shyContent); 236 shyContentMapper.updateByPrimaryKeySelective(shyContent);
234 n++; 237 n++;
235 } 238 }
@@ -247,6 +250,7 @@ public class ContentServiceImpl { @@ -247,6 +250,7 @@ public class ContentServiceImpl {
247 if (shyContent.getReceive_status() == CommonConst.RECEIVE_AFTER && userId.equals(shyContent.getAuditor_id())) { 250 if (shyContent.getReceive_status() == CommonConst.RECEIVE_AFTER && userId.equals(shyContent.getAuditor_id())) {
248 shyContent.setReceive_status(CommonConst.RECEIVE_BEFORE); 251 shyContent.setReceive_status(CommonConst.RECEIVE_BEFORE);
249 shyContent.setAuditor_id(null); 252 shyContent.setAuditor_id(null);
  253 + shyContent.setLast_update(CommonUtils.getCurrentTime());
250 int i = shyContentMapper.updateByPrimaryKeySelective(shyContent); 254 int i = shyContentMapper.updateByPrimaryKeySelective(shyContent);
251 if (i == 1) n++; 255 if (i == 1) n++;
252 } 256 }