29 changed files with 1538 additions and 0 deletions
			
			
		| @ -0,0 +1,31 @@ | |||
| package com.epmet.evaluationindex.screen.dto.form; | |||
| 
 | |||
| import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; | |||
| import lombok.Data; | |||
| 
 | |||
| import javax.validation.constraints.NotBlank; | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/10/9 9:47 | |||
|  */ | |||
| @Data | |||
| public class AnScreenFormDTO implements Serializable { | |||
| 	private static final long serialVersionUID = 5402826635847080766L; | |||
| 
 | |||
| 	public interface AnScreenGroup extends CustomerClientShowGroup {} | |||
| 
 | |||
| 	/** | |||
| 	 * 组织ID | |||
| 	 */ | |||
| 	@NotBlank(message = "机关Id不能为空", groups = AnScreenGroup.class) | |||
| 
 | |||
| 	private String agencyId; | |||
| 	/** | |||
| 	 * 月份ID | |||
| 	 */ | |||
| 	@NotBlank(message = "月份Id不能为空", groups = AnScreenGroup.class) | |||
| 	private String monthId; | |||
| } | |||
| @ -0,0 +1,28 @@ | |||
| package com.epmet.evaluationindex.screen.dto.form; | |||
| 
 | |||
| import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; | |||
| import lombok.Data; | |||
| 
 | |||
| import javax.validation.constraints.NotBlank; | |||
| import javax.validation.constraints.NotNull; | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/10/9 9:47 | |||
|  */ | |||
| @Data | |||
| public class AnScreenRankFormDTO implements Serializable { | |||
| 	private static final long serialVersionUID = -766779327034367216L; | |||
| 
 | |||
| 	public interface AnScreenRankGroup extends CustomerClientShowGroup {} | |||
| 
 | |||
| 	/** | |||
| 	 * 组织ID | |||
| 	 */ | |||
| 	@NotBlank(message = "机关Id不能为空", groups = AnScreenRankFormDTO.AnScreenRankGroup.class) | |||
| 	private String agencyId; | |||
| 	@NotNull(message = "top值不能为空", groups = AnScreenRankFormDTO.AnScreenRankGroup.class) | |||
| 	private Integer topNum; | |||
| } | |||
| @ -0,0 +1,25 @@ | |||
| package com.epmet.evaluationindex.screen.dto.form; | |||
| 
 | |||
| import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; | |||
| import lombok.Data; | |||
| 
 | |||
| import javax.validation.constraints.NotBlank; | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/10/9 9:48 | |||
|  */ | |||
| @Data | |||
| public class AnScreenTrendFormDTO implements Serializable { | |||
| 	private static final long serialVersionUID = -766779327034367216L; | |||
| 
 | |||
| 	public interface AnScreenTrendGroup extends CustomerClientShowGroup {} | |||
| 
 | |||
| 	/** | |||
| 	 * 组织ID | |||
| 	 */ | |||
| 	@NotBlank(message = "机关Id不能为空", groups = AnScreenTrendFormDTO.AnScreenTrendGroup.class) | |||
| 	private String agencyId; | |||
| } | |||
| @ -0,0 +1,42 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription 09、基层治理-治理排行 | |||
|  * @date 2020/10/9 10:54 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class GrassRootsGovernRankResultDTO implements Serializable { | |||
| 
 | |||
| 	private static final long serialVersionUID = 5175488557393182160L; | |||
| 	/** | |||
| 	 * 参与项目数 | |||
| 	 */ | |||
| 	private Integer partiProjectTotal; | |||
| 	/** | |||
| 	 * 办结项目数 | |||
| 	 */ | |||
| 	private Integer closedProjectTotal; | |||
| 	/** | |||
| 	 * 响应度 | |||
| 	 */ | |||
| 	private Integer projectResponseRatio; | |||
| 	/** | |||
| 	 * 满意度 | |||
| 	 */ | |||
| 	private Integer projectSatisRatio; | |||
| 	/** | |||
| 	 * 办结率 当前界面在社区时才显示 | |||
| 	 */ | |||
| 	private Integer closedProjectRatio; | |||
| 	/** | |||
| 	 * 组织名称 | |||
| 	 */ | |||
| 	private String orgName; | |||
| } | |||
| @ -0,0 +1,38 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription 07、基层治理-总数 | |||
|  * @date 2020/10/9 10:36 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class GrassRootsGovernResultDTO implements Serializable { | |||
| 
 | |||
| 	private static final long serialVersionUID = 3455494963816549169L; | |||
| 	/** | |||
| 	 * 参与项目数 | |||
| 	 */ | |||
| 	private Integer partiProjectTotal; | |||
| 	/** | |||
| 	 * 办结项目数 | |||
| 	 */ | |||
| 	private Integer closedProjectTotal; | |||
| 	/** | |||
| 	 * 项目响应度 | |||
| 	 */ | |||
| 	private Integer projectResponseRatio; | |||
| 	/** | |||
| 	 * 项目满意率 | |||
| 	 */ | |||
| 	private Integer projectSatisRatio; | |||
| 	/** | |||
| 	 * 办结率(当前界面是社区时显示) | |||
| 	 */ | |||
| 	private Integer closedProjectRatio; | |||
| } | |||
| @ -0,0 +1,41 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/10/9 15:08 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class GrassRootsGovernTrendDTO implements Serializable { | |||
| 	private static final long serialVersionUID = 4977117178308139861L; | |||
| 	/** | |||
| 	 * 月份 | |||
| 	 */ | |||
| 	private String monthId; | |||
| 	/** | |||
| 	 * 参与项目数 | |||
| 	 */ | |||
| 	private Integer partiProjectTotal; | |||
| 	/** | |||
| 	 * 办结项目数 | |||
| 	 */ | |||
| 	private Integer closedProjectTotal; | |||
| 	/** | |||
| 	 * 项目响应度 | |||
| 	 */ | |||
| 	private Integer projectResponseRatio; | |||
| 	/** | |||
| 	 * 项目满意率 | |||
| 	 */ | |||
| 	private Integer projectSatisRatio; | |||
| 	/** | |||
| 	 * 办结率(当前界面是社区时显示) | |||
| 	 */ | |||
| 	private Integer closedProjectRatio; | |||
| } | |||
| @ -0,0 +1,43 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription 08、基层治理-指标月度趋势 | |||
|  * @date 2020/10/9 10:48 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class GrassRootsGovernTrendResultDTO implements Serializable { | |||
| 
 | |||
| 	private static final long serialVersionUID = 5640652259031475809L; | |||
| 	/** | |||
| 	 * 横坐标集合 | |||
| 	 */ | |||
| 	private List<String> xAxis; | |||
| 	/** | |||
| 	 * 参与项目数 | |||
| 	 */ | |||
| 	private List<Integer> partiProjectTotalList; | |||
| 	/** | |||
| 	 * 办结项目数 | |||
| 	 */ | |||
| 	private List<Integer> closedProjectTotalList; | |||
| 	/** | |||
| 	 * 项目响应度 | |||
| 	 */ | |||
| 	private List<Integer> projectResponseRatioList; | |||
| 	/** | |||
| 	 * 项目满意率 | |||
| 	 */ | |||
| 	private List<Integer> projectSatisRatioList; | |||
| 	/** | |||
| 	 * 办结率(当前界面是社区时显示) | |||
| 	 */ | |||
| 	private List<Integer> closedProjectRatioList; | |||
| } | |||
| @ -0,0 +1,34 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription 06、基层组织-组织排行榜单 | |||
|  * @date 2020/10/9 10:32 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class GrassRootsOrgRankResultDTO implements Serializable { | |||
| 
 | |||
| 	private static final long serialVersionUID = 3573854743057339033L; | |||
| 	/** | |||
| 	 * 党群数 | |||
| 	 */ | |||
| 	private Integer groupTotal; | |||
| 	/** | |||
| 	 * 议题数 | |||
| 	 */ | |||
| 	private Integer issueTotal; | |||
| 	/** | |||
| 	 * 项目数 | |||
| 	 */ | |||
| 	private Integer projectTotal; | |||
| 	/** | |||
| 	 * 组织名称 | |||
| 	 */ | |||
| 	private String orgName; | |||
| } | |||
| @ -0,0 +1,30 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription 04、基层组织-党群数、议题数、项目数 | |||
|  * @date 2020/10/9 10:22 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class GrassRootsOrgResultDTO implements Serializable { | |||
| 
 | |||
| 	private static final long serialVersionUID = 6623022965863266247L; | |||
| 	/** | |||
| 	 * 党群数 | |||
| 	 */ | |||
| 	private Integer groupTotal; | |||
| 	/** | |||
| 	 * 议题数 | |||
| 	 */ | |||
| 	private Integer issueTotal; | |||
| 	/** | |||
| 	 * 项目数 | |||
| 	 */ | |||
| 	private Integer projectTotal; | |||
| } | |||
| @ -0,0 +1,33 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/10/9 15:10 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class GrassRootsOrgTrendDTO implements Serializable { | |||
| 	private static final long serialVersionUID = 6172847581584903056L; | |||
| 	/** | |||
| 	 * 月份 | |||
| 	 */ | |||
| 	private String monthId; | |||
| 	/** | |||
| 	 * 党群数 | |||
| 	 */ | |||
| 	private Integer groupTotal; | |||
| 	/** | |||
| 	 * 议题数 | |||
| 	 */ | |||
| 	private Integer issueTotal; | |||
| 	/** | |||
| 	 * 项目数 | |||
| 	 */ | |||
| 	private Integer projectTotal; | |||
| } | |||
| @ -0,0 +1,34 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription 05、基层组织-指标月度趋势 | |||
|  * @date 2020/10/9 10:25 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class GrassRootsOrgTrendResultDTO implements Serializable { | |||
| 	private static final long serialVersionUID = -6911028881641915610L; | |||
| 	/** | |||
| 	 * 横坐标集合 | |||
| 	 */ | |||
| 	private List<String> xAxis; | |||
| 	/** | |||
| 	 * 党群数 | |||
| 	 */ | |||
| 	private List<Integer> groupTotalList; | |||
| 	/** | |||
| 	 * 议题数 | |||
| 	 */ | |||
| 	private List<Integer> issueTotalList; | |||
| 	/** | |||
| 	 * 项目数 | |||
| 	 */ | |||
| 	private List<Integer> projectTotal; | |||
| } | |||
| @ -0,0 +1,50 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription 03、基层党员-党员排行榜单 | |||
|  * @date 2020/10/9 10:12 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class PmRankResultDTO implements Serializable { | |||
| 
 | |||
| 	private static final long serialVersionUID = 2939125411579816231L; | |||
| 	/** | |||
| 	 * 用户ID | |||
| 	 */ | |||
| 	private String userId; | |||
| 	/** | |||
| 	 * 姓名 | |||
| 	 */ | |||
| 	private String userName; | |||
| 	/** | |||
| 	 * 所属支部名称 | |||
| 	 */ | |||
| 	private String branchName; | |||
| 	/** | |||
| 	 * 所属社区名称 | |||
| 	 */ | |||
| 	private String communityName; | |||
| 	/** | |||
| 	 * 群成员数 | |||
| 	 */ | |||
| 	private Integer groupMemberTotal; | |||
| 	/** | |||
| 	 * 话题数 | |||
| 	 */ | |||
| 	private Integer topicTotal; | |||
| 	/** | |||
| 	 * 参与人次 | |||
| 	 */ | |||
| 	private Integer partiUserTotal; | |||
| 	/** | |||
| 	 * 议题数 | |||
| 	 */ | |||
| 	private Integer issueTotal; | |||
| } | |||
| @ -0,0 +1,34 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription 01、基层党员-各类总数 | |||
|  * @date 2020/10/9 10:04 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class PmTotalResultDTO implements Serializable { | |||
| 
 | |||
| 	private static final long serialVersionUID = 4317234373580733128L; | |||
| 	/** | |||
| 	 * 群成员数 | |||
| 	 */ | |||
| 	private Integer groupMemberTotal; | |||
| 	/** | |||
| 	 * 话题数 | |||
| 	 */ | |||
| 	private Integer topicTotal; | |||
| 	/** | |||
| 	 * 话题参与人次 | |||
| 	 */ | |||
| 	private Integer topicPartiUserTotal; | |||
| 	/** | |||
| 	 * 议题数 | |||
| 	 */ | |||
| 	private Integer issueTotal; | |||
| } | |||
| @ -0,0 +1,35 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/10/9 15:05 | |||
|  */ | |||
| @Data | |||
| public class PmTotalTrendDTO implements Serializable { | |||
| 	private static final long serialVersionUID = -6773118646805355171L; | |||
| 	/** | |||
| 	 * 月份 | |||
| 	 */ | |||
| 	private String monthId; | |||
| 	/** | |||
| 	 * 群成员数 | |||
| 	 */ | |||
| 	private Integer groupMemberTotal; | |||
| 	/** | |||
| 	 * 话题数 | |||
| 	 */ | |||
| 	private Integer topicTotal; | |||
| 	/** | |||
| 	 * 话题参与人次 | |||
| 	 */ | |||
| 	private Integer topicPartiUserTotal; | |||
| 	/** | |||
| 	 * 议题数 | |||
| 	 */ | |||
| 	private Integer issueTotal; | |||
| } | |||
| @ -0,0 +1,39 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription 02、基层党员-指标月度趋势 | |||
|  * @date 2020/10/9 10:06 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class PmTotalTrendResultDTO implements Serializable { | |||
| 
 | |||
| 	private static final long serialVersionUID = -5705077703115309896L; | |||
| 	/** | |||
| 	 * 横坐标集合 | |||
| 	 */ | |||
| 	private List<String> xAxis; | |||
| 	/** | |||
| 	 * 群成员数 | |||
| 	 */ | |||
| 	private List<Integer> groupMemberTotalList; | |||
| 	/** | |||
| 	 * 话题数 | |||
| 	 */ | |||
| 	private List<Integer> topicTotalList; | |||
| 	/** | |||
| 	 * 话题参与人次 | |||
| 	 */ | |||
| 	private List<Integer> topicPartiUserTotalList; | |||
| 	/** | |||
| 	 * 议题数 | |||
| 	 */ | |||
| 	private List<Integer> issueTotalList; | |||
| } | |||
| @ -0,0 +1,30 @@ | |||
| package com.epmet.evaluationindex.screen.dto.result; | |||
| 
 | |||
| import lombok.Data; | |||
| import lombok.NoArgsConstructor; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription 10、项目 | |||
|  * @date 2020/10/9 10:57 | |||
|  */ | |||
| @NoArgsConstructor | |||
| @Data | |||
| public class ProjectProfileResultDTO implements Serializable { | |||
| 
 | |||
| 	private static final long serialVersionUID = -6525050844558886157L; | |||
| 	/** | |||
| 	 * 组织id | |||
| 	 */ | |||
| 	private String orgId; | |||
| 	/** | |||
| 	 * 项目数量 | |||
| 	 */ | |||
| 	private Integer projectTotal; | |||
| 	/** | |||
| 	 * 级别 | |||
| 	 */ | |||
| 	private String level; | |||
| } | |||
| @ -0,0 +1,175 @@ | |||
| package com.epmet.datareport.controller.screen; | |||
| 
 | |||
| import com.epmet.commons.tools.utils.Result; | |||
| import com.epmet.commons.tools.validator.ValidatorUtils; | |||
| import com.epmet.datareport.service.evaluationindex.screen.AnScreenService; | |||
| import com.epmet.evaluationindex.screen.dto.form.AnScreenFormDTO; | |||
| import com.epmet.evaluationindex.screen.dto.form.AnScreenRankFormDTO; | |||
| import com.epmet.evaluationindex.screen.dto.form.AnScreenTrendFormDTO; | |||
| import com.epmet.evaluationindex.screen.dto.result.*; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.web.bind.annotation.*; | |||
| 
 | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * 安宁大屏 | |||
|  * | |||
|  * @author zhaoqifeng | |||
|  * @date 2020/10/9 9:32 | |||
|  */ | |||
| @RestController | |||
| @RequestMapping("anscreen") | |||
| public class AnScreenController { | |||
| 
 | |||
| 	@Autowired | |||
| 	private AnScreenService anScreenService; | |||
| 
 | |||
| 	/** | |||
| 	 * 基层党员-各类总数 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.PmTotalResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 13:55 | |||
| 	 */ | |||
| 	@PostMapping("pmtotal") | |||
| 	public Result<PmTotalResultDTO> pmTotal(@RequestBody AnScreenFormDTO formDTO) { | |||
| 		ValidatorUtils.validateEntity(formDTO, AnScreenFormDTO.AnScreenGroup.class); | |||
| 		PmTotalResultDTO result = anScreenService.pmTotal(formDTO); | |||
| 		return new Result<PmTotalResultDTO>().ok(result); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层党员-指标月度趋势 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.PmTotalTrendResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 13:57 | |||
| 	 */ | |||
| 	@PostMapping("pmtotaltrend") | |||
| 	public Result<PmTotalTrendResultDTO> pmTotalTrend(@RequestBody AnScreenTrendFormDTO formDTO) { | |||
| 		ValidatorUtils.validateEntity(formDTO, AnScreenTrendFormDTO.AnScreenTrendGroup.class); | |||
| 		PmTotalTrendResultDTO result = anScreenService.pmTotalTrend(formDTO); | |||
| 		return new Result<PmTotalTrendResultDTO>().ok(result); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层党员-党员排行榜单 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.PmRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 13:59 | |||
| 	 */ | |||
| 	@PostMapping("pmrank") | |||
| 	public Result<List<PmRankResultDTO>> pmRank(@RequestBody AnScreenRankFormDTO formDTO) { | |||
| 		ValidatorUtils.validateEntity(formDTO, AnScreenRankFormDTO.AnScreenRankGroup.class); | |||
| 		List<PmRankResultDTO> result = anScreenService.pmRank(formDTO); | |||
| 		return new Result<List<PmRankResultDTO>>().ok(result); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-党群数、议题数、项目数 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:01 | |||
| 	 */ | |||
| 	@PostMapping("grassrootsorg") | |||
| 	public Result<GrassRootsOrgResultDTO> grassRootsOrg(@RequestBody AnScreenFormDTO formDTO) { | |||
| 		ValidatorUtils.validateEntity(formDTO, AnScreenFormDTO.AnScreenGroup.class); | |||
| 		GrassRootsOrgResultDTO result = anScreenService.grassRootsOrg(formDTO); | |||
| 		return new Result<GrassRootsOrgResultDTO>().ok(result); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-指标月度趋势 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgTrendResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:03 | |||
| 	 */ | |||
| 	@PostMapping("grassrootsorgtrend") | |||
| 	public Result<GrassRootsOrgTrendResultDTO> grassRootsOrgTrend(@RequestBody AnScreenTrendFormDTO formDTO) { | |||
| 		GrassRootsOrgTrendResultDTO result = anScreenService.grassRootsOrgTrend(formDTO); | |||
| 		return new Result<GrassRootsOrgTrendResultDTO>().ok(result); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-组织排行榜单 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:06 | |||
| 	 */ | |||
| 	@PostMapping("grassrootsorgrank") | |||
| 	public Result<List<GrassRootsOrgRankResultDTO>> grassRootsOrgRank(@RequestBody AnScreenFormDTO formDTO) { | |||
| 		ValidatorUtils.validateEntity(formDTO, AnScreenFormDTO.AnScreenGroup.class); | |||
| 		List<GrassRootsOrgRankResultDTO> result = anScreenService.grassRootsOrgRank(formDTO); | |||
| 		return new Result<List<GrassRootsOrgRankResultDTO>>().ok(result); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层治理-总数 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:10 | |||
| 	 */ | |||
| 	@PostMapping("grassrootsgovern") | |||
| 	public Result<GrassRootsGovernResultDTO> grassRootsGovern(@RequestBody AnScreenFormDTO formDTO) { | |||
| 		ValidatorUtils.validateEntity(formDTO, AnScreenFormDTO.AnScreenGroup.class); | |||
| 		GrassRootsGovernResultDTO result = anScreenService.grassRootsGovern(formDTO); | |||
| 		return new Result<GrassRootsGovernResultDTO>().ok(result); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层治理-指标月度趋势 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernTrendResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:11 | |||
| 	 */ | |||
| 	@PostMapping("grassrootsgoverntrend") | |||
| 	public Result<GrassRootsGovernTrendResultDTO> grassRootsGovernTrend(@RequestBody AnScreenTrendFormDTO formDTO) { | |||
| 		ValidatorUtils.validateEntity(formDTO, AnScreenTrendFormDTO.AnScreenTrendGroup.class); | |||
| 		GrassRootsGovernTrendResultDTO result = anScreenService.grassRootsGovernTrend(formDTO); | |||
| 		return new Result<GrassRootsGovernTrendResultDTO>().ok(result); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层治理-治理排行 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:13 | |||
| 	 */ | |||
| 	@PostMapping("grassrootsgovernrank") | |||
| 	public Result<List<GrassRootsGovernRankResultDTO>> grassRootsGovernRank(@RequestBody AnScreenFormDTO formDTO) { | |||
| 		ValidatorUtils.validateEntity(formDTO, AnScreenFormDTO.AnScreenGroup.class); | |||
| 		List<GrassRootsGovernRankResultDTO> result = anScreenService.grassRootsGovernRank(formDTO); | |||
| 		return new Result<List<GrassRootsGovernRankResultDTO>>().ok(result); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 项目 | |||
| 	 * | |||
| 	 * @param customerId | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.ProjectProfileResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:16 | |||
| 	 */ | |||
| 	@PostMapping("projectprofile") | |||
| 	public Result<List<ProjectProfileResultDTO>> projectProfile(@RequestHeader("CustomerId") String customerId) { | |||
| 		List<ProjectProfileResultDTO> result = anScreenService.projectProfile(customerId); | |||
| 		return new Result<List<ProjectProfileResultDTO>>().ok(result); | |||
| 	} | |||
| } | |||
| @ -0,0 +1,43 @@ | |||
| /** | |||
|  * Copyright 2018 人人开源 https://www.renren.io
 | |||
|  * <p> | |||
|  * This program is free software: you can redistribute it and/or modify | |||
|  * it under the terms of the GNU General Public License as published by | |||
|  * the Free Software Foundation, either version 3 of the License, or | |||
|  * (at your option) any later version. | |||
|  * <p> | |||
|  * This program is distributed in the hope that it will be useful, | |||
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | |||
|  * GNU General Public License for more details. | |||
|  * <p> | |||
|  * You should have received a copy of the GNU General Public License | |||
|  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | |||
|  */ | |||
| 
 | |||
| package com.epmet.datareport.dao.evaluationindex.screenan; | |||
| 
 | |||
| import com.epmet.evaluationindex.screen.dto.result.ProjectProfileResultDTO; | |||
| import org.apache.ibatis.annotations.Mapper; | |||
| import org.apache.ibatis.annotations.Param; | |||
| 
 | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * 安宁-社区-项目概况(数量、颜色) | |||
|  * | |||
|  * @author generator generator@elink-cn.com | |||
|  * @since v1.0.0 2020-10-09 | |||
|  */ | |||
| @Mapper | |||
| public interface ScreenAnCommunityProjectProfileDao { | |||
| 	/** | |||
| 	 * 项目 | |||
| 	 * | |||
| 	 * @param customerId | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.ProjectProfileResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 17:17 | |||
| 	 */ | |||
| 	List<ProjectProfileResultDTO> selectProjectProfile(@Param("customerId") String customerId); | |||
| } | |||
| @ -0,0 +1,69 @@ | |||
| /** | |||
|  * Copyright 2018 人人开源 https://www.renren.io
 | |||
|  * <p> | |||
|  * This program is free software: you can redistribute it and/or modify | |||
|  * it under the terms of the GNU General Public License as published by | |||
|  * the Free Software Foundation, either version 3 of the License, or | |||
|  * (at your option) any later version. | |||
|  * <p> | |||
|  * This program is distributed in the hope that it will be useful, | |||
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | |||
|  * GNU General Public License for more details. | |||
|  * <p> | |||
|  * You should have received a copy of the GNU General Public License | |||
|  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | |||
|  */ | |||
| 
 | |||
| package com.epmet.datareport.dao.evaluationindex.screenan; | |||
| 
 | |||
| import com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernRankResultDTO; | |||
| import com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernResultDTO; | |||
| import com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernTrendDTO; | |||
| import org.apache.ibatis.annotations.Mapper; | |||
| import org.apache.ibatis.annotations.Param; | |||
| 
 | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * 安宁-基层治理-各类数 | |||
|  * | |||
|  * @author generator generator@elink-cn.com | |||
|  * @since v1.0.0 2020-10-09 | |||
|  */ | |||
| @Mapper | |||
| public interface ScreenAnGrassRootsGovernMonthlyDao { | |||
| 	/** | |||
| 	 * 基层治理-总数 | |||
| 	 * | |||
| 	 * @param agencyId | |||
| 	 * @param monthId | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 16:48 | |||
| 	 */ | |||
| 	GrassRootsGovernResultDTO selectGrassRootsGovern(@Param("agencyId") String agencyId, @Param("monthId") String monthId); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层治理-指标月度趋势 | |||
| 	 * | |||
| 	 * @param agencyId | |||
| 	 * @param yearId | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernTrendDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 16:49 | |||
| 	 */ | |||
| 	List<GrassRootsGovernTrendDTO> selectGrassRootsGovernTrend(@Param("agencyId") String agencyId, @Param("yearId") String yearId); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层治理-治理排行 | |||
| 	 * | |||
| 	 * @param agencyId | |||
| 	 * @param monthId | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 16:49 | |||
| 	 */ | |||
| 	List<GrassRootsGovernRankResultDTO> selectGrassRootsGovernRank(@Param("agencyId") String agencyId, @Param("monthId") String monthId); | |||
| 
 | |||
| } | |||
| @ -0,0 +1,70 @@ | |||
| /** | |||
|  * Copyright 2018 人人开源 https://www.renren.io
 | |||
|  * <p> | |||
|  * This program is free software: you can redistribute it and/or modify | |||
|  * it under the terms of the GNU General Public License as published by | |||
|  * the Free Software Foundation, either version 3 of the License, or | |||
|  * (at your option) any later version. | |||
|  * <p> | |||
|  * This program is distributed in the hope that it will be useful, | |||
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | |||
|  * GNU General Public License for more details. | |||
|  * <p> | |||
|  * You should have received a copy of the GNU General Public License | |||
|  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | |||
|  */ | |||
| 
 | |||
| package com.epmet.datareport.dao.evaluationindex.screenan; | |||
| 
 | |||
| import com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgRankResultDTO; | |||
| import com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgResultDTO; | |||
| import com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgTrendDTO; | |||
| import org.apache.ibatis.annotations.Mapper; | |||
| import org.apache.ibatis.annotations.Param; | |||
| 
 | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * 安宁-基层组织(党群数|议题数|项目数)-按月 | |||
|  * | |||
|  * @author generator generator@elink-cn.com | |||
|  * @since v1.0.0 2020-10-09 | |||
|  */ | |||
| @Mapper | |||
| public interface ScreenAnGrassRootsOrgMonthlyDao { | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-党群数、议题数、项目数 | |||
| 	 * | |||
| 	 * @param agencyId | |||
| 	 * @param monthId | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 16:25 | |||
| 	 */ | |||
| 	GrassRootsOrgResultDTO selectGrassRootsOrg(@Param("agencyId") String agencyId, @Param("monthId") String monthId); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-指标月度趋势 | |||
| 	 * | |||
| 	 * @param agencyId | |||
| 	 * @param yearId | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgTrendDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 16:32 | |||
| 	 */ | |||
| 	List<GrassRootsOrgTrendDTO> selectGrassRootsOrgTrend(@Param("agencyId") String agencyId, @Param("yearId") String yearId); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-组织排行榜单 | |||
| 	 * | |||
| 	 * @param agencyId | |||
| 	 * @param monthId | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 16:36 | |||
| 	 */ | |||
| 	List<GrassRootsOrgRankResultDTO> selectGrassRootsOrgRank(@Param("agencyId") String agencyId, @Param("monthId") String monthId); | |||
| 
 | |||
| } | |||
| @ -0,0 +1,45 @@ | |||
| /** | |||
|  * Copyright 2018 人人开源 https://www.renren.io
 | |||
|  * <p> | |||
|  * This program is free software: you can redistribute it and/or modify | |||
|  * it under the terms of the GNU General Public License as published by | |||
|  * the Free Software Foundation, either version 3 of the License, or | |||
|  * (at your option) any later version. | |||
|  * <p> | |||
|  * This program is distributed in the hope that it will be useful, | |||
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | |||
|  * GNU General Public License for more details. | |||
|  * <p> | |||
|  * You should have received a copy of the GNU General Public License | |||
|  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | |||
|  */ | |||
| 
 | |||
| package com.epmet.datareport.dao.evaluationindex.screenan; | |||
| 
 | |||
| import com.epmet.evaluationindex.screen.dto.result.PmRankResultDTO; | |||
| import org.apache.ibatis.annotations.Mapper; | |||
| import org.apache.ibatis.annotations.Param; | |||
| 
 | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * 安宁-基层党员-排行榜单 | |||
|  * | |||
|  * @author generator generator@elink-cn.com | |||
|  * @since v1.0.0 2020-10-09 | |||
|  */ | |||
| @Mapper | |||
| public interface ScreenAnGrassRootsPmRankDao { | |||
| 	/** | |||
| 	 * 基层党员-党员排行榜单 | |||
| 	 * | |||
| 	 * @param agencyId | |||
| 	 * @param topNum | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.PmRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 15:43 | |||
| 	 */ | |||
| 	List<PmRankResultDTO> selectPmRank(@Param("agencyId") String agencyId, @Param("topNum") Integer topNum); | |||
| 
 | |||
| } | |||
| @ -0,0 +1,59 @@ | |||
| /** | |||
|  * Copyright 2018 人人开源 https://www.renren.io
 | |||
|  * <p> | |||
|  * This program is free software: you can redistribute it and/or modify | |||
|  * it under the terms of the GNU General Public License as published by | |||
|  * the Free Software Foundation, either version 3 of the License, or | |||
|  * (at your option) any later version. | |||
|  * <p> | |||
|  * This program is distributed in the hope that it will be useful, | |||
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | |||
|  * GNU General Public License for more details. | |||
|  * <p> | |||
|  * You should have received a copy of the GNU General Public License | |||
|  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | |||
|  */ | |||
| 
 | |||
| package com.epmet.datareport.dao.evaluationindex.screenan; | |||
| 
 | |||
| import com.epmet.evaluationindex.screen.dto.form.AnScreenFormDTO; | |||
| import com.epmet.evaluationindex.screen.dto.result.PmTotalResultDTO; | |||
| import com.epmet.evaluationindex.screen.dto.result.PmTotalTrendDTO; | |||
| import org.apache.ibatis.annotations.Mapper; | |||
| import org.apache.ibatis.annotations.Param; | |||
| 
 | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * 安宁-基层党员-各类总数 | |||
|  * | |||
|  * @author generator generator@elink-cn.com | |||
|  * @since v1.0.0 2020-10-09 | |||
|  */ | |||
| @Mapper | |||
| public interface ScreenAnGrassRootsPmTotalMonthlyDao { | |||
| 	/** | |||
| 	 * 基层党员-各类总数 | |||
| 	 * | |||
| 	 * @param agencyId | |||
| 	 * @param monthId | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.PmTotalResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 15:14 | |||
| 	 */ | |||
| 	PmTotalResultDTO selectPmTotal(@Param("agencyId") String agencyId, @Param("monthId") String monthId); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层党员-指标月度趋势 | |||
| 	 * | |||
| 	 * @param agencyId | |||
| 	 * @param yearId | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.PmTotalTrendDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 15:12 | |||
| 	 */ | |||
| 	List<PmTotalTrendDTO> selectPmTotalTrend(@Param("agencyId") String agencyId, @Param("yearId") String yearId); | |||
| 
 | |||
| 
 | |||
| } | |||
| @ -0,0 +1,115 @@ | |||
| package com.epmet.datareport.service.evaluationindex.screen; | |||
| 
 | |||
| import com.epmet.evaluationindex.screen.dto.form.AnScreenFormDTO; | |||
| import com.epmet.evaluationindex.screen.dto.form.AnScreenRankFormDTO; | |||
| import com.epmet.evaluationindex.screen.dto.form.AnScreenTrendFormDTO; | |||
| import com.epmet.evaluationindex.screen.dto.result.*; | |||
| 
 | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/10/9 9:34 | |||
|  */ | |||
| public interface AnScreenService { | |||
| 	/** | |||
| 	 * 基层党员-各类总数 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.PmTotalResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 13:55 | |||
| 	 */ | |||
| 	PmTotalResultDTO pmTotal(AnScreenFormDTO formDTO); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层党员-指标月度趋势 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.PmTotalTrendResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 13:57 | |||
| 	 */ | |||
| 	PmTotalTrendResultDTO pmTotalTrend(AnScreenTrendFormDTO formDTO); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层党员-党员排行榜单 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.PmRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 13:59 | |||
| 	 */ | |||
| 	List<PmRankResultDTO> pmRank(AnScreenRankFormDTO formDTO); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-党群数、议题数、项目数 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:01 | |||
| 	 */ | |||
| 	GrassRootsOrgResultDTO grassRootsOrg(AnScreenFormDTO formDTO); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-指标月度趋势 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgTrendResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:03 | |||
| 	 */ | |||
| 	GrassRootsOrgTrendResultDTO grassRootsOrgTrend(AnScreenTrendFormDTO formDTO); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-组织排行榜单 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:06 | |||
| 	 */ | |||
| 	List<GrassRootsOrgRankResultDTO> grassRootsOrgRank(AnScreenFormDTO formDTO); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层治理-总数 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:10 | |||
| 	 */ | |||
| 	GrassRootsGovernResultDTO grassRootsGovern(AnScreenFormDTO formDTO); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层治理-指标月度趋势 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernTrendResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:11 | |||
| 	 */ | |||
| 	GrassRootsGovernTrendResultDTO grassRootsGovernTrend(AnScreenTrendFormDTO formDTO); | |||
| 
 | |||
| 	/** | |||
| 	 * 基层治理-治理排行 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:13 | |||
| 	 */ | |||
| 	List<GrassRootsGovernRankResultDTO> grassRootsGovernRank(AnScreenFormDTO formDTO); | |||
| 
 | |||
| 	/** | |||
| 	 * 项目 | |||
| 	 * | |||
| 	 * @param customerId | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.ProjectProfileResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:16 | |||
| 	 */ | |||
| 	List<ProjectProfileResultDTO> projectProfile(String customerId); | |||
| } | |||
| @ -0,0 +1,254 @@ | |||
| package com.epmet.datareport.service.evaluationindex.screen.impl; | |||
| 
 | |||
| import com.epmet.commons.dynamic.datasource.annotation.DataSource; | |||
| import com.epmet.commons.tools.constant.NumConstant; | |||
| import com.epmet.commons.tools.utils.DateUtils; | |||
| import com.epmet.constant.DataSourceConstant; | |||
| import com.epmet.datareport.dao.evaluationindex.screenan.*; | |||
| import com.epmet.datareport.service.evaluationindex.screen.AnScreenService; | |||
| import com.epmet.evaluationindex.screen.dto.form.AnScreenFormDTO; | |||
| import com.epmet.evaluationindex.screen.dto.form.AnScreenRankFormDTO; | |||
| import com.epmet.evaluationindex.screen.dto.form.AnScreenTrendFormDTO; | |||
| import com.epmet.evaluationindex.screen.dto.result.*; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| 
 | |||
| import java.util.Date; | |||
| import java.util.List; | |||
| import java.util.stream.Collectors; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/10/9 9:35 | |||
|  */ | |||
| @Service | |||
| @DataSource(DataSourceConstant.EVALUATION_INDEX) | |||
| public class AnScreenServiceImpl implements AnScreenService { | |||
| 
 | |||
| 	@Autowired | |||
| 	private ScreenAnGrassRootsPmTotalMonthlyDao screenAnGrassRootsPmTotalMonthlyDao; | |||
| 	@Autowired | |||
| 	private ScreenAnGrassRootsPmRankDao screenAnGrassRootsPmRankDao; | |||
| 	@Autowired | |||
| 	private ScreenAnGrassRootsOrgMonthlyDao screenAnGrassRootsOrgMonthlyDao; | |||
| 	@Autowired | |||
| 	private ScreenAnGrassRootsGovernMonthlyDao screenAnGrassRootsGovernMonthlyDao; | |||
| 	@Autowired | |||
| 	private ScreenAnCommunityProjectProfileDao screenAnCommunityProjectProfileDao; | |||
| 
 | |||
| 	/** | |||
| 	 * 基层党员-各类总数 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.PmTotalResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 13:55 | |||
| 	 */ | |||
| 	@Override | |||
| 	public PmTotalResultDTO pmTotal(AnScreenFormDTO formDTO) { | |||
| 		return screenAnGrassRootsPmTotalMonthlyDao.selectPmTotal(formDTO.getAgencyId(), formDTO.getMonthId()); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层党员-指标月度趋势 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.PmTotalTrendResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 13:57 | |||
| 	 */ | |||
| 	@Override | |||
| 	public PmTotalTrendResultDTO pmTotalTrend(AnScreenTrendFormDTO formDTO) { | |||
| 		PmTotalTrendResultDTO resultDTO = new PmTotalTrendResultDTO(); | |||
| 		String yearId = DateUtils.format(new Date(), DateUtils.DATE_PATTERN_YYYY); | |||
| 		List<PmTotalTrendDTO> list = screenAnGrassRootsPmTotalMonthlyDao.selectPmTotalTrend(formDTO.getAgencyId(), yearId); | |||
| 		List<String> xAxis = list.stream().map(item -> getMonth(item.getMonthId())).collect(Collectors.toList()); | |||
| 		List<Integer> groupMemberTotalList = list.stream().map(PmTotalTrendDTO::getGroupMemberTotal).collect(Collectors.toList()); | |||
| 		List<Integer> topicTotalList = list.stream().map(PmTotalTrendDTO::getTopicTotal).collect(Collectors.toList()); | |||
| 		List<Integer> topicPartiUserTotalList = list.stream().map(PmTotalTrendDTO::getTopicPartiUserTotal).collect(Collectors.toList()); | |||
| 		List<Integer> issueTotalList = list.stream().map(PmTotalTrendDTO::getIssueTotal).collect(Collectors.toList()); | |||
| 		resultDTO.setXAxis(xAxis); | |||
| 		resultDTO.setGroupMemberTotalList(groupMemberTotalList); | |||
| 		resultDTO.setTopicTotalList(topicTotalList); | |||
| 		resultDTO.setTopicPartiUserTotalList(topicPartiUserTotalList); | |||
| 		resultDTO.setIssueTotalList(issueTotalList); | |||
| 		return resultDTO; | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层党员-党员排行榜单 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.PmRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 13:59 | |||
| 	 */ | |||
| 	@Override | |||
| 	public List<PmRankResultDTO> pmRank(AnScreenRankFormDTO formDTO) { | |||
| 		return screenAnGrassRootsPmRankDao.selectPmRank(formDTO.getAgencyId(), formDTO.getTopNum()); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-党群数、议题数、项目数 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:01 | |||
| 	 */ | |||
| 	@Override | |||
| 	public GrassRootsOrgResultDTO grassRootsOrg(AnScreenFormDTO formDTO) { | |||
| 		return screenAnGrassRootsOrgMonthlyDao.selectGrassRootsOrg(formDTO.getAgencyId(), formDTO.getMonthId()); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-指标月度趋势 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgTrendResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:03 | |||
| 	 */ | |||
| 	@Override | |||
| 	public GrassRootsOrgTrendResultDTO grassRootsOrgTrend(AnScreenTrendFormDTO formDTO) { | |||
| 		GrassRootsOrgTrendResultDTO resultDTO = new GrassRootsOrgTrendResultDTO(); | |||
| 		String yearId = DateUtils.format(new Date(), DateUtils.DATE_PATTERN_YYYY); | |||
| 		List<GrassRootsOrgTrendDTO> list = screenAnGrassRootsOrgMonthlyDao.selectGrassRootsOrgTrend(formDTO.getAgencyId(), yearId); | |||
| 		List<String> xAxis = list.stream().map(item -> getMonth(item.getMonthId())).collect(Collectors.toList()); | |||
| 		List<Integer> groupTotalList = list.stream().map(GrassRootsOrgTrendDTO::getGroupTotal).collect(Collectors.toList()); | |||
| 		List<Integer> issueTotalList = list.stream().map(GrassRootsOrgTrendDTO::getIssueTotal).collect(Collectors.toList()); | |||
| 		List<Integer> projectTotal = list.stream().map(GrassRootsOrgTrendDTO::getProjectTotal).collect(Collectors.toList()); | |||
| 		resultDTO.setXAxis(xAxis); | |||
| 		resultDTO.setGroupTotalList(groupTotalList); | |||
| 		resultDTO.setIssueTotalList(issueTotalList); | |||
| 		resultDTO.setProjectTotal(projectTotal); | |||
| 		return resultDTO; | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层组织-组织排行榜单 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:06 | |||
| 	 */ | |||
| 	@Override | |||
| 	public List<GrassRootsOrgRankResultDTO> grassRootsOrgRank(AnScreenFormDTO formDTO) { | |||
| 		return screenAnGrassRootsOrgMonthlyDao.selectGrassRootsOrgRank(formDTO.getAgencyId(), formDTO.getMonthId()); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层治理-总数 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:10 | |||
| 	 */ | |||
| 	@Override | |||
| 	public GrassRootsGovernResultDTO grassRootsGovern(AnScreenFormDTO formDTO) { | |||
| 		return screenAnGrassRootsGovernMonthlyDao.selectGrassRootsGovern(formDTO.getAgencyId(), formDTO.getMonthId()); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层治理-指标月度趋势 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernTrendResultDTO | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:11 | |||
| 	 */ | |||
| 	@Override | |||
| 	public GrassRootsGovernTrendResultDTO grassRootsGovernTrend(AnScreenTrendFormDTO formDTO) { | |||
| 		GrassRootsGovernTrendResultDTO resultDTO = new GrassRootsGovernTrendResultDTO(); | |||
| 		String yearId = DateUtils.format(new Date(), DateUtils.DATE_PATTERN_YYYY); | |||
| 		List<GrassRootsGovernTrendDTO> list = screenAnGrassRootsGovernMonthlyDao.selectGrassRootsGovernTrend(formDTO.getAgencyId(), yearId); | |||
| 		List<String> xAxis = list.stream().map(item -> getMonth(item.getMonthId())).collect(Collectors.toList()); | |||
| 		List<Integer> partiProjectTotalList = list.stream().map(GrassRootsGovernTrendDTO::getPartiProjectTotal).collect(Collectors.toList()); | |||
| 		List<Integer> closedProjectTotalList = list.stream().map(GrassRootsGovernTrendDTO::getClosedProjectTotal).collect(Collectors.toList()); | |||
| 		List<Integer> projectResponseRatioList = list.stream().map(GrassRootsGovernTrendDTO::getProjectResponseRatio).collect(Collectors.toList()); | |||
| 		List<Integer> projectSatisRatioList = list.stream().map(GrassRootsGovernTrendDTO::getProjectSatisRatio).collect(Collectors.toList()); | |||
| 		List<Integer> closedProjectRatioList = list.stream().map(GrassRootsGovernTrendDTO::getClosedProjectRatio).collect(Collectors.toList()); | |||
| 		resultDTO.setXAxis(xAxis); | |||
| 		resultDTO.setPartiProjectTotalList(partiProjectTotalList); | |||
| 		resultDTO.setClosedProjectTotalList(closedProjectTotalList); | |||
| 		resultDTO.setProjectResponseRatioList(projectResponseRatioList); | |||
| 		resultDTO.setProjectSatisRatioList(projectSatisRatioList); | |||
| 		resultDTO.setClosedProjectRatioList(closedProjectRatioList); | |||
| 		return resultDTO; | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 基层治理-治理排行 | |||
| 	 * | |||
| 	 * @param formDTO | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernRankResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:13 | |||
| 	 */ | |||
| 	@Override | |||
| 	public List<GrassRootsGovernRankResultDTO> grassRootsGovernRank(AnScreenFormDTO formDTO) { | |||
| 		return screenAnGrassRootsGovernMonthlyDao.selectGrassRootsGovernRank(formDTO.getAgencyId(), formDTO.getMonthId()); | |||
| 	} | |||
| 
 | |||
| 	/** | |||
| 	 * 项目 | |||
| 	 * | |||
| 	 * @param customerId | |||
| 	 * @return java.util.List<com.epmet.evaluationindex.screen.dto.result.ProjectProfileResultDTO> | |||
| 	 * @author zhaoqifeng | |||
| 	 * @date 2020/10/9 14:16 | |||
| 	 */ | |||
| 	@Override | |||
| 	public List<ProjectProfileResultDTO> projectProfile(String customerId) { | |||
| 		return screenAnCommunityProjectProfileDao.selectProjectProfile(customerId); | |||
| 	} | |||
| 
 | |||
| 	private String getMonth(String monthId) { | |||
| 		String month = monthId.substring(NumConstant.FOUR, NumConstant.SIX); | |||
| 		String name = ""; | |||
| 		switch (month) { | |||
| 			case "01": | |||
| 				name = "1月"; | |||
| 				break; | |||
| 			case "02": | |||
| 				name = "2月"; | |||
| 				break; | |||
| 			case "03": | |||
| 				name = "3月"; | |||
| 				break; | |||
| 			case "04": | |||
| 				name = "4月"; | |||
| 				break; | |||
| 			case "05": | |||
| 				name = "5月"; | |||
| 				break; | |||
| 			case "06": | |||
| 				name = "6月"; | |||
| 				break; | |||
| 			case "07": | |||
| 				name = "7月"; | |||
| 				break; | |||
| 			case "08": | |||
| 				name = "8月"; | |||
| 				break; | |||
| 			case "09": | |||
| 				name = "9月"; | |||
| 				break; | |||
| 			case "10": | |||
| 				name = "10月"; | |||
| 				break; | |||
| 			case "11": | |||
| 				name = "11月"; | |||
| 				break; | |||
| 			case "12": | |||
| 				name = "12月"; | |||
| 				break; | |||
| 			default: | |||
| 				break; | |||
| 		} | |||
| 		return name; | |||
| 	} | |||
| } | |||
| @ -0,0 +1,13 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||
| <mapper namespace="com.epmet.datareport.dao.evaluationindex.screenan.ScreenAnCommunityProjectProfileDao"> | |||
| 
 | |||
|     <select id="selectProjectProfile" resultType="com.epmet.evaluationindex.screen.dto.result.ProjectProfileResultDTO"> | |||
|         SELECT ORG_ID, | |||
|                PROJECT_TOTAL, | |||
|                LEVEL | |||
|         FROM screen_an_community_project_profile | |||
|         WHERE DEL_FLAG = 0 | |||
|         AND CUSTOMER_ID = #{customerId} | |||
|     </select> | |||
| </mapper> | |||
| @ -0,0 +1,43 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||
| 
 | |||
| <mapper namespace="com.epmet.datareport.dao.evaluationindex.screenan.ScreenAnGrassRootsGovernMonthlyDao"> | |||
| 
 | |||
| 
 | |||
|     <select id="selectGrassRootsGovern" resultType="com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernResultDTO"> | |||
|         SELECT PARTI_PROJECT_TOTAL, | |||
|                CLOSED_PROJECT_TOTAL, | |||
|                PROJECT_RESPONSE_RATIO, | |||
|                PROJECT_SATIS_RATIO, | |||
|                CLOSED_PROJECT_RATIO | |||
|         FROM screen_an_grass_roots_govern_monthly | |||
|         WHERE DEL_FLAG = 0 | |||
|         AND ORG_ID = #{agencyId} | |||
|         AND MONTH_ID = #{monthId} | |||
|     </select> | |||
|     <select id="selectGrassRootsGovernTrend" resultType="com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernTrendDTO"> | |||
|         SELECT MONTH_ID, | |||
|                PARTI_PROJECT_TOTAL, | |||
|                CLOSED_PROJECT_TOTAL, | |||
|                PROJECT_RESPONSE_RATIO, | |||
|                PROJECT_SATIS_RATIO, | |||
|                CLOSED_PROJECT_RATIO | |||
|         FROM screen_an_grass_roots_govern_monthly | |||
|         WHERE DEL_FLAG = 0 | |||
|           AND ORG_ID = #{agencyId} | |||
|           AND MONTH_ID = #{yearId} | |||
|     </select> | |||
|     <select id="selectGrassRootsGovernRank" resultType="com.epmet.evaluationindex.screen.dto.result.GrassRootsGovernRankResultDTO"> | |||
|         SELECT ORG_NAME, | |||
|                PARTI_PROJECT_TOTAL, | |||
|                CLOSED_PROJECT_TOTAL, | |||
|                PROJECT_RESPONSE_RATIO, | |||
|                PROJECT_SATIS_RATIO, | |||
|                CLOSED_PROJECT_RATIO | |||
|         FROM screen_an_grass_roots_govern_monthly | |||
|         WHERE DEL_FLAG = 0 | |||
|           AND PID = #{agencyId} | |||
|           AND MONTH_ID = #{monthId} | |||
|         GROUP BY PARTI_PROJECT_TOTAL | |||
|     </select> | |||
| </mapper> | |||
| @ -0,0 +1,37 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||
| 
 | |||
| <mapper namespace="com.epmet.datareport.dao.evaluationindex.screenan.ScreenAnGrassRootsOrgMonthlyDao"> | |||
| 
 | |||
|     <!--基层组织-党群数、议题数、项目数--> | |||
|     <select id="selectGrassRootsOrg" resultType="com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgResultDTO"> | |||
|         SELECT GROUP_TOTAL, | |||
|                ISSUE_TOTAL, | |||
|                PROJECT_TOTAL | |||
|         FROM screen_an_grass_roots_org_monthly | |||
|         WHERE DEL_FLAG = 0 | |||
|         AND ORG_ID = #{agencyId} | |||
|         AND MONTH_ID = #{monthId} | |||
|     </select> | |||
|     <select id="selectGrassRootsOrgTrend" resultType="com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgTrendDTO"> | |||
|         SELECT MONTH_ID, | |||
|                GROUP_TOTAL, | |||
|                ISSUE_TOTAL, | |||
|                PROJECT_TOTAL | |||
|         FROM screen_an_grass_roots_org_monthly | |||
|         WHERE DEL_FLAG = 0 | |||
|           AND ORG_ID = #{agencyId} | |||
|           AND YEAR_ID = #{yearId} | |||
|     </select> | |||
|     <select id="selectGrassRootsOrgRank" resultType="com.epmet.evaluationindex.screen.dto.result.GrassRootsOrgRankResultDTO"> | |||
|         SELECT ORG_NAME, | |||
|                GROUP_TOTAL, | |||
|                ISSUE_TOTAL, | |||
|                PROJECT_TOTAL | |||
|         FROM screen_an_grass_roots_org_monthly | |||
|         WHERE DEL_FLAG = 0 | |||
|           AND PID = #{agencyId} | |||
|           AND MONTH_ID = #{monthId} | |||
|         ORDER BY GROUP_TOTAL | |||
|     </select> | |||
| </mapper> | |||
| @ -0,0 +1,21 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||
| 
 | |||
| <mapper namespace="com.epmet.datareport.dao.evaluationindex.screenan.ScreenAnGrassRootsPmRankDao"> | |||
|     <!--基层党员-党员排行榜单--> | |||
|     <select id="selectPmRank" resultType="com.epmet.evaluationindex.screen.dto.result.PmRankResultDTO"> | |||
|         SELECT USER_ID, | |||
|                USER_NAME, | |||
|                BRANCH_NAME, | |||
|                COMMUNITY_NAME, | |||
|                GROUP_MEMBER_TOTAL, | |||
|                TOPIC_TOTAL, | |||
|                PARTI_USER_TOTAL, | |||
|                ISSUE_TOTAL | |||
|         FROM screen_an_grass_roots_pm_rank | |||
|         WHERE DEL_FLAG = 0 | |||
|             AND ALL_PARENT_IDS LIKE concat('%', trim(#{agencyId}), '%') | |||
|         ORDER BY GROUP_MEMBER_TOTAL | |||
|         LIMIT #{topNum} | |||
|     </select> | |||
| </mapper> | |||
| @ -0,0 +1,27 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||
| 
 | |||
| <mapper namespace="com.epmet.datareport.dao.evaluationindex.screenan.ScreenAnGrassRootsPmTotalMonthlyDao"> | |||
|     <!--基层党员-各类总数--> | |||
|     <select id="selectPmTotal" resultType="com.epmet.evaluationindex.screen.dto.result.PmTotalResultDTO"> | |||
|         SELECT GROUP_MEMBER_TOTAL, | |||
|                TOPIC_TOTAL, | |||
|                TOPIC_PARTI_USER_TOTAL, | |||
|                ISSUE_TOTAL | |||
|         FROM screen_an_grass_roots_pm_total_monthly | |||
|         WHERE DEL_FLAG = '0' | |||
|           AND ORG_ID = #{agencyId} | |||
|           AND MONTH_ID = #{monthId} | |||
|     </select> | |||
|     <select id="selectPmTotalTrend" resultType="com.epmet.evaluationindex.screen.dto.result.PmTotalTrendDTO"> | |||
|         SELECT MONTH_ID, | |||
|                GROUP_MEMBER_TOTAL, | |||
|                TOPIC_TOTAL, | |||
|                TOPIC_PARTI_USER_TOTAL, | |||
|                ISSUE_TOTAL | |||
|         FROM screen_an_grass_roots_pm_total_monthly | |||
|         WHERE DEL_FLAG = '0' | |||
|           AND ORG_ID = #{agencyId} | |||
|           AND YEAR_ID = #{yearId} | |||
|     </select> | |||
| </mapper> | |||
					Loading…
					
					
				
		Reference in new issue