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 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 31 * @Description:
32 32 */
33 33 @Service
... ... @@ -195,6 +195,7 @@ public class ContentServiceImpl {
195 195 content.setAuditor_id(userId);
196 196 content.setShenhe_type(CommonConst.AUDIT_TYPE_USER);// 设置审核类型为人工
197 197 }
  198 + content.setLast_update(CommonUtils.getCurrentTime());
198 199 int i = shyContentMapper.updateByPrimaryKeySelective(content);
199 200 if (i != 1) {
200 201 success = false;
... ... @@ -215,6 +216,7 @@ public class ContentServiceImpl {
215 216 if (CommonUtils.isNotNull(shyContent) && shyContent.getReceive_status() == CommonConst.RECEIVE_BEFORE ) {
216 217 shyContent.setAuditor_id(userId);
217 218 shyContent.setReceive_status(CommonConst.RECEIVE_AFTER);
  219 + shyContent.setLast_update(CommonUtils.getCurrentTime());
218 220 shyContentMapper.updateByPrimaryKeySelective(shyContent);
219 221 n++;
220 222 }
... ... @@ -230,6 +232,7 @@ public class ContentServiceImpl {
230 232 for (ShyContent shyContent : shyContentList) {
231 233 shyContent.setAuditor_id(userId);
232 234 shyContent.setReceive_status(CommonConst.RECEIVE_AFTER);
  235 + shyContent.setLast_update(CommonUtils.getCurrentTime());
233 236 shyContentMapper.updateByPrimaryKeySelective(shyContent);
234 237 n++;
235 238 }
... ... @@ -247,6 +250,7 @@ public class ContentServiceImpl {
247 250 if (shyContent.getReceive_status() == CommonConst.RECEIVE_AFTER && userId.equals(shyContent.getAuditor_id())) {
248 251 shyContent.setReceive_status(CommonConst.RECEIVE_BEFORE);
249 252 shyContent.setAuditor_id(null);
  253 + shyContent.setLast_update(CommonUtils.getCurrentTime());
250 254 int i = shyContentMapper.updateByPrimaryKeySelective(shyContent);
251 255 if (i == 1) n++;
252 256 }
... ...