Browse Source

党员基本信息

dev_shibei_match
wangchao 5 years ago
parent
commit
e9dff01a4e
  1. 34
      epmet-module/data-report/data-report-client/src/main/java/com/epmet/screen/dto/result/PartymemberPercentResultDTO.java
  2. 11
      epmet-module/data-report/data-report-server/src/main/java/com/epmet/dao/screen/ScreenUserTotalDataDao.java
  3. 14
      epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/screen/GrassrootsPartyDevService.java
  4. 29
      epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/screen/impl/GrassrootsPartyDevServiceImpl.java
  5. 13
      epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenUserTotalDataDao.xml

34
epmet-module/data-report/data-report-client/src/main/java/com/epmet/screen/dto/result/PartymemberPercentResultDTO.java

@ -0,0 +1,34 @@
package com.epmet.screen.dto.result;
import com.epmet.commons.tools.constant.NumConstant;
import lombok.Data;
import java.io.Serializable;
/**
* @Description 1党员基本情况-饼状图概况
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321324
* @ClassName PartymemberPercentResultDTO
* @Auth wangc
* @Date 2020-08-18 14:54
*/
@Data
public class PartymemberPercentResultDTO implements Serializable {
private static final long serialVersionUID = -2864099044581782674L;
/**
* 注册党员总数
* */
private Integer partyMemberTotal = NumConstant.ZERO;
/**
* 注册党员占比
* */
private String percentInPlatForm;
/**
* 注册用户总数
* */
private Integer platFormTotal = NumConstant.ZERO;
}

11
epmet-module/data-report/data-report-server/src/main/java/com/epmet/dao/screen/ScreenUserTotalDataDao.java

@ -17,7 +17,9 @@
package com.epmet.dao.screen;
import com.epmet.screen.dto.result.PartymemberPercentResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 中央区-各类用户总数
@ -28,4 +30,13 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ScreenUserTotalDataDao {
/**
* @Description 党员基本情况-饼状图概况
* @param agencyId
* @return
* @author wangc
* @date 2020.08.18 15:17
**/
PartymemberPercentResultDTO selectAgencyPartymemberPercent(@Param("agencyId")String agencyId);
}

14
epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/screen/GrassrootsPartyDevService.java

@ -1,5 +1,8 @@
package com.epmet.service.screen;
import com.epmet.screen.dto.form.ParymemberFormDTO;
import com.epmet.screen.dto.result.PartymemberPercentResultDTO;
/**
* 基层党建相关各指标查询
*
@ -7,4 +10,15 @@ package com.epmet.service.screen;
* @date 2020/8/18 10:21
*/
public interface GrassrootsPartyDevService {
/**
* @Description 1党员基本情况-饼状图概况
* @NEI https://nei.netease.com/interface/detail/res/?pid=57068&id=321324
* @param param
* @return
* @author wangc
* @date 2020.08.18 14:58
**/
PartymemberPercentResultDTO partymemberBaseInfo(ParymemberFormDTO param);
}

29
epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/screen/impl/GrassrootsPartyDevServiceImpl.java

@ -1,6 +1,13 @@
package com.epmet.service.screen.impl;
import com.epmet.dao.screen.ScreenUserTotalDataDao;
import com.epmet.screen.dto.form.ParymemberFormDTO;
import com.epmet.screen.dto.result.PartymemberPercentResultDTO;
import com.epmet.service.screen.GrassrootsPartyDevService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 基层党建相关各指标查询
@ -8,5 +15,27 @@ import com.epmet.service.screen.GrassrootsPartyDevService;
* @author yinzuomei@elink-cn.com
* @date 2020/8/18 10:21
*/
@Service
public class GrassrootsPartyDevServiceImpl implements GrassrootsPartyDevService {
private static final Logger logger = LoggerFactory.getLogger(GrassrootsPartyDevServiceImpl.class);
@Autowired
private ScreenUserTotalDataDao screenUserTotalDataDao;
/**
* @Description 1党员基本情况-饼状图概况
* @NEI https://nei.netease.com/interface/detail/res/?pid=57068&id=321324
* @param param
* @return
* @author wangc
* @date 2020.08.18 14:58
**/
@Override
public PartymemberPercentResultDTO partymemberBaseInfo(ParymemberFormDTO param) {
PartymemberPercentResultDTO result = screenUserTotalDataDao.selectAgencyPartymemberPercent(param.getAgencyId());
return null;
}
}

13
epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenUserTotalDataDao.xml

@ -3,6 +3,17 @@
<mapper namespace="com.epmet.dao.screen.ScreenUserTotalDataDao">
<!-- 党员基本情况-饼状图概况 -->
<select id="selectAgencyPartymemberPercent" resultType="com.epmet.screen.dto.result.PartymemberPercentResultDTO">
SELECT
SUM( PARTY_TOTAL ) AS partyMemberTotal,
SUM( USER_TOTAL ) AS platFormTotal
FROM
screen_user_total_data
WHERE
DEL_FLAG = '0'
AND ORG_TYPE = 'agency'
AND ORG_ID = #{agencyId}
</select>
</mapper>
Loading…
Cancel
Save