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