From 3a740faa161ec976986c0735ba18837f570a525f Mon Sep 17 00:00:00 2001 From: hyingbo <1363390067@qq.com> Date: 星期二, 27 五月 2025 19:04:07 +0800 Subject: [PATCH] 消息类型拆分并按类型推送至不同角色 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/DailyMaintenanceOrderMapper.xml | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/DailyMaintenanceOrderMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/DailyMaintenanceOrderMapper.xml index c12f8ec..928009c 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/DailyMaintenanceOrderMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/DailyMaintenanceOrderMapper.xml @@ -127,6 +127,21 @@ <if test="params.finishEndTime != null"> and t1.actual_end_time <= #{params.finishEndTime} </if> + <if test="params.workCenterIds != null"> + and t3.work_center_id in + <foreach collection="params.workCenterIds" open="(" separator="," close=")" item="workCenterId"> + #{workCenterId} + </foreach> + </if> + <if test="params.equipmentId != null"> + and t1.equipment_id = #{params.equipmentId} + </if> + <if test="params.statusEnums != null"> + and t1.status not in + <foreach collection="params.statusEnums" open="(" separator="," close=")" item="statusEnum"> + #{statusEnum} + </foreach> + </if> ORDER BY t1.create_time desc </select> @@ -220,6 +235,21 @@ <if test="params.finishEndTime != null"> and t1.actual_end_time <= #{params.finishEndTime} </if> + <if test="params.workCenterIds != null"> + and t3.work_center_id in + <foreach collection="params.workCenterIds" open="(" separator="," close=")" item="workCenterId"> + #{workCenterId} + </foreach> + </if> + <if test="params.equipmentId != null"> + and t1.equipment_id = #{params.equipmentId} + </if> + <if test="params.statusEnums != null"> + and t1.status not in + <foreach collection="params.statusEnums" open="(" separator="," close=")" item="statusEnum"> + #{statusEnum} + </foreach> + </if> ORDER BY t1.create_time desc </select> -- Gitblit v1.9.3