Browse Source

gridLevel String

dev
yinzuomei 3 years ago
parent
commit
02e5ff8502
  1. 2
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/GridInfoPingyinDao.java
  2. 2
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/GridInfoPingyinEntity.java
  3. 8
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GridInfoPingyinServiceImpl.java

2
epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/GridInfoPingyinDao.java

@ -25,7 +25,7 @@ public interface GridInfoPingyinDao extends BaseDao<GridInfoPingyinEntity> {
int updateSomeCol(@Param("gridCode") String gridCode,
@Param("gridName")String gridName,
@Param("gridLevel")Integer gridLevel,
@Param("gridLevel")String gridLevel,
@Param("lng")BigDecimal lng,
@Param("lat")BigDecimal lat);

2
epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/GridInfoPingyinEntity.java

@ -43,7 +43,7 @@ public class GridInfoPingyinEntity {
/**
* 网格层级应符合10.1组织层级所有层级上报
*/
private Integer gridLevel;
private String gridLevel;
/**
* 专属网格类型应符合10.28专属网格类型

8
epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GridInfoPingyinServiceImpl.java

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

Loading…
Cancel
Save