更新钱包code为空的数据

This commit is contained in:
Guoqs
2025-07-24 15:26:55 +08:00
parent 3278906351
commit f09e2a0630
2 changed files with 4 additions and 2 deletions

View File

@@ -1348,7 +1348,9 @@ public class TempService {
partition.parallelStream().forEach(walletInfoList -> {
walletInfoList.forEach(walletInfo -> {
// 生成钱包code
walletInfo.setWalletCode(memberBasicInfoService.generateWalletCode());
if (StringUtils.isBlank(walletInfo.getWalletCode())) {
walletInfo.setWalletCode(memberBasicInfoService.generateWalletCode());
}
});
// 批量更新钱包code
memberWalletInfoService.updateBatchSelective(walletInfoList);