Commit 6efdcfba by 陶光胜

门店品牌变更

parent 77159ecc
......@@ -85,7 +85,7 @@ public class StoreBrandServiceImpl implements StoreBrandService {
sort = sort == null ? 1d : sort - 1d;
Date date = new Date();
List<TabStoreBrandRef> existList = tabStoreBrandRefMapper.selectByEidAndBrandIdList(enterpriseId, storeBrandIdList);
Map<String, Integer> existMap = existList.stream().collect(Collectors.toMap(ref -> ref.getEnterpriseId() + "-" + ref.getStoreBrandId(), TabStoreBrandRef::getId));
Map<String, Integer> existMap = existList.stream().collect(Collectors.toMap(ref -> ref.getEnterpriseId() + "-" + ref.getStoreBrandId(), TabStoreBrandRef::getId, (k1,k2)->k2));
for(Integer storeBrandId : storeBrandIdList){
if(MapUtils.isNotEmpty(existMap) && !existMap.containsKey(enterpriseId + "-" + storeBrandId)){
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment