From bbfc6a9a5b3a899c7405d06454d315d8c283e23f Mon Sep 17 00:00:00 2001 From: yb <1113799@qq.com> Date: 星期四, 04 九月 2025 15:12:46 +0800 Subject: [PATCH] 倍率统计导出 --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentDayScheduleMapper.xml | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentDayScheduleMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentDayScheduleMapper.xml index 60b9386..5b76e29 100644 --- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentDayScheduleMapper.xml +++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentDayScheduleMapper.xml @@ -16,11 +16,15 @@ ON t2.id = t3.equipment_id INNER JOIN mdc_production t4 ON t3.production_id = t4.id - WHERE TO_CHAR(t1.dispatch_date, 'YYYY-MM') = TO_CHAR(SYSDATE, 'YYYY-MM') + WHERE TO_CHAR(t1.create_time, 'YYYY-MM') = TO_CHAR(SYSDATE, 'YYYY-MM') AND t4.parent_id = #{vo.productionId} <if test="vo.proChildId != null and vo.proChildId != ''"> AND t4.id = #{vo.proChildId} </if> - ORDER BY t1.dispatch_date DESC + ORDER BY t1.create_time DESC + </select> + + <select id="selectLast" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentDaySchedule"> + SELECT TOP 1 * FROM mdc_equipment_day_schedule WHERE equipment_id = #{equipmentId} ORDER BY create_time DESC </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3