Files
shz-backend/ruoyi-bussiness/src/main/resources/mapper/app/JobDataStorageDetectionMapper.xml

19 lines
762 B
XML

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.JobDataStorageDetectionMapper">
<select id="getList" parameterType="com.ruoyi.cms.domain.JobDataStorageDetection" resultType="com.ruoyi.cms.domain.JobDataStorageDetection">
select * from JOB_DATA_STORAGE_DETECTION where del_flag='0'
<if test="storageDate != null">
and STORAGE_DATE = #{storageDate}
</if>
<if test="storageResult != null and storageResult != ''">
and STORAGE_RESULT like CONCAT('%',#{storageResult},'%')
</if>
ORDER BY STORAGE_DATE DESC, DETECTION_ID DESC
</select>
</mapper>