<?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>
|