| | |
| | | t2.num equipmentNum, |
| | | t2.name equipmentName, |
| | | t2.model equipmentModel, |
| | | t2.team_id teamId, |
| | | t2.specification equipmentSpecification, |
| | | t3.depart_name departName, |
| | | t4.item_text urgencyName, |
| | |
| | | mom_eam_equipment_report_repair t1 |
| | | left join mom_eam_equipment t2 on t1.equipment_id = t2.id |
| | | left join sys_depart t3 on t1.use_depart_id = t3.id |
| | | left join sys_user t8 on t2.team_id = t2.team_id |
| | | left join (select * from v_sys_dict where dict_code='urgency') t4 on t1.urgency = t4.item_value |
| | | left join (select * from v_sys_dict where dict_code='equipment_report_repair_status') t5 on t1.status = t5.item_value |
| | | left join (select * from v_sys_dict where dict_code='is_stop') t6 on t1.is_stop = t6.item_value |
| | |
| | | <if test="params.equipmentNum != null and params.equipmentNum != ''"> |
| | | and t2.num like concat('%',#{params.equipmentNum},'%') |
| | | </if> |
| | | <if test="params.equipmentName != null and params.equipmentName != ''"> |
| | | and t2.name like concat('%',#{params.equipmentName},'%') |
| | | </if> |
| | | <if test="params.status != null and params.status != ''"> |
| | | and t1.status = #{params.status} |
| | | </if> |
| | | <if test="params.teamId != null and params.teamId != ''"> |
| | | and t2.team_id = #{params.teamId} |
| | | </if> |
| | | ORDER BY t1.create_time desc |
| | | </select> |
| | | </mapper> |