Commit 08c8ded3 by 陶光胜

门店授权

parent 32682915
......@@ -2,6 +2,7 @@ package com.gic.store.web.controller;
import java.util.List;
import com.gic.enterprise.utils.UserDetailUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -38,8 +39,9 @@ public class StoreGroupController {
@RequestMapping("/list")
public RestResponse listStoreGroup(StoreGroupQO storeGroupQO) {
ServiceResponse<List<StoreGroupDTO>> result = storeGroupApiService
.listStoreGroup(transferQoToDTO(storeGroupQO));
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
storeGroupQO.setEnterpriseId(enterpriseId);
ServiceResponse<List<StoreGroupDTO>> result = storeGroupApiService.listStoreGroup(transferQoToDTO(storeGroupQO));
if (result.isSuccess()) {
return RestResponse
.success(ChangeListToTree.changeListToTree(StoreGroupConstant.ALL_STORE_LEVEL, result.getResult()));
......
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