소스 검색

fix: 置空创建和更新时间

shc 3 년 전
부모
커밋
f194960395
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/WmScorePackageController.java

+ 2 - 0
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/WmScorePackageController.java

@@ -3387,6 +3387,8 @@ public class WmScorePackageController {
 		// 缓存记录key
 		String key = String.format(CacheConstants.BATCH_PACKAGE_HISTORY, user.getDeptId(), user.getId());
 		Map<String, Object> history = new HashMap<>(2);
+		scorePackage.setCreateTime(null);
+		scorePackage.setUpdateTime(null);
 		history.put("history", scorePackage);
 		history.put("timestamp", DateTimeFormatter.ofPattern(DatePattern.CHINESE_DATE_TIME_PATTERN).format(LocalDateTime.now()));
 		redisTemplate.opsForValue().set(key, JSONUtil.toJsonStr(history));