liuf 10 месяцев назад
Родитель
Сommit
25697e366b
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      src/main/java/com/tmzn/devicelinkykc/message/YkcMsgHandle.java

+ 5 - 5
src/main/java/com/tmzn/devicelinkykc/message/YkcMsgHandle.java

@@ -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);