<?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="org.springnewfiber.dataadapter.sswj.mapper.TrsqTjhsRMapper"> <!-- 通用查询映射结果 --> <resultMap id="TrsqTjhsRResultMap" type="org.springnewfiber.dataadapter.sswj.entity.TrsqTjhsR"> <result column="DATA_UP_UUID" property="dataUpUuid"/> <result column="YMDHM" property="ymdhm"/> <result column="L010" property="l010"/> <result column="L040" property="l040"/> <result column="L020" property="l020"/> <result column="DATA_UP_STATUS" property="dataUpStatus"/> <result column="DATA_UP_TIME" property="dataUpTime"/> <result column="BZ" property="bz"/> </resultMap> <!-- 通用查询结果列 --> <sql id="Base_Column_List"> , t.DATA_UP_UUID , t.YMDHM , t.L010 , t.L040 , t.L020 , t.DATA_UP_STATUS , t.DATA_UP_TIME , t.BZ </sql> <sql id="Where_Condition"> <if test="request.dataUpUuid != null and request.dataUpUuid != ''"> and t.DATA_UP_UUID = #{request.dataUpUuid} </if> <if test="request.ymdhm != null and request.ymdhm != ''"> and t.YMDHM = #{request.ymdhm} </if> <if test="request.l010 != null and request.l010 != ''"> and t.L010 = #{request.l010} </if> <if test="request.l040 != null and request.l040 != ''"> and t.L040 = #{request.l040} </if> <if test="request.l020 != null and request.l020 != ''"> and t.L020 = #{request.l020} </if> <if test="request.dataUpStatus != null and request.dataUpStatus != ''"> and t.DATA_UP_STATUS = #{request.dataUpStatus} </if> <if test="request.dataUpTime != null and request.dataUpTime != ''"> and t.DATA_UP_TIME = #{request.dataUpTime} </if> <if test="request.bz != null and request.bz != ''"> and t.BZ = #{request.bz} </if> </sql> <select id="selectByCondition" resultMap="TrsqTjhsRResultMap"> select <include refid="Base_Column_List"/> from whsw_trsq_tjhs_r t where t.is_deleted = 0 <include refid="Where_Condition"/> </select> </mapper>