From dfadab4fecc90bd2ad720dc67eba44c4b69b155a Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期三, 05 三月 2025 10:05:40 +0800 Subject: [PATCH] art: 所有设备 台账 维修工单 根据设备id查询维修工单,并过滤掉已完成的维修工单 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/StreamMapper.xml | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/StreamMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/StreamMapper.xml index 5a63a2b..0768753 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/StreamMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/StreamMapper.xml @@ -6,15 +6,19 @@ from mom_eam_stream t1 left join sys_user t2 on t2.id = t1.create_by where 1=1 + <if test="num != null and num != ''"> + and t1.num like concat('%',#{num},'%') + </if> <choose> <when test="areaId != null and areaId != ''"> and t2.area_id = #{areaId} </when> - <otherwise> - and t2.area_id = '-1' - </otherwise> - </choose> + </choose> + ORDER BY t1.create_time desc </select> +<!-- <otherwise>--> +<!-- and t2.area_id = '-1'--> +<!-- </otherwise>--> </mapper> -- Gitblit v1.9.3