Commit 52080a99 by 陶光胜

门店保存修改

parent 6e9463ac
......@@ -181,6 +181,9 @@ public class StoreDictApiServiceImpl implements StoreDictApiService {
List<String> del = existList.stream().filter(s -> !newList.contains(s)).collect(Collectors.toList());
if(CollectionUtils.isNotEmpty(add)){
add.forEach(s -> {
if(StringUtils.isBlank(s)){
return;
}
TabStoreField tabStoreField = this.storeFieldService.getStoreFieldById(Integer.valueOf(s));
if(tabStoreField.getStoreFieldType() != null && tabStoreField.getStoreFieldType().intValue() == 1){
return;
......@@ -206,6 +209,9 @@ public class StoreDictApiServiceImpl implements StoreDictApiService {
}
if(CollectionUtils.isNotEmpty(del)){
del.forEach(s -> {
if(StringUtils.isBlank(s)){
return;
}
String key = StoreRedisKeyUtils.getStoreFieldKey(enterpriseId, Integer.valueOf(s));
this.storeDictService.deleteStoreField(enterpriseId, s);
Object c = RedisUtil.getCache(key);
......
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