wuzeyu
2024-05-07 a474a5ab792ea1197ee64b4049ac21020b116b1d
修改 分水房查询接口 村为空可以查询  分水房修改接口 备注可以为空
2个文件已修改
15 ■■■■ 已修改文件
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoPr/PrDivide.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrDivideMapper.xml 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoPr/PrDivide.java
@@ -125,7 +125,7 @@
     * 备注信息
     */
    @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @Length(message = "备注不大于{max}字,不小于{min}字", min = 1, max = 200)
    @Length(message = "备注不大于{max}字", max = 200)
    private String remarks;
    /**
pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrDivideMapper.xml
@@ -239,9 +239,9 @@
        COUNT(*) AS recordCount
    FROM pr_divide divi
        INNER JOIN ba_block blo ON divi.blockId = blo.id
        INNER JOIN ba_district country ON divi.countyId = country.id
        INNER JOIN ba_district town ON divi.townId = town.id
        INNER JOIN ba_district village ON divi.villageid = village.id
        Left JOIN ba_district country ON divi.countyId = country.id
        Left JOIN ba_district town ON divi.townId = town.id
        Left JOIN ba_district village ON divi.villageid = village.id
        , (SELECT @i:=0) AS itable
    <where>
       divi. deleted = 0
@@ -275,16 +275,15 @@
      divi.operateDt
    FROM pr_divide divi
        INNER JOIN ba_block blo ON divi.blockId = blo.id
        INNER JOIN ba_district country ON divi.countyId = country.id
        INNER JOIN ba_district town ON divi.townId = town.id
        INNER JOIN ba_district village ON divi.villageid = village.id
        Left JOIN ba_district country ON divi.countyId = country.id
        Left JOIN ba_district town ON divi.townId = town.id
        Left JOIN ba_district village ON divi.villageid = village.id
        , (SELECT @i:=0) AS itable
    <where>
       divi. deleted = 0
      <if test = "divideName != null and divideName !=''">
        AND divi.name LIKE CONCAT('%',#{divideName},'%')
      </if>
      <if test = "blockId != null and blockId !=''">
        AND divi.blockId = #{blockId}