| | |
| | | LEFT JOIN mdc_equipment t2 ON t2.equipment_id = t1.equipment_id |
| | | <where> |
| | | <if test="mdcEquipmentOvertime.equipmentName != null and mdcEquipmentOvertime.equipmentName != '' "> |
| | | AND t2.equipment_name LIKE CONCAT(CONCAT('%',#{mdcEquipmentOvertime.equipmentName}),'%') |
| | | AND t2.equipment_name LIKE '%' + #{mdcEquipmentOvertime.equipmentName} + '%' |
| | | </if> |
| | | <if test="mdcEquipmentOvertime.equipmentId != null and mdcEquipmentOvertime.equipmentId != '' "> |
| | | AND t1.equipment_id LIKE CONCAT(CONCAT('%',#{mdcEquipmentOvertime.equipmentId}),'%') |
| | | AND t1.equipment_id LIKE '%' + #{mdcEquipmentOvertime.equipmentId} + '%' |
| | | </if> |
| | | <if test="mdcEquipmentOvertime.mdcSectionIds != null and mdcEquipmentOvertime.mdcSectionIds.size() > 0 "> |
| | | AND t1.equipment_id IN |
| | |
| | | LEFT JOIN mdc_equipment t2 ON t2.equipment_id = t1.equipment_id |
| | | <where> |
| | | <if test="mdcEquipmentOvertime.equipmentName != null and mdcEquipmentOvertime.equipmentName != '' "> |
| | | AND t2.equipment_name LIKE CONCAT(CONCAT('%',#{mdcEquipmentOvertime.equipmentName}),'%') |
| | | AND t2.equipment_name LIKE '%' + #{mdcEquipmentOvertime.equipmentName} + '%' |
| | | </if> |
| | | <if test="mdcEquipmentOvertime.equipmentId != null and mdcEquipmentOvertime.equipmentId != '' "> |
| | | AND t1.equipment_id LIKE CONCAT(CONCAT('%',#{mdcEquipmentOvertime.equipmentId}),'%') |
| | | AND t1.equipment_id LIKE '%' + #{mdcEquipmentOvertime.equipmentId} + '%' |
| | | </if> |
| | | <if test="mdcEquipmentOvertime.mdcSectionIds != null and mdcEquipmentOvertime.mdcSectionIds.size() > 0 "> |
| | | AND t1.equipment_id IN |
| | |
| | | FROM |
| | | mdc_equipment_overtime |
| | | WHERE |
| | | the_date LIKE CONCAT(#{ validDate }, '%') AND equipment_id = #{ equipmentId } |
| | | the_date LIKE #{ validDate } + '%' AND equipment_id = #{ equipmentId } |
| | | </select> |
| | | </mapper> |