|
@@ -689,11 +689,11 @@ public class PayBaseCustomerandmeterrelaServiceImpl implements PayBaseCustomeran
|
|
|
cus.setCustomerId(BigInteger.valueOf(loginUser.getCustomerId()));
|
|
|
List<PayBaseCustomerandmeterrela> cusList = payBaseCustomerandmeterrelaMapper.findList(cus);
|
|
|
if(cusList == null && cusList.size() ==0){
|
|
|
- return "修改失败,开户信息有误。";
|
|
|
+ throw new ServiceException(-900, "修改失败,开户信息有误。");
|
|
|
}
|
|
|
BigInteger newWaterPropertyId = payBaseCustomerandmeterrela.getWaterPropertyId();
|
|
|
if(newWaterPropertyId == null){
|
|
|
- return "修改失败,用水性质不能为空。";
|
|
|
+ throw new ServiceException(-900, "修改失败,用水性质不能为空。");
|
|
|
}
|
|
|
BigInteger oldWaterPropertyId = cusList.get(0).getWaterPropertyId();
|
|
|
|
|
@@ -703,7 +703,7 @@ public class PayBaseCustomerandmeterrelaServiceImpl implements PayBaseCustomeran
|
|
|
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){
|
|
|
- return "修改失败,本账期有未审核的水量。";
|
|
|
+ throw new ServiceException(-900, "修改失败,本账期有未审核的水量。");
|
|
|
}
|
|
|
}
|
|
|
saveAccount.setName(payBaseCustomerandmeterrela.getAccountname());
|