Browse Source

Merge remote-tracking branch 'origin/develop' into release_temp

master
zxc 4 years ago
parent
commit
2e17bd5143
  1. 2
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenProjectDataDao.xml
  2. 14
      epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/ExDeptDTO.java
  3. 16
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/ExDeptEntity.java
  4. 8
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BaseGridInfoServiceImpl.java
  5. 2
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/ExDeptServiceImpl.java

2
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenProjectDataDao.xml

@ -373,7 +373,7 @@
#{a.pid} AS pid, #{a.pid} AS pid,
#{a.pids} AS pids, #{a.pids} AS pids,
#{a.orgType} AS orgType, #{a.orgType} AS orgType,
pc.`LEVEL`, 1 AS level,
<if test=' status == "closed" '> <if test=' status == "closed" '>
COUNT(DISTINCT pc.PROJECT_ID) AS closedProjectTotal COUNT(DISTINCT pc.PROJECT_ID) AS closedProjectTotal
</if> </if>

14
epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/ExDeptDTO.java

@ -68,14 +68,24 @@ public class ExDeptDTO implements Serializable {
*/ */
private String gridCode; private String gridCode;
/**
* 组织类型
*/
private String isCgorg;
/** /**
* 区县平台部门id * 区县平台部门id
*/ */
private String deptIdQx; private String qxDeptId;
/**
* 区县平台部门/网格名称
*/
private String qxDeptCode;
/** /**
* 区县平台部门/网格名称 * 区县平台部门/网格名称
*/ */
private String deptNameQx; private String qxDeptName;
} }

16
epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/ExDeptEntity.java

@ -65,18 +65,28 @@ public class ExDeptEntity {
private String deptCode; private String deptCode;
/** /**
* * 省标准区划编码/网格编码
*/ */
private String gridCode; private String gridCode;
/**
* 组织类型
*/
private String isCgorg;
/** /**
* 区县平台部门id * 区县平台部门id
*/ */
private String deptIdQx; private String qxDeptId;
/**
* 区县平台部门/网格名称
*/
private String qxDeptCode;
/** /**
* 区县平台部门/网格名称 * 区县平台部门/网格名称
*/ */
private String deptNameQx; private String qxDeptName;
} }

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

@ -90,8 +90,8 @@ public class BaseGridInfoServiceImpl extends BaseServiceImpl<BaseGridInfoDao, Ba
List<ExDeptEntity> ExList = new ArrayList<>(); List<ExDeptEntity> ExList = new ArrayList<>();
result.getData().forEach(ag->{ result.getData().forEach(ag->{
ExDeptEntity entity = new ExDeptEntity(); ExDeptEntity entity = new ExDeptEntity();
entity.setDeptIdQx(ag.getId()); entity.setQxDeptId(ag.getId());
entity.setDeptNameQx(ag.getOrganizationName()); entity.setQxDeptName(ag.getOrganizationName());
entity.setGridCode(ag.getCode()); entity.setGridCode(ag.getCode());
ExList.add(entity); ExList.add(entity);
}); });
@ -138,8 +138,8 @@ public class BaseGridInfoServiceImpl extends BaseServiceImpl<BaseGridInfoDao, Ba
List<ExDeptEntity> ExList = new ArrayList<>(); List<ExDeptEntity> ExList = new ArrayList<>();
result.getData().forEach(ag -> { result.getData().forEach(ag -> {
ExDeptEntity entity = new ExDeptEntity(); ExDeptEntity entity = new ExDeptEntity();
entity.setDeptIdQx(ag.getId()); entity.setQxDeptId(ag.getId());
entity.setDeptNameQx(ag.getGridName()); entity.setQxDeptName(ag.getGridName());
entity.setGridCode(ag.getCode()); entity.setGridCode(ag.getCode());
ExList.add(entity); ExList.add(entity);
}); });

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

@ -104,7 +104,7 @@ public class ExDeptServiceImpl extends BaseServiceImpl<ExDeptDao, ExDeptEntity>
@Override @Override
public Map<String, Integer> getDeptMap() { public Map<String, Integer> getDeptMap() {
LambdaQueryWrapper<ExDeptEntity> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<ExDeptEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.ne(ExDeptEntity::getGridCode, null); wrapper.isNotNull(ExDeptEntity::getGridCode);
List<ExDeptEntity> entityList = baseDao.selectList(wrapper); List<ExDeptEntity> entityList = baseDao.selectList(wrapper);
if (CollectionUtils.isEmpty(entityList)) { if (CollectionUtils.isEmpty(entityList)) {
return Collections.emptyMap(); return Collections.emptyMap();

Loading…
Cancel
Save