From e87b7016de58a8ef9f18658c75f7c8e31941a2a4 Mon Sep 17 00:00:00 2001 From: lisy <linlangsur163@163.com> Date: 星期二, 01 八月 2023 17:52:19 +0800 Subject: [PATCH] 引入了elementui组件+vue组件,实现了多图片上传+限制数量+图片回显+特定样式 --- cloud-server-other/src/main/java/com/dsh/other/service/impl/StoreServiceImpl.java | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/cloud-server-other/src/main/java/com/dsh/other/service/impl/StoreServiceImpl.java b/cloud-server-other/src/main/java/com/dsh/other/service/impl/StoreServiceImpl.java index 47a1af3..a450214 100644 --- a/cloud-server-other/src/main/java/com/dsh/other/service/impl/StoreServiceImpl.java +++ b/cloud-server-other/src/main/java/com/dsh/other/service/impl/StoreServiceImpl.java @@ -6,6 +6,7 @@ import com.dsh.other.entity.Store; import com.dsh.other.mapper.StoreMapper; import com.dsh.other.model.BaseVo; +import com.dsh.other.model.ProvinceAndCityVo; import com.dsh.other.service.StoreService; import com.dsh.other.util.GDMapGeocodingUtil; import com.dsh.other.util.ToolUtil; @@ -79,4 +80,45 @@ } return list; } + + + /** + * 获取开通省市 + * @param pcode + * @return + * @throws Exception + */ + @Override + public List<ProvinceAndCityVo> queryProvinceAndCity(String pcode) throws Exception { + if(ToolUtil.isEmpty(pcode)){ + return this.baseMapper.queryProvince(); + } + if(ToolUtil.isNotEmpty(pcode)){ + return this.baseMapper.queryCity(pcode); + } + return null; + } + + + /** + * 获取所有开通城市 + * @return + * @throws Exception + */ + @Override + public List<ProvinceAndCityVo> queryAllCity() throws Exception { + return this.baseMapper.queryCity(null); + } + + + /** + * 根据城市code获取城市列表 + * @param cityCode + * @return + * @throws Exception + */ + @Override + public List<BaseVo> queryStoreByCityCode(String cityCode) throws Exception { + return this.baseMapper.queryStoreByCityCode(cityCode); + } } -- Gitblit v1.7.1