pipIrr-platform/pipIrr-global/src/main/resources/mapper/MdEt0Mapper.xml
@@ -40,22 +40,18 @@
    and dt = #{dt,jdbcType=DATE}
  </select>
  <select id="selectEt0ByDt" resultMap="BaseResultMap">
  <select id="selectEt0ByDt" resultType="com.dy.pipIrrGlobal.pojoMd.MdEt0">
    <!--@mbg.generated-->
    select
    <include refid="Base_Column_List_with_alias" >
      <property name="alias" value="et"/>
    </include>,
    mc.name as cropName
    from md_et0 et
    inner join md_crops mc on et.crop_id = mc.id
    where mc.stopped != 1 and et.dt = #{ymd,jdbcType=DATE}
    select mc.id id, mc.id cropId, mc.name as cropName, et.et0 et0
    from md_crops mc
    left join md_et0 et on (et.crop_id = mc.id and et.dt = #{ymd,jdbcType=DATE})
    where mc.stopped != 1
  </select>
  <!--根据指定条件查询记录-->
  <select id="selectEt0ByCropAndDt" resultType="com.dy.pipIrrGlobal.pojoMd.MdEt0">
    SELECT
    <include refid="Base_Column_List_with_alias" >
      <property name="alias" value="htb"/>
      <property name="alias" value="et"/>
    </include>,
    mc.name as cropName
    from md_et0 et