From ed48aa9f30a87c528f071d06bf6b59d7d15428e9 Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期一, 26 五月 2025 16:12:55 +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