diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardGift/service/impl/CardGiftServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardGift/service/impl/CardGiftServiceImpl.java index 4476adf2e..34b93e0ca 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardGift/service/impl/CardGiftServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardGift/service/impl/CardGiftServiceImpl.java @@ -14,6 +14,7 @@ import com.fuint.business.oilDepotConfiguration.entity.OilDepotConfig; import com.fuint.business.oilDepotConfiguration.service.OilDepotConfigService; import com.fuint.business.store.entity.MtStore; import com.fuint.business.store.service.StoreService; +import com.fuint.business.userManager.entity.LJUser; import com.fuint.business.userManager.entity.UserBalance; import com.fuint.business.userManager.listener.EasyExcelListener; import com.fuint.business.userManager.mapper.LJUserMapper; @@ -264,6 +265,10 @@ public class CardGiftServiceImpl extends ServiceImpl i for (int i = 0; i < list.size(); i++) { CardGift cardGift = (CardGift) list.get(i); cardGift.setStoreId(nowAccountInfo.getStoreId()); + LJUser user = ljUserService.getById(nowAccountInfo.getId()); + if (ObjectUtils.isNotEmpty(user) && StringUtils.isNotEmpty(user.getName())){ + cardGift.setCreateBy(user.getName()); + } //去重 LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.eq(CardGift::getNumber,cardGift.getNumber());