| | |
| | | |
| | | private static final String ComCode = "A2" ; |
| | | |
| | | private static final Double maxRemainMoney = 9999.9999D ;//协议支持的剩余金额最大值 |
| | | private static final Double MaxRemainMoney = com.dy.pipIrrRemote.monitor.p202404V201.cd92.CdCtrl.MaxRemainMoney;//协议支持的剩余金额最大值 |
| | | |
| | | @Autowired |
| | | private CdSv sv ; |
| | |
| | | if(vcPo.getMoney() <= 0.0){ |
| | | return BaseResponseUtils.buildErrorMsg("农户该虚拟卡中剩余金额为0,不能再应用其开阀") ; |
| | | } |
| | | if(vcPo.getMoney() >= maxRemainMoney){ |
| | | return BaseResponseUtils.buildErrorMsg("农户该虚拟卡中剩余金额大于协议支持的最大值" + maxRemainMoney + ",不能再应用其开阀") ; |
| | | if(vcPo.getMoney() >= MaxRemainMoney){ |
| | | return BaseResponseUtils.buildErrorMsg("农户该虚拟卡中剩余金额大于协议支持的最大值" + MaxRemainMoney + ",不能再应用其开阀") ; |
| | | } |
| | | Double waterPrice = sv.selectWaterPrice() ; |
| | | if(waterPrice == null){ |
| | |
| | | DataCd92_A2Vo cvo = JSON.parseObject(json, DataCd92_A2Vo.class) ; |
| | | if(cvo != null){ |
| | | if(callback != null){ |
| | | if(cvo.opResult != null && cvo.opResult.byteValue() == (byte)0){ |
| | | if(cvo.opResult != null && cvo.opResult.byteValue() == (byte)1){ |
| | | callback.call(true);//开阀成功 |
| | | }else{ |
| | | callback.call(false);//开阀失败 |