zhongrj
2023-07-06 3ce737b52fca082ac3a2ecda4a848e2e4abcd0ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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="cn.gistack.sm.resDataCheck.mapper.RulesMapper">
 
 
    <select id="selectRulesPage" resultType="cn.gistack.sm.resDataCheck.entity.Rules">
        SELECT * FROM SM_RES_DATA_CHECK_RULES WHERE IS_DELETED = 0
        <if test="rules.reservoirNames !=null and rules.reservoirNames !=''">
            AND RESERVOIR_NAMES LIKE CONCAT('%',#{rules.reservoirNames},'%')
        </if>
        <if test="rules.name !=null and rules.name !=''">
            AND name LIKE CONCAT('%',#{rules.name},'%')
        </if>
        <if test="rules.type !=null and rules.type !=''">
            AND type = #{rules.type}
        </if>
    </select>
    <select id="getDetail" resultType="cn.gistack.sm.resDataCheck.vo.RulesVO">
        SELECT * FROM SM_RES_DATA_CHECK_RULES WHERE IS_DELETED = 0 AND ID=#{id}
    </select>
</mapper>