<?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.com.victorysoft.business.cyyzs.dao.WellDailyDao">
    <sql id="Base_Column_List">
        RQ, JH, SCSJ, GXYL, YY, TY, RZSL, RPZSL, BZ
    </sql>
    <select id="selectList" parameterType="cn.com.victorysoft.business.cyyzs.param.WellDailyParam"
            resultType="cn.com.victorysoft.business.cyyzs.entity.WellDaily">
        select
        <include refid="Base_Column_List"/>
        from YS_DBA02
        where RQ >= #{startdate,jdbcType=TIMESTAMP}
          and RQ &lt;= #{enddate,jdbcType=TIMESTAMP}
        <if test="wellname != null and wellname != ''">
            and JH = #{wellname,jdbcType=VARCHAR}
        </if>
        order by jh
    </select>

</mapper>