Sfoglia il codice sorgente

修改到docker外运行环境

tags/v1.0.0^2
林万龙 3 anni fa
parent
commit
84df947926
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +1
    -1
      src/main/java/com/telpo/dipperposition/service/IProvinceInfoService.java
  2. +2
    -2
      src/main/java/com/telpo/dipperposition/service/impl/ProvinceInfoServiceImpl.java

+ 1
- 1
src/main/java/com/telpo/dipperposition/service/IProvinceInfoService.java Vedi File

@@ -45,7 +45,7 @@ public interface IProvinceInfoService {
* @param ipAddress
* 获取省份经纬度信息
*/
ProvinceInfoEntity getProvinceInfo(String ipAddress);
ProvinceInfoEntity getProvinceInfo(String provicne);

/**
* 获取省份经纬度信息


+ 2
- 2
src/main/java/com/telpo/dipperposition/service/impl/ProvinceInfoServiceImpl.java Vedi File

@@ -44,10 +44,10 @@ public class ProvinceInfoServiceImpl implements IProvinceInfoService {
}

@Override
public ProvinceInfoEntity getProvinceInfo(String centerAddress) {
public ProvinceInfoEntity getProvinceInfo(String provicne) {
try {
ProvinceInfoEntity query = new ProvinceInfoEntity();
query.setCenterAddress(centerAddress);
query.setProvince(provicne);
List<ProvinceInfoEntity> records = provinceInfoMapper.queryIpList(query);
if (ObjectUtils.isNotEmpty(records)) {
return records.get(0);


Loading…
Annulla
Salva