Commit 4848377c by 陶光胜

积分成本主体选择门店接口

parent fd5a09dd
......@@ -367,6 +367,35 @@ public class StoreController extends DownloadUtils {
return RestResponse.success();
}
@RequestMapping("subject-cost-store-search")
public RestResponse subjectCostStoreSearch(String search){
StoreSearchDTO storeSearchDTO = new StoreSearchDTO();
storeSearchDTO.setEnterpriseId(UserDetailUtils.getUserDetail().getEnterpriseId());
storeSearchDTO.setStatus(StoreStatusEnum.ONLINE.getCode());
storeSearchDTO.setSearch(search);
ServiceResponse<Page<StoreDTO>> response = this.storeApiService.listStore(storeSearchDTO, 1, 1000);
if(response.isSuccess() && response.getResult() != null){
List<StoreDTO> result = response.getResult().getResult();
if(CollectionUtils.isEmpty(result)){
result = new ArrayList<StoreDTO>();
}
if("总部".equals(search)){
StoreDTO storeDTO = new StoreDTO();
storeDTO.setStoreName("总部");
storeDTO.setStoreId(8888);
result.add(storeDTO);
}
if("无归属".equals(search)){
StoreDTO storeDTO = new StoreDTO();
storeDTO.setStoreName("无归属");
storeDTO.setStoreId(9999);
result.add(storeDTO);
}
return RestResponse.success(result);
}
return RestResponse.success();
}
private List<StoreListSourceVO> getStoreAllListSource(Integer enterpriseId) {
List<StoreListSourceVO> list = new ArrayList<>();
ServiceResponse<List<StoreDictDTO>> serviceResponse = this.storeDictApiService.listStoreField(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