From a6d22f16447c4b440b269fa8b43daf919e5a10c4 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期四, 12 十月 2023 10:11:25 +0800 Subject: [PATCH] update --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDeviceCalendarMapper.xml | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDeviceCalendarMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDeviceCalendarMapper.xml index 5bd9aa1..2528e52 100644 --- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDeviceCalendarMapper.xml +++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDeviceCalendarMapper.xml @@ -13,19 +13,18 @@ t3.sleep_start_date, t3.sleep_end_date, t3.is_day_span, - t4.equipment_name, - t4.equipment_id + t4.equipment_name FROM mdc_device_calendar t1 LEFT JOIN mdc_shift t2 ON t1.shift_id = t2.id LEFT JOIN mdc_shift_sub t3 ON t1.shift_sub_id = t3.id - LEFT JOIN mdc_equipment t4 ON t1.equment_id = t4.equipment_id + LEFT JOIN mdc_equipment t4 ON t1.equipment_id = t4.equipment_id WHERE 1=1 <if test="deviceCalendar.effectiveDate != null and deviceCalendar.effectiveDate != ''"> AND t1.effective_date LIKE CONCAT('%',#{ deviceCalendar.effectiveDate },'%') </if> <if test="deviceCalendar.equipmentId != null and deviceCalendar.equipmentId != ''"> - AND t1.equment_id = #{ deviceCalendar.equipmentId } + AND t1.equipment_id = #{ deviceCalendar.equipmentId } </if> <if test="deviceCalendar.startTime != null and deviceCalendar.startTime != ''"> AND t1.effective_date >= #{ deviceCalendar.startTime } @@ -34,7 +33,7 @@ AND t1.effective_date <= #{ deviceCalendar.endTime } </if> <if test="deviceCalendar.equipmentIdList != null and deviceCalendar.equipmentIdList.size() > 0 "> - AND t1.equment_id IN + AND t1.equipment_id IN <foreach collection="deviceCalendar.equipmentIdList" item="id" index="index" open="(" close=")" separator=","> #{ id } </foreach> @@ -53,16 +52,15 @@ t3.sleep_start_date, t3.sleep_end_date, t3.is_day_span, - t4.equipment_name, - t4.equipment_id + t4.equipment_name FROM mdc_device_calendar t1 LEFT JOIN mdc_shift t2 ON t1.shift_id = t2.id LEFT JOIN mdc_shift_sub t3 ON t1.shift_sub_id = t3.id - LEFT JOIN mdc_equipment t4 ON t1.equment_id = t4.equipment_id + LEFT JOIN mdc_equipment t4 ON t1.equipment_id = t4.equipment_id <where> - <if test="equipmentid != null and equipmentid != ''"> - AND t4.equipment_id = #{ equipmentid } + <if test="equipmentId != null and equipmentId != ''"> + AND t4.equipment_id = #{ equipmentId } </if> <if test="stringDate != null and stringDate != ''"> AND t1.effective_date = #{ stringDate } -- Gitblit v1.9.3