Browse Source

1审核水量

Xiaojh 4 years ago
parent
commit
1d38405cb4

+ 9 - 1
smart-city-platform/src/main/java/com/bz/smart_city/service/impl/pay/AmountWaterUsedAmountServiceImpl.java

@@ -304,7 +304,15 @@ public class AmountWaterUsedAmountServiceImpl implements AmountWaterUsedAmountSe
                             }
                         }
                     }
-
+                    BigInteger WaterPropertyId = customerInfo.getWaterPropertyId();
+                    if(WaterPropertyId != null){
+                        //根据用水性质ID查找是否是阶梯
+                        BaseWaterPropertyDto waterPropertyDto = baseWaterPropertyMapper.get(WaterPropertyId,loginUser.getSiteId(),loginUser.getCustomerId());
+                        Integer laddertype = waterPropertyDto.getLaddertype();
+                        if(laddertype != null && laddertype == 0){
+                            isEnable = 0;
+                        }
+                    }
                     //计算欠费
                     if (isEnable==0) {
                         //非阶梯