From 0bd71968ff07a70c421a0f41a642742fedf125bd Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期三, 31 七月 2024 10:29:14 +0800 Subject: [PATCH] update --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcProcessQuantityMapper.xml | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcProcessQuantityMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcProcessQuantityMapper.xml index 33b8dc0..4eb3e9c 100644 --- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcProcessQuantityMapper.xml +++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcProcessQuantityMapper.xml @@ -6,7 +6,7 @@ <select id="pageList" resultType="org.jeecg.modules.mdc.dto.MdcProcessQuantityDto"> SELECT t1.id id, - t1.equipment_id equipmentId, + t3.equipment_id equipmentId, t3.equipment_name equipmentName, t2.parts_code partsCode, t2.batch_code batchCode, @@ -26,7 +26,7 @@ LEFT JOIN mdc_equipment t3 ON t1.equipment_id = t3.equipment_id <where> <if test="mdcProcessQuantity.equipmentId != null and mdcProcessQuantity.equipmentId != ''"> - AND t1.equipment_id LIKE CONCAT(CONCAT('%',#{ mdcProcessQuantity.equipmentId }),'%') + AND t3.equipment_id LIKE CONCAT(CONCAT('%',#{ mdcProcessQuantity.equipmentId }),'%') </if> <if test="mdcProcessQuantity.equipmentName != null and mdcProcessQuantity.equipmentName != ''"> AND t3.equipment_name LIKE CONCAT(CONCAT('%',#{ mdcProcessQuantity.equipmentName }),'%') @@ -47,7 +47,7 @@ AND t1.process_quantity = #{ mdcProcessQuantity.processQuantity } </if> <if test="mdcProcessQuantity.mdcSectionIds != null and mdcProcessQuantity.mdcSectionIds.size() > 0 "> - AND t1.equipment_id IN + AND t3.equipment_id IN <foreach collection="mdcProcessQuantity.mdcSectionIds" item="id" index="index" open="(" close=")" separator=","> #{ id } </foreach> @@ -60,7 +60,7 @@ <select id="list" resultType="org.jeecg.modules.mdc.dto.MdcProcessQuantityDto"> SELECT t1.id id, - t1.equipment_id equipmentId, + t3.equipment_id equipmentId, t3.equipment_name equipmentName, t2.parts_code partsCode, t2.batch_code batchCode, @@ -80,7 +80,7 @@ LEFT JOIN mdc_equipment t3 ON t1.equipment_id = t3.equipment_id <where> <if test="mdcProcessQuantity.equipmentId != null and mdcProcessQuantity.equipmentId != ''"> - AND t1.equipment_id LIKE CONCAT(CONCAT('%',#{ mdcProcessQuantity.equipmentId }),'%') + AND t3.equipment_id LIKE CONCAT(CONCAT('%',#{ mdcProcessQuantity.equipmentId }),'%') </if> <if test="mdcProcessQuantity.equipmentName != null and mdcProcessQuantity.equipmentName != ''"> AND t3.equipment_name LIKE CONCAT(CONCAT('%',#{ mdcProcessQuantity.equipmentName }),'%') @@ -101,7 +101,7 @@ AND t1.process_quantity = #{ mdcProcessQuantity.processQuantity } </if> <if test="mdcProcessQuantity.mdcSectionIds != null and mdcProcessQuantity.mdcSectionIds.size() > 0 "> - AND t1.equipment_id IN + AND t3.equipment_id IN <foreach collection="mdcProcessQuantity.mdcSectionIds" item="id" index="index" open="(" close=")" separator=","> #{ id } </foreach> @@ -114,7 +114,7 @@ <select id="findById" resultType="org.jeecg.modules.mdc.dto.MdcProcessQuantityDto"> SELECT t1.id id, - t1.equipment_id equipmentId, + t3.equipment_id equipmentId, t3.equipment_name equipmentName, t2.parts_code partsCode, t2.batch_code batchCode, -- Gitblit v1.9.3