|
@ -72,11 +72,11 @@ public class GridInfoPingyinServiceImpl extends BaseServiceImpl<GridInfoPingyinD |
|
|
entity.setGridCode(ag.getCode()); |
|
|
entity.setGridCode(ag.getCode()); |
|
|
entity.setGridName(ag.getOrganizationName()); |
|
|
entity.setGridName(ag.getOrganizationName()); |
|
|
if (Constant.DISTRICT.equals(ag.getLevel())) { |
|
|
if (Constant.DISTRICT.equals(ag.getLevel())) { |
|
|
entity.setGridLevel(3); |
|
|
entity.setGridLevel("03"); |
|
|
} else if (Constant.STREET.equals(ag.getLevel())) { |
|
|
} else if (Constant.STREET.equals(ag.getLevel())) { |
|
|
entity.setGridLevel(4); |
|
|
entity.setGridLevel("04"); |
|
|
} else if (Constant.COMMUNITY.equals(ag.getLevel())) { |
|
|
} else if (Constant.COMMUNITY.equals(ag.getLevel())) { |
|
|
entity.setGridLevel(6); |
|
|
entity.setGridLevel("06"); |
|
|
} |
|
|
} |
|
|
entity.setLat(new BigDecimal(ag.getLatitude())); |
|
|
entity.setLat(new BigDecimal(ag.getLatitude())); |
|
|
entity.setLng(new BigDecimal(ag.getLongitude())); |
|
|
entity.setLng(new BigDecimal(ag.getLongitude())); |
|
@ -162,7 +162,7 @@ public class GridInfoPingyinServiceImpl extends BaseServiceImpl<GridInfoPingyinD |
|
|
entity.setQxMc("平阴县"); |
|
|
entity.setQxMc("平阴县"); |
|
|
entity.setGridCode(ag.getCode()); |
|
|
entity.setGridCode(ag.getCode()); |
|
|
entity.setGridName(ag.getGridName()); |
|
|
entity.setGridName(ag.getGridName()); |
|
|
entity.setGridLevel(7); |
|
|
entity.setGridLevel("7"); |
|
|
if (ag.getLatitude().length() > 10) { |
|
|
if (ag.getLatitude().length() > 10) { |
|
|
entity.setLat(new BigDecimal(ag.getLatitude().substring(0, 10))); |
|
|
entity.setLat(new BigDecimal(ag.getLatitude().substring(0, 10))); |
|
|
} else { |
|
|
} else { |
|
|