This commit is contained in:
parent
dc0de44ac3
commit
83a1355e83
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue