Browse Source

1用水性质变更

Xiaojh 4 năm trước cách đây
mục cha
commit
174dd8658d

+ 2 - 2
smart-city-platform/src/main/java/com/bz/smart_city/service/pay/archives/impl/PayBaseCustomerandmeterrelaServiceImpl.java

@@ -700,11 +700,11 @@ public class PayBaseCustomerandmeterrelaServiceImpl implements PayBaseCustomeran
             if(!oldWaterPropertyId.equals(newWaterPropertyId)){
                 //如果有更换用水性质则需要先判断本账期是否审核水量
                 //根据客户查找是否有本账期未审核的水量信息
-                BaseClosingAccountInfoDto baseClosingAccountInfoDto= baseClosingAccountInfoMapper.getLastClosingAccount(loginUser.getSiteId(),loginUser.getCustomerId());
+                /*BaseClosingAccountInfoDto baseClosingAccountInfoDto= baseClosingAccountInfoMapper.getLastClosingAccount(loginUser.getSiteId(),loginUser.getCustomerId());
                 Integer state = amountWaterUsedAmountMapper.getwaterUserdAmount(baseClosingAccountInfoDto.getYear(),baseClosingAccountInfoDto.getMonth(),loginUser.getSiteId(),loginUser.getCurrentSiteId(),saveAccount.getId());
                 if(state != null && state == 1){
                     throw new ServiceException(-900, "修改失败,本账期有未审核的水量。");
-                }
+                }*/
             }
             saveAccount.setName(payBaseCustomerandmeterrela.getAccountname());
             saveAccount.setIdtype(payBaseCustomerandmeterrela.getIdtype());

+ 1 - 1
smart-city-platform/src/main/resources/mapper/PayBaseCustomerandmeterrelaMapper.xml

@@ -90,7 +90,7 @@
                 and metercode =#{metercode}
             </if>
         </where>
-
+        limit 1
     </select>
 
     <select id="getWaterPropertyId" resultType="com.bz.smart_city.entity.pay.archives.PayBaseCustomerandmeterrela">