mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-25 01:29:47 +08:00
修正并充订单数据工具
This commit is contained in:
@@ -686,12 +686,20 @@ public class TempService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 更新数据库
|
// 更新数据库
|
||||||
orderBasicInfoService.updateBatch(orderBasicInfos);
|
int updateCount = 0;
|
||||||
orderDetailService.updateBatch(orderDetailList);
|
if (CollectionUtils.isNotEmpty(orderBasicInfos)) {
|
||||||
|
updateCount = orderBasicInfoService.updateBatch(orderBasicInfos);
|
||||||
|
}
|
||||||
|
if (CollectionUtils.isNotEmpty(orderDetailList)) {
|
||||||
|
orderDetailService.updateBatch(orderDetailList);
|
||||||
|
}
|
||||||
|
|
||||||
Map<String, List<String>> redisMap = Maps.newHashMap();
|
if (orderCodeList.size() == updateCount) {
|
||||||
redisMap.put(redisKey, orderCodeList);
|
logger.info("修正并充订单数据工具, 修正成功, 订单号:{}", JSON.toJSONString(orderCodeList));
|
||||||
redisCache.batchSetCacheList(redisMap, 300, TimeUnit.DAYS);
|
Map<String, List<String>> redisMap = Maps.newHashMap();
|
||||||
|
redisMap.put(redisKey, orderCodeList);
|
||||||
|
redisCache.batchSetCacheList(redisMap, 300, TimeUnit.DAYS);
|
||||||
|
}
|
||||||
|
|
||||||
return orderCodeList;
|
return orderCodeList;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user