Commit 3488fd7a by 陶光胜

门店查询支持多个门店控件id聚合

parent d8d67239
......@@ -382,4 +382,6 @@ public interface StoreApiService {
* @throws
*/
ServiceResponse<Void> tranOverFlow(Integer enterpriseId, String storeIds);
ServiceResponse<List<StoreDTO>> listStoreFromDb(Integer enterpriseId, StoreSearchDBDTO storeSearchDBDTO);
}
......@@ -309,6 +309,16 @@ public class StoreApiServiceImpl implements StoreApiService {
}
@Override
public ServiceResponse<List<StoreDTO>> listStoreFromDb(Integer enterpriseId, StoreSearchDBDTO storeSearchDBDTO) {
if(enterpriseId != null){
storeSearchDBDTO.setEnterpriseId(enterpriseId);
com.github.pagehelper.Page<StoreDTO> storeDTOS = this.storeService.listStore(storeSearchDBDTO, 1, Integer.MAX_VALUE);
return ServiceResponse.success(storeDTOS.getResult());
}
return ServiceResponse.success();
}
@Override
public ServiceResponse<Integer> countByOverflowStatus(Integer enterpriseId) {
this.storeService.countByOverflowStatus(enterpriseId, 0);
return EnterpriseServiceResponse.success(this.storeService.countByOverflowStatus(enterpriseId, 0));
......
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