危化品全生命周期管理后端
heheng
2025-02-26 996c091a4913ac768324b7ea69a8494ba9d6ece0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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.gkhy.hazmat.system.mapper.TaBooComparisonMapper">
    <select id="selectTaBooComparison" resultType="com.gkhy.hazmat.system.domain.TaBooComparison">
        select * from taboo_comparison
    </select>
 
 
    <select id="selectTaBooComparisonList" resultType="com.gkhy.hazmat.system.domain.TaBooComparison" parameterType="com.gkhy.hazmat.system.domain.TaBooComparison">
        select * from taboo_comparison
        <where>
            <if test="warningType !=null">
                and warning_type = #{warningType}
            </if>
            <if test="leftCode !=null and leftCode != ''">
                and left_code = #{leftCode}
            </if>
            <if test="topCode !=null and topCode != ''">
                and top_code = #{topCode}
            </if>
            <if test="uniqueCode !=null and uniqueCode != ''">
                and unique_code = #{uniqueCode}
            </if>
        </where>
        order by create_time desc
    </select>
</mapper>