Commit 2eb18e75 by guojuxing

查询门店

parent 99c8f82e
......@@ -95,10 +95,16 @@ public class WmStoreSyncController {
private static final String STORE_BRANCH_REDIS_KEY = "enterprise:weimob4:init:branch:";
@RequestMapping("list-store")
public RestResponse listStore(StoreSearchDTO storeSearchDTO) {
public RestResponse listStore(StoreSearchDTO storeSearchDTO, Integer wmMallStoreId) {
//todo 过滤已同步过的门店
storeSearchDTO.setEnterpriseId(UserDetailUtils.getUserDetail().getEnterpriseId());
storeSearchDTO.setStatus(1);
ServiceResponse<List<WmStoreSyncLogDTO>> hasSyncStoreListResult = wmStoreSyncLogApiService.getStoreList(null, wmMallStoreId);
if (hasSyncStoreListResult.isSuccess()) {
StringBuilder sb = new StringBuilder();
hasSyncStoreListResult.getResult().forEach(e -> sb.append(e.getStoreId()).append(" "));
storeSearchDTO.setStoreIdsOfNot(sb.toString());
}
return ResultControllerUtils.commonResult(storeApiService
.listStore(storeSearchDTO, storeSearchDTO.getCurrentPage(), storeSearchDTO.getPageSize()));
}
......
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