| | |
| | | </foreach> |
| | | </select> |
| | | |
| | | <select id="findByProIdsAndType" 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="mdcProductionIds" item = "productionId" index = "index" open = "(" close= ")" separator = ","> |
| | | #{productionId} |
| | | </foreach> |
| | | AND t1.equipment_type IN |
| | | <foreach collection="typeList" item = "equipmentType" index = "index" open = "(" close= ")" separator = ","> |
| | | #{equipmentType} |
| | | </foreach> |
| | | </select> |
| | | |
| | | </mapper> |