| | |
| | | <if test="deviceId != null"> |
| | | and dr.device_id = #{deviceId} |
| | | </if> |
| | | <if test="deviceName != '' and deviceName != null"> |
| | | and d.device_name like concat('%', #{deviceName}, '%') |
| | | </if> |
| | | <if test="specificationModel != '' and specificationModel != null"> |
| | | and d.specification_model like concat('%', #{specificationModel}, '%') |
| | | </if> |
| | | <if test="sampleCode != '' and sampleCode != null"> |
| | | and dr.sample_code like concat('%', #{sampleCode}, '%') |
| | | </if> |
| | |
| | | <if test="deviceId != null"> |
| | | and dr.device_id = #{deviceId} |
| | | </if> |
| | | <if test="sampleCode != '' and sampleCode != null"> |
| | | and dr.sample_code like concat('%', #{sampleCode}, '%') |
| | | <if test="deviceName != '' and deviceName != null"> |
| | | and d.device_name like concat('%', #{deviceName}, '%') |
| | | </if> |
| | | <if test="specificationModel != '' and specificationModel != null"> |
| | | and d.specification_model like concat('%', #{specificationModel}, '%') |
| | | </if> |
| | | <if test="managementNumber != '' and managementNumber != null"> |
| | | and d.management_number like concat('%', #{managementNumber}, '%') |
| | | </if> |
| | | <if test="exportDate != '' and exportDate != null"> |
| | | and DATE_FORMAT(dr.use_start_date, '%Y-%m') = #{exportDate} |
| | | <if test="sampleCode != '' and sampleCode != null"> |
| | | and dr.sample_code like concat('%', #{sampleCode}, '%') |
| | | </if> |
| | | ORDER BY dr.use_start_date asc |
| | | ORDER BY d.device_name asc, d.id asc, dr.use_start_date asc |
| | | </select> |
| | | </mapper> |