|
|
@ -8,6 +8,7 @@ import com.hfkj.channel.saas.utils.SaasCommon; |
|
|
|
import com.hfkj.common.exception.ErrorCode; |
|
|
|
import com.hfkj.common.exception.ErrorCode; |
|
|
|
import com.hfkj.common.exception.ErrorHelp; |
|
|
|
import com.hfkj.common.exception.ErrorHelp; |
|
|
|
import com.hfkj.common.exception.SysCode; |
|
|
|
import com.hfkj.common.exception.SysCode; |
|
|
|
|
|
|
|
import com.hfkj.common.utils.CoordCommonUtil; |
|
|
|
import com.hfkj.common.utils.ResponseMsgUtil; |
|
|
|
import com.hfkj.common.utils.ResponseMsgUtil; |
|
|
|
import com.hfkj.entity.BsCompany; |
|
|
|
import com.hfkj.entity.BsCompany; |
|
|
|
import com.hfkj.entity.SecRegion; |
|
|
|
import com.hfkj.entity.SecRegion; |
|
|
@ -279,24 +280,7 @@ public class CommonController { |
|
|
|
) { |
|
|
|
) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
List<OpenStoreModel> list = storeService.getStoreList(name , childId); |
|
|
|
return ResponseMsgUtil.success(storeService.getStoreList(name , childId)); |
|
|
|
|
|
|
|
|
|
|
|
for (OpenStoreModel storeModel : list ) { |
|
|
|
|
|
|
|
Map<String , Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
String regEx = "[\n`~!@#$%^&*()+=|{}':;',\\[\\].<>/?~!@#¥%……&*()——+|{}【】‘;:”“’。, ·、?]"; |
|
|
|
|
|
|
|
map.put("address" , storeModel.getBlisRegAddress().replaceAll(regEx,"")); |
|
|
|
|
|
|
|
map.put("location" , "showLocation"); |
|
|
|
|
|
|
|
JSONObject object = commonService.getMapDetail(map); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (object.getInteger("status") == 0) { |
|
|
|
|
|
|
|
JSONObject jsonObject = object.getJSONObject("result").getJSONObject("location"); |
|
|
|
|
|
|
|
storeModel.setLatitude(jsonObject.getString("lat")); |
|
|
|
|
|
|
|
storeModel.setLongitude(jsonObject.getString("lng")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success(list); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error(e.getMessage(), e); |
|
|
|
log.error(e.getMessage(), e); |
|
|
|