设备上电自动审核逻辑修改
This commit is contained in:
@ -422,6 +422,7 @@ public class DeviceOtherMsgConsumer {
|
||||
else if (data1.getStr("action")!=null&& "investMsg".equals(data1.getStr("action"))){
|
||||
//获取订单号并更新订单状态
|
||||
Long orderNum = data1.getLong("orderNum");
|
||||
System.err.println("订单号"+orderNum);
|
||||
boolean update = new LambdaUpdateChainWrapper<>(ngUserRechargeRecordsMapper)
|
||||
.set(NgUserRechargeRecords::getStatus, 3)//已充值
|
||||
.eq(NgUserRechargeRecords::getId, orderNum)
|
||||
@ -592,12 +593,13 @@ public class DeviceOtherMsgConsumer {
|
||||
}
|
||||
}
|
||||
}
|
||||
String investBalanceStr = String.format("%.2f", investBalance);
|
||||
//取最新的订单号作为合并后的订单
|
||||
dataValue.put("orderNum",orderList.get(orderList.size()-1).getId());//订单号
|
||||
reply.put("code",410);
|
||||
dataValue.put("cardNum",Integer.parseInt(cardId));//卡号
|
||||
dataValue.put("areaCode",Integer.parseInt(areaCode));//区域码
|
||||
dataValue.put("investBalance",investBalance.doubleValue()*100);//充值金额
|
||||
dataValue.put("investBalance", Double.parseDouble(investBalanceStr) *100);//充值金额
|
||||
// dataValue.put("investWater",rechargecardUser.getWater()*100);//充值水量
|
||||
reply.put("data",dataValue);
|
||||
pubMqttClient.publish(1,true,"hzlink/"+productId+"/"+serialNumber+"/info/reply", JSONUtil.toJsonStr(reply));
|
||||
|
Reference in New Issue
Block a user