Commit e9a4ac45 by 陶光胜

修改

parent c0d1bf75
......@@ -131,17 +131,19 @@ public class ScreeningController {
@RequestMapping("get-user-store-resource")
@ResponseBody
public RestResponse getUserStoreResouce() throws ClassNotFoundException {
Long storeResource = UserDetailUtils.getUserDetail().getUserResourceInfo().getStoreResource();
if(storeResource == null){
return RestResponse.success(new StoreResourceVO());
}
ServiceResponse<StoreWidgetDTO> storeWidget = this.storeWidgetApiService.getStoreWidget(storeResource.intValue());
if(storeWidget.isSuccess() && storeWidget.getResult() != null){
StoreResourceVO vo = new StoreResourceVO();
vo.setAuthMode(storeWidget.getResult().getAuthMode());
vo.setSearchJson(storeWidget.getResult().getSearchParam());
vo.setSceenBack(this.getScreenBack(storeWidget.getResult().getSearchParam()));
return RestResponse.success(vo);
if(UserDetailUtils.getUserDetail().getUserInfo().getSuperAdmin() != 1){
Long storeResource = UserDetailUtils.getUserDetail().getUserResourceInfo().getStoreResource();
if(storeResource == null){
return RestResponse.success(new StoreResourceVO());
}
ServiceResponse<StoreWidgetDTO> storeWidget = this.storeWidgetApiService.getStoreWidget(storeResource.intValue());
if(storeWidget.isSuccess() && storeWidget.getResult() != null){
StoreResourceVO vo = new StoreResourceVO();
vo.setAuthMode(storeWidget.getResult().getAuthMode());
vo.setSearchJson(storeWidget.getResult().getSearchParam());
vo.setSceenBack(this.getScreenBack(storeWidget.getResult().getSearchParam()));
return RestResponse.success(vo);
}
}
return RestResponse.success(new StoreResourceVO());
}
......
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