Commit 96d5e200 by zhiwj

代码结构调整

parent 3c7b7995
......@@ -1601,10 +1601,14 @@ public class StoreApiServiceImpl implements StoreApiService {
}
return false;
}).map(TabStoreTag::getStoreWidgetId).collect(Collectors.toList());
if(CollectionUtils.isEmpty(storeSearchDTO.getStoreResourceList())){
storeSearchDTO.setStoreResourceList(new ArrayList<>());
if(CollectionUtils.isNotEmpty(storeWidgetList)){
List<JSONObject> jsonObjectOrList = new ArrayList<>();
for (Integer storeResource : storeWidgetList) {
String s = this.buildStoreWidgetJson(storeResource, json, jsonObjectOrList);
}
JSONObject object = QueryConditionAssemblyUtil.createListQueryNode(jsonObjectOrList, OperateEnum.OPERATE_OR);
jsonObjectList.add(object);
}
storeSearchDTO.getStoreResourceList().addAll(storeWidgetList);
}
String storeWidgetJson = this.buildStoreWidgetJson(storeSearchDTO.getStoreResource() == null ? null : storeSearchDTO.getStoreResource().intValue(), json, jsonObjectList);
/*****如果存在没有门店权限的门店控件id,直接返回*****/
......@@ -1762,7 +1766,7 @@ public class StoreApiServiceImpl implements StoreApiService {
return json;
}
private String buildStoreWidgetJson(Integer storeWidgetId, JSONObject json, List<JSONObject> jsonObjectList){
private String buildStoreWidgetJson(Integer storeWidgetId, JSONObject json, List<JSONObject> jsonObjectList){
if(storeWidgetId != null){
StoreWidgetDTO storeWidget = this.storeWidgetService.getStoreWidget(storeWidgetId.intValue());
if(storeWidget != null){
......
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