Browse Source

修改更新中心点 按组织去修改

master
jianjun 4 years ago
parent
commit
ed698777dd
  1. 1
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screen/form/GridCenterPointForm.java
  2. 31
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenCustomerGridDao.java
  3. 2
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/ScreenCustomerGridService.java
  4. 5
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/ScreenCustomerGridServiceImpl.java
  5. 2
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/EIDimServiceImpl.java
  6. 13
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenCustomerGridDao.xml

1
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screen/form/GridCenterPointForm.java

@ -16,6 +16,7 @@ public class GridCenterPointForm implements Serializable {
private static final long serialVersionUID = -6988009829971668860L; private static final long serialVersionUID = -6988009829971668860L;
private String customerId; private String customerId;
private String pids;
private List<CenterPointForm> centerDataList = new ArrayList<>(); private List<CenterPointForm> centerDataList = new ArrayList<>();

31
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenCustomerGridDao.java

@ -62,8 +62,8 @@ public interface ScreenCustomerGridDao extends BaseDao<ScreenCustomerGridEntity>
void batchInsertCustomerGrid(@Param("list") List<CustomerGridFormDTO> list, @Param("customerId") String customerId); void batchInsertCustomerGrid(@Param("list") List<CustomerGridFormDTO> list, @Param("customerId") String customerId);
/** /**
* @return java.lang.Integer
* @param customerId * @param customerId
* @return java.lang.Integer
* @author yinzuomei * @author yinzuomei
* @description 查询客户下网格总数 * @description 查询客户下网格总数
* @Date 2020/8/26 15:33 * @Date 2020/8/26 15:33
@ -71,8 +71,8 @@ public interface ScreenCustomerGridDao extends BaseDao<ScreenCustomerGridEntity>
Integer selectCountByCustomerId(@Param("customerId") String customerId); Integer selectCountByCustomerId(@Param("customerId") String customerId);
/** /**
* @return java.util.List<com.epmet.dto.ScreenCustomerGridDTO>
* @param customerId * @param customerId
* @return java.util.List<com.epmet.dto.ScreenCustomerGridDTO>
* @author yinzuomei * @author yinzuomei
* @description 查询客户下网格信息 * @description 查询客户下网格信息
* @Date 2020/8/26 15:33 * @Date 2020/8/26 15:33
@ -80,8 +80,8 @@ public interface ScreenCustomerGridDao extends BaseDao<ScreenCustomerGridEntity>
List<ScreenCustomerGridDTO> selectListByCustomerId(@Param("customerId") String customerId); List<ScreenCustomerGridDTO> selectListByCustomerId(@Param("customerId") String customerId);
/** /**
* @return java.util.List<com.epmet.dto.ScreenCustomerGridDTO>
* @param formDTO * @param formDTO
* @return java.util.List<com.epmet.dto.ScreenCustomerGridDTO>
* @author yinzuomei * @author yinzuomei
* @description 分页查询网格列表 * @description 分页查询网格列表
* @Date 2020/8/27 14:42 * @Date 2020/8/27 14:42
@ -113,6 +113,7 @@ public interface ScreenCustomerGridDao extends BaseDao<ScreenCustomerGridEntity>
/** /**
* 根据客户id 查询网格(党支部)详细信息 * 根据客户id 查询网格(党支部)详细信息
*
* @param customerId * @param customerId
* @return java.util.List<com.epmet.dto.ScreenCustomerGridDTO> * @return java.util.List<com.epmet.dto.ScreenCustomerGridDTO>
* @Author zhangyong * @Author zhangyong
@ -123,8 +124,8 @@ public interface ScreenCustomerGridDao extends BaseDao<ScreenCustomerGridEntity>
@Param("subCustomerIds") List<String> subCustomerIds); @Param("subCustomerIds") List<String> subCustomerIds);
/** /**
* @Description 根据agencyId查询网格ID
* @param agencyId * @param agencyId
* @Description 根据agencyId查询网格ID
* @author zxc * @author zxc
* @date 2020/9/22 2:16 下午 * @date 2020/9/22 2:16 下午
*/ */
@ -137,9 +138,9 @@ public interface ScreenCustomerGridDao extends BaseDao<ScreenCustomerGridEntity>
ScreenCustomerGridEntity getByGridId(String gridId); ScreenCustomerGridEntity getByGridId(String gridId);
/** /**
* @Description 查询客户下所有网格ID
* @param customerId * @param customerId
* @param dateId * @param dateId
* @Description 查询客户下所有网格ID
* @author zxc * @author zxc
* @date 2020/9/23 3:10 下午 * @date 2020/9/23 3:10 下午
*/ */
@ -153,35 +154,36 @@ public interface ScreenCustomerGridDao extends BaseDao<ScreenCustomerGridEntity>
* @date 2020/9/25 10:43 上午 * @date 2020/9/25 10:43 上午
*/ */
List<ScreenPartyLinkMassesDataFormDTO> selectAllGridIdToPartyLinkMessage(@Param("customerId") String customerId, @Param("monthId") String monthId); List<ScreenPartyLinkMassesDataFormDTO> selectAllGridIdToPartyLinkMessage(@Param("customerId") String customerId, @Param("monthId") String monthId);
List<ScreenPartyBranchDataFormDTO> selectAllGridIdToOrganize(@Param("customerId") String customerId, @Param("monthId") String monthId); List<ScreenPartyBranchDataFormDTO> selectAllGridIdToOrganize(@Param("customerId") String customerId, @Param("monthId") String monthId);
/** /**
* @Description 查询org名称
* @param gridIds * @param gridIds
* @Description 查询org名称
* @author zxc * @author zxc
* @date 2020/9/24 1:27 下午 * @date 2020/9/24 1:27 下午
*/ */
List<OrgNameResultDTO> selectOrgName(@Param("gridIds") List<String> gridIds); List<OrgNameResultDTO> selectOrgName(@Param("gridIds") List<String> gridIds);
/** /**
* @Description 查询机关的直属网格
* @param agencyIds * @param agencyIds
* @Description 查询机关的直属网格
* @author zxc * @author zxc
* @date 2020/9/24 2:33 下午 * @date 2020/9/24 2:33 下午
*/ */
List<GridInfoResultDTO> selectDirectGrid(@Param("agencyIds") List<String> agencyIds); List<GridInfoResultDTO> selectDirectGrid(@Param("agencyIds") List<String> agencyIds);
/** /**
* @Description 查询全部网格信息
* @param customerId * @param customerId
* @Description 查询全部网格信息
* @author zxc * @author zxc
* @date 2020/9/19 10:50 上午 * @date 2020/9/19 10:50 上午
*/ */
List<PartyAbilityGridMonthlyFormDTO> selectAllGridInfoToParty(String customerId); List<PartyAbilityGridMonthlyFormDTO> selectAllGridInfoToParty(String customerId);
/** /**
* @Description 查询全部网格信息
* @param customerId * @param customerId
* @Description 查询全部网格信息
* @author zxc * @author zxc
* @date 2020/9/18 10:47 上午 * @date 2020/9/18 10:47 上午
*/ */
@ -203,4 +205,15 @@ public interface ScreenCustomerGridDao extends BaseDao<ScreenCustomerGridEntity>
* @date 2021/3/23 下午4:03 * @date 2021/3/23 下午4:03
*/ */
List<ScreenCustomerGridDTO> selectBelongGridInfo(@Param("customerId") String customerId, @Param("level") String level); List<ScreenCustomerGridDTO> selectBelongGridInfo(@Param("customerId") String customerId, @Param("level") String level);
/**
* desc: 根据客户Id 和pids 获取该客户下及该组织下的网格列表
*
* @param customerId
* @param pids
* @return java.util.List<com.epmet.dto.screen.ScreenProjectGridDailyDTO>
* @author LiuJanJun
* @date 2021/6/10 10:45 上午
*/
List<ScreenProjectGridDailyDTO> selectGridInfoList(@Param("customerId") String customerId, @Param("pids") String pids);
} }

2
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/ScreenCustomerGridService.java

@ -107,4 +107,6 @@ public interface ScreenCustomerGridService extends BaseService<ScreenCustomerGri
Integer updateCenterPointByName(String customerId, String title, List<Double> center); Integer updateCenterPointByName(String customerId, String title, List<Double> center);
List<ScreenProjectGridDailyDTO> selectGridInfoByCustomerId(String customerId); List<ScreenProjectGridDailyDTO> selectGridInfoByCustomerId(String customerId);
List<ScreenProjectGridDailyDTO> selectGridInfoList(String customerId, String pids);
} }

5
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/ScreenCustomerGridServiceImpl.java

@ -205,4 +205,9 @@ public class ScreenCustomerGridServiceImpl extends BaseServiceImpl<ScreenCustome
public List<ScreenProjectGridDailyDTO> selectGridInfoByCustomerId(String customerId) { public List<ScreenProjectGridDailyDTO> selectGridInfoByCustomerId(String customerId) {
return baseDao.selectGridInfoByCustomerId(customerId); return baseDao.selectGridInfoByCustomerId(customerId);
} }
@Override
public List<ScreenProjectGridDailyDTO> selectGridInfoList(String customerId, String pids) {
return baseDao.selectGridInfoList(customerId,pids);
}
} }

2
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/EIDimServiceImpl.java

@ -137,7 +137,7 @@ public class EIDimServiceImpl implements EIDimService {
@Override @Override
public Map<String, Integer> updateCenterPointByName(GridCenterPointForm param) { public Map<String, Integer> updateCenterPointByName(GridCenterPointForm param) {
List<ScreenProjectGridDailyDTO> gridInfos = screenCustomerGridService.selectGridInfoByCustomerId(param.getCustomerId()); List<ScreenProjectGridDailyDTO> gridInfos = screenCustomerGridService.selectGridInfoList(param.getCustomerId(),param.getPids());
Map<String, Integer> result = new HashMap<>(); Map<String, Integer> result = new HashMap<>();
gridInfos.forEach(grid -> { gridInfos.forEach(grid -> {

13
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenCustomerGridDao.xml

@ -372,5 +372,18 @@
AND scg.DEL_FLAG = 0 AND scg.DEL_FLAG = 0
AND scg.CUSTOMER_ID = #{customerId} AND scg.CUSTOMER_ID = #{customerId}
</select> </select>
<select id="selectGridInfoList" resultType="com.epmet.dto.screen.ScreenProjectGridDailyDTO">
SELECT
cg.CUSTOMER_ID,
cg.GRID_ID,
cg.GRID_NAME,
cg.PARENT_AGENCY_ID AS pid,
cg.AREA_CODE,
cg.CENTER_MARK
FROM screen_customer_grid cg
WHERE cg.DEL_FLAG = 0
AND cg.CUSTOMER_ID = #{customerId}
AND cg.ALL_PARENT_IDS like concat(#{pids},'%')
</select>
</mapper> </mapper>

Loading…
Cancel
Save