From 6acc718e0f3608c08584526d7c7e8523c1bd99ca Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 09 一月 2025 11:43:07 +0800 Subject: [PATCH] 用户列表可通过昵称搜索、获取任务表单时无表单数据也返回节点信息 --- system/src/main/resources/mapper/system/SysUserMapper.xml | 3 +++ flowable/src/main/java/com/ycl/service/impl/FlowTaskServiceImpl.java | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/flowable/src/main/java/com/ycl/service/impl/FlowTaskServiceImpl.java b/flowable/src/main/java/com/ycl/service/impl/FlowTaskServiceImpl.java index 98af018..0c3771e 100644 --- a/flowable/src/main/java/com/ycl/service/impl/FlowTaskServiceImpl.java +++ b/flowable/src/main/java/com/ycl/service/impl/FlowTaskServiceImpl.java @@ -1239,21 +1239,22 @@ */ private List<FormDetailVO> getBeforeNodeForm(Map<String, Object> parameters, String formKey, String taskName, String processDefId, String processDefKey, Boolean currentNeedData) { if (!parameters.keySet().stream().anyMatch(key -> key.contains(ProcessConstants.TASK_FORM_KEY))) { + FormDetailVO formDetailVO = new FormDetailVO(); + formDetailVO.setBeforeNodeName(taskName); + formDetailVO.setCurrent(Boolean.TRUE); // 濡傛灉鏄┖鐨勶紝浣跨敤formId鍘绘煡 if (StringUtils.isNotBlank(formKey)) { SysForm sysForm = sysFormService.selectSysFormById(Long.parseLong(formKey)); if (Objects.isNull(sysForm)) { throw new RuntimeException("璇ユ祦绋嬬粦瀹氱殑琛ㄥ崟涓嶅瓨鍦ㄦ垨宸茶鍒犻櫎"); } - FormDetailVO formDetailVO = new FormDetailVO(); + Map<String, Object> data = new HashMap<>(1); data.put(ProcessConstants.TASK_FORM_KEY, JSONObject.parseObject(sysForm.getFormContent())); formDetailVO.setFormJsonObj(data); - formDetailVO.setBeforeNodeName(taskName); - formDetailVO.setCurrent(Boolean.TRUE); return Arrays.asList(formDetailVO); } else { - return new ArrayList<>(1); + return Arrays.asList(formDetailVO); } } // 杩欓噷鍙渶瑕佹煡鑷韩浠ュ強涓婁竴涓妭鐐�(濡傛灉骞惰鐨勬湁澶氫釜)鐨勮〃鍗曟暟鎹� diff --git a/system/src/main/resources/mapper/system/SysUserMapper.xml b/system/src/main/resources/mapper/system/SysUserMapper.xml index 0130fef..b01ab9b 100644 --- a/system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/system/src/main/resources/mapper/system/SysUserMapper.xml @@ -66,6 +66,9 @@ <if test="userName != null and userName != ''"> AND u.user_name like concat('%', #{userName}, '%') </if> + <if test="nickName != null and nickName != ''"> + AND u.nick_name like concat('%', #{nickName}, '%') + </if> <if test="status != null and status != ''"> AND u.status = #{status} </if> -- Gitblit v1.8.0