Browse Source

党支部分布,用户分布,党员分布 调整显示智慧社区要显示的

master
zxc 5 years ago
parent
commit
1d81408cf4
  1. 6
      epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/DistributionController.java
  2. 4
      epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenCustomerAgencyDao.xml
  3. 14
      epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenCustomerGridDao.xml

6
epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/DistributionController.java

@ -28,7 +28,7 @@ public class DistributionController {
/** /**
* @param formDTO * @param formDTO
* @Description 1党支部分布 * @Description 1党支部分布 只显示 screen_customer_biz_org 表中存在的orgId的数据
* @author zxc * @author zxc
* @date 2020/8/18 10:59 上午 * @date 2020/8/18 10:59 上午
*/ */
@ -39,7 +39,7 @@ public class DistributionController {
} }
/** /**
* @Description 2用户分布 * @Description 2用户分布 只显示 screen_customer_biz_org 表中存在的orgId的数据
* @param userFormDTO * @param userFormDTO
* @author zxc * @author zxc
* @date 2020/8/18 11:10 上午 * @date 2020/8/18 11:10 上午
@ -51,7 +51,7 @@ public class DistributionController {
} }
/** /**
* @Description 3党员分布 * @Description 3党员分布 只显示 screen_customer_biz_org 表中存在的orgId的数据
* @param parymemberFormDTO * @param parymemberFormDTO
* @author zxc * @author zxc
* @date 2020/8/18 11:20 上午 * @date 2020/8/18 11:20 上午

4
epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenCustomerAgencyDao.xml

@ -80,7 +80,7 @@
sutd.org_type AS type sutd.org_type AS type
FROM FROM
screen_user_total_data sutd screen_user_total_data sutd
LEFT JOIN screen_customer_agency sca ON sca.agency_id = sutd.org_id LEFT JOIN screen_customer_agency sca ON sca.agency_id = sutd.org_id AND sca.is_display = 1
WHERE WHERE
sutd.del_flag = '0' sutd.del_flag = '0'
AND sca.del_flag = 0 AND sca.del_flag = 0
@ -98,7 +98,7 @@
sutd.org_type AS type sutd.org_type AS type
FROM FROM
screen_user_total_data sutd screen_user_total_data sutd
LEFT JOIN screen_customer_agency sca ON sca.agency_id = sutd.org_id LEFT JOIN screen_customer_agency sca ON sca.agency_id = sutd.org_id AND sca.is_display = 1
WHERE WHERE
sutd.del_flag = '0' sutd.del_flag = '0'
AND sca.del_flag = 0 AND sca.del_flag = 0

14
epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenCustomerGridDao.xml

@ -21,14 +21,16 @@
<!-- 查询党支部信息 --> <!-- 查询党支部信息 -->
<select id="selectBranch" resultType="com.epmet.evaluationindex.screen.dto.result.BranchResultDTO"> <select id="selectBranch" resultType="com.epmet.evaluationindex.screen.dto.result.BranchResultDTO">
SELECT SELECT
grid_id AS gridId, scg.grid_id AS gridId,
grid_name AS gridName, scg.grid_name AS gridName,
party_mark AS partyMark scg.party_mark AS partyMark
FROM FROM
screen_customer_grid screen_customer_grid scg
LEFT JOIN screen_customer_biz_org bo ON bo.ORG_ID = scg.PARENT_AGENCY_ID
WHERE WHERE
del_flag = 0 scg.del_flag = 0
AND all_parent_ids LIKE concat('%', #{agencyId}, '%') AND bo.BIZ_TYPE = 'community'
AND scg.all_parent_ids LIKE concat('%', #{agencyId}, '%')
</select> </select>
<!-- 查询子级用户分布【网格级别】 --> <!-- 查询子级用户分布【网格级别】 -->

Loading…
Cancel
Save