Commit a9157d6b by 陶光胜

门店查询接口

parent 9f769cc4
......@@ -115,4 +115,6 @@ public interface ProvincesApiService {
* @return
*/
ServiceResponse<List<CityDTO>> listHotCity(Integer enterpriseId, Integer brandId);
ServiceResponse<List<CityDTO>> listEnterpriseCity(Integer enterpriseId);
}
......@@ -201,4 +201,19 @@ public class ProvincesApiServiceImpl implements ProvincesApiService {
}
return ServiceResponse.success(hotCityList);
}
@Override
public ServiceResponse<List<CityDTO>> listEnterpriseCity(Integer enterpriseId) {
List<String> list = this.storeService.listAllCityId(enterpriseId, null);
ServiceResponse<List<CityDTO>> response = this.selectAllCity();
List<CityDTO> cityList = new ArrayList<>();
if(response.isSuccess()){
for(CityDTO dto : response.getResult()){
if(list.contains(dto.getCityId())){
cityList.add(dto);
}
}
}
return ServiceResponse.success(cityList);
}
}
......@@ -203,7 +203,7 @@
and t1.store_info_id = t2.store_info_id
and t2.overflow_status = 0
<if test="storeBrandId != null and storeBrandId != 0">
and t2.brand_ids = #{storeBrandId}
and t2.brand_ids like concat('%,',#{storeBrandId},',%')
</if>
group by city_id
ORDER BY count(1) desc
......
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