From d7bbd0eb98734769cc8737915e0ed29daa5293b7 Mon Sep 17 00:00:00 2001 From: lius <Lius2225@163.com> Date: 星期三, 05 七月 2023 09:34:32 +0800 Subject: [PATCH] 接口设备权限漏洞修复 --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml index 26d708c..15df7d9 100644 --- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml +++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml @@ -146,5 +146,49 @@ </foreach> </select> + <!--鏍规嵁璁惧缂栧彿鏌ヨ璁惧淇℃伅鍜岄儴闂ㄤ俊鎭�--> + <select id="findEquDepList" resultType="org.jeecg.modules.mdc.dto.MdcEquDepDto"> + SELECT + sd.id, + sd.parent_id, + sd.depart_name, + sd.org_type, + me.equipment_id, + me.equipment_name, + me.equipment_type + FROM + mdc_equipment_depart med + LEFT JOIN sys_depart sd ON med.dep_id = sd.id + LEFT JOIN mdc_equipment me ON me.id = med.equipment_id + <where> + me.equipment_id IN + <foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")"> + #{id} + </foreach> + </where> + </select> + + <!--鏍规嵁璁惧缂栧彿鏌ヨ璁惧淇℃伅鍜屼骇绾夸俊鎭�--> + <select id="findEquProList" resultType="org.jeecg.modules.mdc.dto.MdcEquProDto"> + SELECT + mp.id, + mp.parent_id, + mp.production_name, + mp.org_type, + me.equipment_id, + me.equipment_name, + me.equipment_type + FROM + mdc_production_equipment mpe + LEFT JOIN mdc_production mp ON mpe.production_id = mp.id + LEFT JOIN mdc_equipment me ON me.id = mpe.equipment_id + <where> + me.equipment_id IN + <foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")"> + #{id} + </foreach> + </where> + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3