Commit 2831134b by guojx

查询分组下的门店,即无归属门店

parent b657dbc9
...@@ -246,6 +246,16 @@ public class EventTrackingController extends NewBaseController { ...@@ -246,6 +246,16 @@ public class EventTrackingController extends NewBaseController {
} }
/** /**
* 查询分组下的门店,即无归属门店
* @param storeGroupId
* @return
*/
@RequestMapping(value = "get-unaffiliated-store")
public RestResponse<List<String>> getUnaffiliatedStoreByStoreGroupId(String storeGroupId) {
return RestResponse.successResult(storeAuthUtils.getUnaffiliatedStoreByStoreGroupId(storeGroupId));
}
/**
* 导购明细导出 * 导购明细导出
* @param qo * @param qo
* @return * @return
......
...@@ -270,6 +270,13 @@ public class StoreAuthUtils { ...@@ -270,6 +270,13 @@ public class StoreAuthUtils {
return storeIdList; return storeIdList;
} }
public List<String> getUnaffiliatedStoreByStoreGroupId(String storeGroupId) {
String[] queryArr = new String[]{storeGroupId};
List<String> storeIdList = storeService.getStoreIdListByGroupId(queryArr,
getAllStoreStatus().stream().mapToInt(e -> Integer.parseInt(e)).boxed().collect(Collectors.toList()));
return storeIdList;
}
private String getPreStoreGroupId(String preStoreGroupId, String enterpriseId) { private String getPreStoreGroupId(String preStoreGroupId, String enterpriseId) {
if (isAllStoreGroup(preStoreGroupId)) { if (isAllStoreGroup(preStoreGroupId)) {
return initGroupId(enterpriseId); return initGroupId(enterpriseId);
......
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