Commit 665498c0 by 陶光胜

门店品牌变更

parent ca934aff
......@@ -87,7 +87,7 @@ public class StoreBrandServiceImpl implements StoreBrandService {
List<TabStoreBrandRef> existList = tabStoreBrandRefMapper.selectByEidAndBrandIdList(enterpriseId, storeBrandIdList);
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)){
if(MapUtils.isNotEmpty(existMap) && existMap.containsKey(enterpriseId + "-" + storeBrandId)){
continue;
}
TabStoreBrandRef tabStoreBrandRef = new TabStoreBrandRef();
......
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