This commit is contained in:
parent
dc0de44ac3
commit
83a1355e83
|
|
@ -99,14 +99,14 @@ public class SysOrgServiceImpl implements SysOrgService {
|
|||
|
||||
@Override
|
||||
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());
|
||||
if (map == null) {
|
||||
return 3;
|
||||
}
|
||||
org.setLon(map.get("longitude"));
|
||||
org.setLat(map.get("latitude"));
|
||||
}
|
||||
// }
|
||||
int i = orgDao.insertOrg(org);
|
||||
if (i > 0) {
|
||||
msgPush(org);
|
||||
|
|
|
|||
Loading…
Reference in New Issue