记得上下班打卡 | git大法好,push需谨慎

Commit 5076a932 authored by 姜秀龙's avatar 姜秀龙

离线支付-迈之 老数据导致的 null

parent 2e6f3f1d
...@@ -180,25 +180,26 @@ public class GoblinRechargeWristbandServiceImpl extends ServiceImpl<GoblinRechar ...@@ -180,25 +180,26 @@ public class GoblinRechargeWristbandServiceImpl extends ServiceImpl<GoblinRechar
if (null != res && res.getErrcode() == 200) { if (null != res && res.getErrcode() == 200) {
for (DeviceNumberResponse.NumberList info : res.getList()) { for (DeviceNumberResponse.NumberList info : res.getList()) {
String orderId = goblinRedisUtils.getOrderIdByFoutTradeNo(info.getFout_trade_no()); String orderId = goblinRedisUtils.getOrderIdByFoutTradeNo(info.getFout_trade_no());
GoblinBraceletOrderVo orderVo = goblinRedisUtils.getBraceletOrderVo(orderId); if (null != orderId) {
if (null != orderVo) { GoblinBraceletOrderVo orderVo = goblinRedisUtils.getBraceletOrderVo(orderId);
orderVo.setCardno(info.getCardno()); if (null != orderVo) {
goblinRedisUtils.setBraceletOrderVo(orderVo); orderVo.setCardno(info.getCardno());
goblinRedisUtils.setBraceletOrderVo(orderVo);
LinkedList<String> sqls = CollectionUtil.linkedListString();
sqls.add(SqlMapping.get("goblin_bracelet_order_update_cardno")); LinkedList<String> sqls = CollectionUtil.linkedListString();
LinkedList<Object[]> sqlDataOrder = CollectionUtil.linkedListObjectArr(); sqls.add(SqlMapping.get("goblin_bracelet_order_update_cardno"));
LinkedList<Object[]> sqlDataOrder = CollectionUtil.linkedListObjectArr();
sqlDataOrder.add(new Object[]{
info.getCardno(), LocalDateTime.now(), orderId sqlDataOrder.add(new Object[]{
}); info.getCardno(), LocalDateTime.now(), orderId
});
queueUtils.sendMsgByRedis(
MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getKey(), queueUtils.sendMsgByRedis(
SqlMapping.gets(sqls, sqlDataOrder) MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getKey(),
); SqlMapping.gets(sqls, sqlDataOrder)
);
}
} }
} }
goblinRedisUtils.setDeviceNumberEndTime(operationNo, String.valueOf(timestamp)); goblinRedisUtils.setDeviceNumberEndTime(operationNo, String.valueOf(timestamp));
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment