wuzeyu
2024-02-27 f8bb88c72b8a0fa04a97a9d217f1decd9d33cee1
pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrDivideMapper.xml
@@ -259,7 +259,7 @@
  <select id="getDivides" resultType="com.dy.pipIrrGlobal.voPr.VoDivide">
    SELECT
      (@i:=@i+1) AS id,
      divi.id AS divideId,
      CAST(divi.id AS char) AS divideId,
      divi.name AS divideName,
      blo.`name` AS blockName,
      divi.header,
@@ -283,9 +283,11 @@
      </if>
    </where>
    ORDER BY divi.operateDt DESC
    <if test="pageCurr != null and pageSize != null">
      LIMIT ${pageCurr}, ${pageSize}
    </if>
    <trim prefix="limit " >
      <if test="start != null and count != null">
        #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER}
      </if>
    </trim>
  </select>
  <!--根据分水房ID逻辑删除分水房-->
@@ -300,7 +302,7 @@
  <!--根据分水房编号获取所属片区编号-->
  <select id="getBlockIdById" resultType="java.lang.Long">
    SELECT blockId FROM pr_divide WHERE id = ${divideId}}
    SELECT blockId FROM pr_divide WHERE id = ${divideId}
  </select>
</mapper>