| | |
| | | |
| | | private static final String ComCode = "92" ; |
| | | |
| | | private static final Double maxRemainMoney = 9999.9999D ;//协议支持的剩余金额最大值 |
| | | |
| | | @Autowired |
| | | private CdSv sv ; |
| | | /** |
| | |
| | | if(vcPo.getMoney() <= 0.0){ |
| | | return BaseResponseUtils.buildErrorMsg("农户该虚拟卡中剩余金额为0,不能再应用其开阀") ; |
| | | } |
| | | if(vcPo.getMoney() >= maxRemainMoney){ |
| | | return BaseResponseUtils.buildErrorMsg("农户该虚拟卡中剩余金额大于协议支持的最大值" + maxRemainMoney + ",不能再应用其开阀") ; |
| | | } |
| | | Double waterPrice = sv.selectWaterPrice() ; |
| | | if(waterPrice == null){ |
| | | return BaseResponseUtils.buildErrorMsg("服务端出错,未得到水价") ; |