This commit is contained in:
parent
2db149add4
commit
86615ca026
|
|
@ -76,12 +76,12 @@ public class SysOrgServiceImpl implements SysOrgService {
|
|||
|
||||
@Override
|
||||
public int insertOrg(SysOrg org) {
|
||||
Map<String, BigDecimal> map = AddressCoordinateFormatUtil.addressToCoordinate(org.getAddress());
|
||||
if (map == null) {
|
||||
return 3;
|
||||
}
|
||||
org.setLon(map.get("longitude"));
|
||||
org.setLat(map.get("latitude"));
|
||||
// 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);
|
||||
|
|
@ -105,12 +105,12 @@ public class SysOrgServiceImpl implements SysOrgService {
|
|||
|
||||
@Override
|
||||
public int updateOrg(SysOrg org) {
|
||||
Map<String, BigDecimal> map = AddressCoordinateFormatUtil.addressToCoordinate(org.getAddress());
|
||||
if (map == null) {
|
||||
return 3;
|
||||
}
|
||||
org.setLon(map.get("longitude"));
|
||||
org.setLat(map.get("latitude"));
|
||||
// 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.updateOrg(org);
|
||||
if (i > 0) {
|
||||
if (StringUtils.isNotBlank(org.getOrgHeadUserId())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue