Commit 52c03025 by 陶光胜

门店授权

parent 58aaab73
......@@ -39,8 +39,6 @@ public class StoreGroupController {
@RequestMapping("/list")
public RestResponse listStoreGroup(StoreGroupQO storeGroupQO) {
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
storeGroupQO.setEnterpriseId(enterpriseId);
ServiceResponse<List<StoreGroupDTO>> result = storeGroupApiService.listStoreGroup(transferQoToDTO(storeGroupQO));
if (result.isSuccess()) {
return RestResponse
......@@ -90,6 +88,8 @@ public class StoreGroupController {
private StoreGroupDTO transferQoToDTO(StoreGroupQO storeGroupQO) {
StoreGroupDTO storeGroupDTO = EntityUtil.changeEntityNew(StoreGroupDTO.class, storeGroupQO);
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
storeGroupDTO.setEnterpriseId(enterpriseId);
return storeGroupDTO;
}
}
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