bug
This commit is contained in:
parent
d20c7f151d
commit
595227b921
@ -14,6 +14,7 @@ import com.fuint.business.oilDepotConfiguration.entity.OilDepotConfig;
|
|||||||
import com.fuint.business.oilDepotConfiguration.service.OilDepotConfigService;
|
import com.fuint.business.oilDepotConfiguration.service.OilDepotConfigService;
|
||||||
import com.fuint.business.store.entity.MtStore;
|
import com.fuint.business.store.entity.MtStore;
|
||||||
import com.fuint.business.store.service.StoreService;
|
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.entity.UserBalance;
|
||||||
import com.fuint.business.userManager.listener.EasyExcelListener;
|
import com.fuint.business.userManager.listener.EasyExcelListener;
|
||||||
import com.fuint.business.userManager.mapper.LJUserMapper;
|
import com.fuint.business.userManager.mapper.LJUserMapper;
|
||||||
@ -264,6 +265,10 @@ public class CardGiftServiceImpl extends ServiceImpl<CardGiftMapper, CardGift> i
|
|||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
CardGift cardGift = (CardGift) list.get(i);
|
CardGift cardGift = (CardGift) list.get(i);
|
||||||
cardGift.setStoreId(nowAccountInfo.getStoreId());
|
cardGift.setStoreId(nowAccountInfo.getStoreId());
|
||||||
|
LJUser user = ljUserService.getById(nowAccountInfo.getId());
|
||||||
|
if (ObjectUtils.isNotEmpty(user) && StringUtils.isNotEmpty(user.getName())){
|
||||||
|
cardGift.setCreateBy(user.getName());
|
||||||
|
}
|
||||||
//去重
|
//去重
|
||||||
LambdaQueryWrapper<CardGift> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<CardGift> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
queryWrapper.eq(CardGift::getNumber,cardGift.getNumber());
|
queryWrapper.eq(CardGift::getNumber,cardGift.getNumber());
|
||||||
|
Loading…
Reference in New Issue
Block a user