liurunyu
2025-06-26 aa36d81e83b27c52d126af07a186bf8a9cc9a4f6
pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmManureLastMapper.xml
@@ -49,7 +49,7 @@
  </select>
  <!--根据指定条件查询历史记录数量-->
  <!--根据指定条件查询记录数量-->
  <select id="selectCount" resultType="java.lang.Long">
    SELECT
    COUNT(*) AS recordCount
@@ -63,7 +63,7 @@
        AND mtb.no = #{no}
      </if>
      <if test = "name != null and name !=''">
        AND mtb.name LIKE CONCAT('%',#{intakeNum},'%')
        AND mtb.name LIKE CONCAT('%',#{name},'%')
      </if>
      <if test = "timeStart != null and timeStop != null">
        AND ltb.dt BETWEEN #{timeStart} AND #{timeStop}
@@ -71,7 +71,7 @@
    </where>
  </select>
  <!--根据指定条件查询历史记录-->
  <!--根据指定条件查询记录-->
  <select id="selectSome" resultType="com.dy.pipIrrGlobal.voRm.VoManure">
    SELECT
    <include refid="Base_Column_List" />,
@@ -86,7 +86,7 @@
        AND mtb.no = #{no}
      </if>
      <if test = "name != null and name !=''">
        AND mtb.name LIKE CONCAT('%',#{intakeNum},'%')
        AND mtb.name LIKE CONCAT('%',#{name},'%')
      </if>
      <if test = "timeStart != null and timeStop != null">
        AND ltb.dt BETWEEN #{timeStart} AND #{timeStop}
@@ -100,6 +100,19 @@
    </trim>
  </select>
  <!--根据指定条件获取记录-->
  <select id="selectSomeByManureId" resultType="com.dy.pipIrrGlobal.voRm.VoManure">
    select
    <include refid="Base_Column_List" />
    from rm_manure_last
    <where>
      <if test="manureId != null">
        and manure_id = #{manureId}
      </if>
    </where>
    limit 0,1
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--@mbg.generated-->