Commit d1651e33 by chenweisong

更新

parent abace8b3
...@@ -48,6 +48,7 @@ public class TemplateController { ...@@ -48,6 +48,7 @@ public class TemplateController {
}) })
@PostMapping(value = "/excel/saveData") @PostMapping(value = "/excel/saveData")
public Object saveTemplateData(String taskId, long excelId, @RequestBody String dataStr) { public Object saveTemplateData(String taskId, long excelId, @RequestBody String dataStr) {
System.out.println(dataStr);
Task task = taskService.createTaskQuery().taskId(taskId).singleResult(); Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
CommonValidator.notNull(task, "任务不存在"); CommonValidator.notNull(task, "任务不存在");
Template template = templateService.findById(excelId); Template template = templateService.findById(excelId);
...@@ -72,7 +73,6 @@ public class TemplateController { ...@@ -72,7 +73,6 @@ public class TemplateController {
dataInfoService.save(dataInfo); dataInfoService.save(dataInfo);
Map vars = new HashMap<>(); Map vars = new HashMap<>();
if (template.getNeedAudit() == Template.NEED_AUDIT) { if (template.getNeedAudit() == Template.NEED_AUDIT) {
vars.put(CommonConstant.ACT_NEED_DATA_AUDIT, true); vars.put(CommonConstant.ACT_NEED_DATA_AUDIT, true);
Map audit = feignAuthService.getUserById(template.getAuditId()); Map audit = feignAuthService.getUserById(template.getAuditId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment