| | |
| | | <if test="params.checkType != null "> |
| | | AND rm.check_type = #{params.checkType} |
| | | </if> |
| | | <if test="params.batchNo != null and params.batchNo != ''"> |
| | | and rm.batch_no like concat('%', #{params.batchNo}, '%') |
| | | </if> |
| | | <if test="params.inspectState != null "> |
| | | AND rm.inspect_state = #{params.inspectState} |
| | | </if> |
| | | <if test="params.entryDateStart != null and params.entryDateStart != '' "> |
| | | AND rm.check_time >= DATE_FORMAT(#{params.entryDateStart},'%Y-%m-%d') |
| | | AND rm.check_time >= #{params.entryDateStart} |
| | | </if> |
| | | <if test="params.entryDateEnd != null and params.entryDateEnd != '' "> |
| | | AND rm.check_time <= DATE_FORMAT(#{params.entryDateEnd},'%Y-%m-%d') |
| | | AND rm.check_time <= #{params.entryDateEnd} |
| | | </if> |
| | | ORDER BY rm.check_time DESC |
| | | </select> |