Min 1 年之前
父节点
当前提交
0a60492d03

+ 3 - 0
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/ProjectController.java

@@ -1321,6 +1321,9 @@ public class ProjectController {
                        .setContent("同步新增来自泛微的项目数据,共"+insert+"条数据"+"\n"+"同步更新来自泛微的项目数据,共"+update+"条数据"+"\n"+sb.toString())
                        .setModuleName("项目管理").setOperationTime(LocalDateTime.now())
                        .setOperatorName(user.getName());
+        if(operationRecord.getContent().length()>1000){
+            operationRecord.setContent(operationRecord.getContent().substring(0,999));
+        }
         operationRecordService.save(operationRecord);
         httpRespMsg.setMsg("同步新增来自泛微的项目数据,共"+insert+"条数据"+"\n"+"同步更新来自泛微的项目数据,共"+update+"条数据");
         return httpRespMsg;

+ 3 - 0
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/task/TimingTask.java

@@ -652,6 +652,9 @@ public class TimingTask {
             operationRecord.setCompanyId(compId)
                     .setContent("同步来自泛微的项目数据,共"+insert+"条数据"+"\n"+"同步更新来自泛微的项目数据,共"+update+"条数据"+"\n"+sb.toString())
                     .setModuleName("项目管理").setOperationTime(LocalDateTime.now());
+            if(operationRecord.getContent().length()>1000){
+                operationRecord.setContent(operationRecord.getContent().substring(0,999));
+            }
             operationRecordService.save(operationRecord);
         }
     }