| | |
| | | from device_repair dr |
| | | left join device_ledger dl on dr.device_ledger_id = dl.id |
| | | <where> |
| | | 1 = 1 |
| | | <if test="deviceRepairDto.deviceName != null"> |
| | | and dl.device_name like concat('%',#{deviceRepairDto.deviceName},'%') |
| | | </if> |
| | | <if test="deviceRepairDto.deviceModel != null"> |
| | | and dl.device_model like concat('%',#{deviceRepairDto.deviceModel},'%') |
| | | </if> |
| | | <if test="deviceRepairDto.remark != null"> |
| | | and dr.remark like concat('%',#{deviceRepairDto.remark},'%') |
| | | </if> |
| | | <if test="deviceRepairDto.maintenanceName != null"> |
| | | and dr.maintenance_name like concat('%',#{deviceRepairDto.maintenanceName},'%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="detailById" resultType="com.ruoyi.device.dto.DeviceRepairDto"> |