This commit is contained in:
hayu 2025-01-03 16:16:37 +08:00
parent dc0de44ac3
commit 83a1355e83
1 changed files with 2 additions and 2 deletions

View File

@ -99,14 +99,14 @@ public class SysOrgServiceImpl implements SysOrgService {
@Override @Override
public int insertOrg(SysOrg org) { public int insertOrg(SysOrg org) {
if (org.getLat() == null || org.getLon()== null){ // if (org.getLat() == null || org.getLon()== null){
Map<String, BigDecimal> map = AddressCoordinateFormatUtil.addressToCoordinate(org.getAddress()); Map<String, BigDecimal> map = AddressCoordinateFormatUtil.addressToCoordinate(org.getAddress());
if (map == null) { if (map == null) {
return 3; return 3;
} }
org.setLon(map.get("longitude")); org.setLon(map.get("longitude"));
org.setLat(map.get("latitude")); org.setLat(map.get("latitude"));
} // }
int i = orgDao.insertOrg(org); int i = orgDao.insertOrg(org);
if (i > 0) { if (i > 0) {
msgPush(org); msgPush(org);