| | |
| | | SELECT * FROM mdc_pass_rate |
| | | <where> |
| | | <if test="mdcPassRate.equipmentName != null and mdcPassRate.equipmentName != '' "> |
| | | AND equipment_name LIKE CONCAT(CONCAT('%',#{mdcPassRate.equipmentName}),'%') |
| | | AND equipment_name LIKE '%' + #{mdcPassRate.equipmentName} + '%') |
| | | </if> |
| | | <if test="mdcPassRate.equipmentId != null and mdcPassRate.equipmentId != '' "> |
| | | AND equipment_id LIKE CONCAT(CONCAT('%',#{mdcPassRate.equipmentId}),'%') |
| | | AND equipment_id LIKE '%' + #{mdcPassRate.equipmentId} + '%' |
| | | </if> |
| | | <if test="mdcPassRate.startTime != null and mdcPassRate.endTime != null"> |
| | | AND efficient_date BETWEEN #{ mdcPassRate.startTime } AND #{ mdcPassRate.endTime } |