| | |
| | | </foreach> |
| | | </select> |
| | | |
| | | <select id="getEquIdsByProIds" resultType="java.lang.String"> |
| | | SELECT |
| | | t1.equipment_id |
| | | FROM |
| | | mdc_equipment t1 |
| | | LEFT JOIN mdc_production_equipment t2 ON t1.id = t2.equipment_id |
| | | <where> |
| | | t2.production_id IN |
| | | <foreach collection="proIds" index="index" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="findByProIds" resultType="org.jeecg.modules.mdc.entity.MdcEquipment"> |
| | | SELECT |
| | | t1.* |
| | | FROM |
| | | mdc_equipment t1 |
| | | LEFT JOIN mdc_production_equipment t2 ON t1.id = t2.equipment_id |
| | | <where> |
| | | t2.production_id IN |
| | | <foreach collection="proIds" index="index" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |