|
|
@@ -505,13 +505,13 @@ public class YkcMsgHandle {
|
|
|
|
|
|
int port = (int) guns[0];
|
|
|
//后台计费
|
|
|
- Map<String, BigDecimal> map = transMoney.compute(port, model, statusServiceOne.getCreateTime(), System.currentTimeMillis());
|
|
|
- BigDecimal money = statusServiceOne.getStartMoney().subtract(map.get("money")).setScale(4, BigDecimal.ROUND_DOWN);
|
|
|
+ // Map<String, BigDecimal> map = transMoney.compute(port, model, statusServiceOne.getCreateTime(), System.currentTimeMillis());
|
|
|
+ //BigDecimal money = statusServiceOne.getStartMoney().subtract(map.get("money")).setScale(4, BigDecimal.ROUND_DOWN);
|
|
|
|
|
|
- BigDecimal add = money.add(bigDecimal);
|
|
|
- statusServiceOne.setStartMoney(add);
|
|
|
+ //BigDecimal add = money.add(bigDecimal);
|
|
|
+ statusServiceOne.setStartMoney(bigDecimal);
|
|
|
|
|
|
- logger.info("更新余额>>" + bigDecimal + ";pileCode:" + pile+"port:{}--before:{},after:{}",guns[0],money,add);
|
|
|
+ logger.info("更新余额>>{};pileCode:{}port:{}--before:{}",bigDecimal,pileCode,guns[0],statusServiceOne.getStartMoney());
|
|
|
|
|
|
|
|
|
// statusServiceOne.setStartMoney(bigDecimal);
|