Browse Source

fix: 修复任务类型错误

shc 7 months ago
parent
commit
ff627145df

+ 6 - 0
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/InitController.java

@@ -504,6 +504,10 @@ public class InitController {
             }
             String temp17 = params.getTemp17();
 
+
+            if (StrUtil.isBlank(temp17)) {
+                continue;
+            }
             WmTaskContent newOne = new WmTaskContent();
             newOne.setId(taskContent.getId());
             newOne.setTemp27(temp17);
@@ -511,8 +515,10 @@ public class InitController {
 
         }
 
+
         taskContentService.updateBatchById(updateed);
 
+        log.info("updateed:{}", JSONUtil.toJsonStr(updateed));
         return R.ok(Boolean.TRUE, updateed.size() + "");
     }