From ae086bc3ad6f785e6368b84e57a7e199c675779b Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 02 四月 2025 11:42:28 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java index 045aaf5..fd6e8db 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java @@ -60,7 +60,8 @@ for (ServiceSubtask serviceSubtask : serviceSubtaskList) { ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); serviceSubtaskRecord.setSubtaskId(serviceSubtask.getId()); - serviceSubtaskRecord.setTaskid(serviceSubtask.getTaskid().toString()); + if (ObjectUtils.isNotEmpty((serviceSubtask.getTaskid()))) + serviceSubtaskRecord.setTaskid(serviceSubtask.getTaskid().toString()); serviceSubtask.setServiceSubtaskRecordList(serviceSubtaskRecordService.selectServiceSubtaskRecordList(serviceSubtaskRecord)); } Map<String, Object> map = serviceSubtaskService.patItemCount(serviceSubtaskVO); @@ -148,6 +149,7 @@ LoginUser loginUser = getLoginUser(); SysUser user = loginUser.getUser(); ivrTaskVO.setCreateBy(user.getNickName()); + ivrTaskVO.setUpdateBy(user.getNickName()); ivrTaskVO.setOrgid(user.getOrgid()); return success(serviceSubtaskService.insertOrUpdateTask(ivrTaskVO)); } @@ -155,6 +157,7 @@ @ApiOperation("淇敼瀛愪换鍔�") @PostMapping("/update") public AjaxResult update(@RequestBody ServiceSubtask serviceSubtask) { + serviceSubtask.setUpdateBy(getLoginUser().getUser().getNickName()); return toAjax(serviceSubtaskService.updateServiceSubtask(serviceSubtask)); } -- Gitblit v1.9.3