Commit 3dbc34d9 by 陶光胜

门店保存修改

parent 772803e9
......@@ -194,6 +194,19 @@ public class StoreController extends DownloadUtils {
@RequestMapping("online-store-count")
public RestResponse onlineStoreCount(@RequestBody StoreSearchDTO storeSearchDTO){
//门店标签
ServiceResponse<StoreTagDTO> storeTagResult = storeTagApiService.getByStoreTagId(storeSearchDTO.getStoreTagId());
if (storeTagResult.isSuccess()) {
StoreWidgetDTO storeWidgetDTO = this.storeWidgetApiService.getStoreWidget(Integer.valueOf(storeTagResult.getResult().getStoreWidgetId().toString())).getResult();
if(storeWidgetDTO != null){
String authSearchParam = storeWidgetDTO.getAuthSearchParam();
String searchParam = storeWidgetDTO.getSearchParam();
if(StringUtils.isNotBlank(authSearchParam) && !"{}".equals(authSearchParam)){
storeSearchDTO.setAuthSearchJson(authSearchParam);
}
storeSearchDTO.setSearchJson(searchParam);
}
}
storeSearchDTO.setEnterpriseId(UserDetailUtils.getUserDetail().getEnterpriseId());
storeSearchDTO.setStatus(StoreStatusEnum.ONLINE.getCode());
if(UserDetailUtils.getUserDetail().getUserResourceInfo() != 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