forked from luyan/epmet-cloud-lingshan
				
			
				 50 changed files with 1307 additions and 120 deletions
			
			
		@ -0,0 +1,33 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.dao.evaluationindex.indexcal; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			||||
 | 
					import com.epmet.entity.evaluationindex.indexcal.FactIndexAgencySelfSubScoreEntity; | 
				
			||||
 | 
					import org.apache.ibatis.annotations.Mapper; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 区/街道相关 自身和下级分数表 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Mapper | 
				
			||||
 | 
					public interface FactIndexAgencySelfSubScoreDao extends BaseDao<FactIndexAgencySelfSubScoreEntity> { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,33 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.dao.evaluationindex.indexcal; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			||||
 | 
					import com.epmet.entity.evaluationindex.indexcal.FactIndexCommunitySelfSubScoreEntity; | 
				
			||||
 | 
					import org.apache.ibatis.annotations.Mapper; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 社区相关 自身/下级分数表 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Mapper | 
				
			||||
 | 
					public interface FactIndexCommunitySelfSubScoreDao extends BaseDao<FactIndexCommunitySelfSubScoreEntity> { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,33 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.dao.evaluationindex.indexcal; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			||||
 | 
					import com.epmet.entity.evaluationindex.indexcal.FactIndexGridSelfSubScoreEntity; | 
				
			||||
 | 
					import org.apache.ibatis.annotations.Mapper; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 网格相关自身/下级分值记录表 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Mapper | 
				
			||||
 | 
					public interface FactIndexGridSelfSubScoreDao extends BaseDao<FactIndexGridSelfSubScoreEntity> { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,100 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.entity.evaluationindex.indexcal; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.baomidou.mybatisplus.annotation.TableName; | 
				
			||||
 | 
					import com.epmet.commons.mybatis.entity.BaseEpmetEntity; | 
				
			||||
 | 
					import lombok.Data; | 
				
			||||
 | 
					import lombok.EqualsAndHashCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.math.BigDecimal; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 区/街道相关 自身和下级分数表 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Data | 
				
			||||
 | 
					@EqualsAndHashCode(callSuper = false) | 
				
			||||
 | 
					@TableName("fact_index_agency_self_sub_score") | 
				
			||||
 | 
					public class FactIndexAgencySelfSubScoreEntity extends BaseEpmetEntity { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						private static final long serialVersionUID = 1L; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 客户Id | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String customerId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 组织id(eg:社区或者街道id) | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String agencyId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 上级组织id | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String parentAgencyId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 年度ID: yyyy | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String yearId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 季度id: yyyyQ1、yyyyQ2、yyyyQ3、yyyyQ4 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String quarterId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 月维度Id: yyyyMM | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String monthId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 数据类型 district  :全区;street:街道 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String dataType; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 分数类型,self:自身得分;sub:下级得分 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String scoreType; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 分值 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private BigDecimal score; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 党建能力:dangjiannengli;治理能力:zhilinengli;服务能力:fuwunengli;街道相关:jiedaoxiangguan;全区相关:quanquxiangguan | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String indexCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 所有指标code拼接的字符串 冒号隔开 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String allParentIndexCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 权重 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private BigDecimal weight; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,95 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.entity.evaluationindex.indexcal; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.baomidou.mybatisplus.annotation.TableName; | 
				
			||||
 | 
					import com.epmet.commons.mybatis.entity.BaseEpmetEntity; | 
				
			||||
 | 
					import lombok.Data; | 
				
			||||
 | 
					import lombok.EqualsAndHashCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.math.BigDecimal; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 社区相关 自身/下级分数表 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Data | 
				
			||||
 | 
					@EqualsAndHashCode(callSuper = false) | 
				
			||||
 | 
					@TableName("fact_index_community_self_sub_score") | 
				
			||||
 | 
					public class FactIndexCommunitySelfSubScoreEntity extends BaseEpmetEntity { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						private static final long serialVersionUID = 1L; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 客户Id | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String customerId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 组织id | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String agencyId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 社区上一级组织id | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String parentAgencyId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 年度ID: yyyy | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String yearId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 季度id: yyyyQ1、yyyyQ2、yyyyQ3、yyyyQ4 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String quarterId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 月维度Id: yyyyMM | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String monthId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 分数类型,self:自身得分;sub:下级得分 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String scoreType; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 分值 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private BigDecimal score; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 党建能力:dangjiannengli;治理能力:zhilinengli;服务能力:fuwunengli;社区相关:shequxiangguan | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String indexCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 所有指标code拼接的字符串 冒号隔开 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String allParentIndexCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 权重 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private BigDecimal weight; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,100 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.entity.evaluationindex.indexcal; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.baomidou.mybatisplus.annotation.TableName; | 
				
			||||
 | 
					import com.epmet.commons.mybatis.entity.BaseEpmetEntity; | 
				
			||||
 | 
					import lombok.Data; | 
				
			||||
 | 
					import lombok.EqualsAndHashCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.math.BigDecimal; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 网格相关自身/下级分值记录表 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Data | 
				
			||||
 | 
					@EqualsAndHashCode(callSuper = false) | 
				
			||||
 | 
					@TableName("fact_index_grid_self_sub_score") | 
				
			||||
 | 
					public class FactIndexGridSelfSubScoreEntity extends BaseEpmetEntity { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						private static final long serialVersionUID = 1L; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 客户Id | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String customerId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 网格Id | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String gridId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 网格所属的机关Id | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String agencyId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 所有上级ID,用英文逗号分开 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String allParentIds; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 季度id: yyyyQ1、yyyyQ2、yyyyQ3、yyyyQ4 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String quarterId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 年度ID: yyyy | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String yearId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 月维度Id: yyyyMM | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String monthId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 分数类型,self:自身得分;sub:下级得分 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String scoreType; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 分值 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private BigDecimal score; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 党建能力:dangjiannengli;治理能力:zhilinengli;服务能力:fuwunengli;网格相关:wanggexiangguan | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String indexCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 所有指标code拼接的字符串 冒号隔开 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private String allParentIndexCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						/** | 
				
			||||
 | 
						 * 权重 | 
				
			||||
 | 
						 */ | 
				
			||||
 | 
						private BigDecimal weight; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,52 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.service.evaluationindex.extract; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.mybatis.service.BaseService; | 
				
			||||
 | 
					import com.epmet.entity.evaluationindex.extract.FactOriginGroupMainDailyEntity; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.util.List; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 业务数据抽取-小组相关 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					public interface FactOriginGroupMainDailyService extends BaseService<FactOriginGroupMainDailyEntity> { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @return java.util.List<java.lang.String> | 
				
			||||
 | 
					     * @param customerId | 
				
			||||
 | 
					     * @param userId | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 查询当前用户建了多少个组 | 
				
			||||
 | 
					     * @Date 2020/9/21 16:12 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    List<String> selectGroupIds(String customerId, String userId); | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @return java.util.List<java.lang.String> | 
				
			||||
 | 
					     * @param groupIdList | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 根据组,查询组里面的成员(去重) | 
				
			||||
 | 
					     * @Date 2020/9/21 16:13 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    List<String> selectGroupMemberList(List<String> groupIdList); | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,65 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.service.evaluationindex.extract.impl; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; | 
				
			||||
 | 
					import com.epmet.dao.evaluationindex.extract.FactOriginGroupMainDailyDao; | 
				
			||||
 | 
					import com.epmet.entity.evaluationindex.extract.FactOriginGroupMainDailyEntity; | 
				
			||||
 | 
					import com.epmet.service.evaluationindex.extract.FactOriginGroupMainDailyService; | 
				
			||||
 | 
					import org.springframework.stereotype.Service; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.util.List; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 业务数据抽取-小组相关 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Service | 
				
			||||
 | 
					public class FactOriginGroupMainDailyServiceImpl extends BaseServiceImpl<FactOriginGroupMainDailyDao, FactOriginGroupMainDailyEntity> implements FactOriginGroupMainDailyService { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @return java.util.List<java.lang.String> | 
				
			||||
 | 
					     * @param customerId | 
				
			||||
 | 
					     * @param userId | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 查询当前用户建了多少个组 | 
				
			||||
 | 
					     * @Date 2020/9/21 16:13 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    @Override | 
				
			||||
 | 
					    public List<String> selectGroupIds(String customerId, String userId) { | 
				
			||||
 | 
					        List<String> groupIdList = baseDao.selectGroupIds(customerId,userId); | 
				
			||||
 | 
					        return groupIdList; | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @param groupIdList | 
				
			||||
 | 
					     * @return java.util.List<java.lang.String> | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 根据组,查询组里面的成员(去重) | 
				
			||||
 | 
					     * @Date 2020/9/21 16:13 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    @Override | 
				
			||||
 | 
					    public List<String> selectGroupMemberList(List<String> groupIdList) { | 
				
			||||
 | 
					        List<String> memberIdList = baseDao.selectGroupMemberList(groupIdList); | 
				
			||||
 | 
					        return memberIdList; | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,51 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.service.evaluationindex.indexcoll; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.mybatis.service.BaseService; | 
				
			||||
 | 
					import com.epmet.entity.evaluationindex.indexcoll.FactIndexPartyAblityCpcMonthlyEntity; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.util.List; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 党建能力-党员相关的事实表  | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					public interface FactIndexPartyAblityCpcMonthlyService extends BaseService<FactIndexPartyAblityCpcMonthlyEntity> { | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @return void | 
				
			||||
 | 
					     * @param customerId | 
				
			||||
 | 
					     * @param monthId | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 删除这个客户这个月  党员相关-党建能力的数据 | 
				
			||||
 | 
					     * @Date 2020/9/21 16:01 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    void deleteFactIndexPartyAblityCpcMonthly(String customerId, String monthId); | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @return void | 
				
			||||
 | 
					     * @param list | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 批量插入党员相关党建能力表 | 
				
			||||
 | 
					     * @Date 2020/9/21 16:04 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    void saveFactIndexPartyAblityCpcMonthlyEntity(List<FactIndexPartyAblityCpcMonthlyEntity> list); | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,41 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.service.evaluationindex.indexcoll; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.mybatis.service.BaseService; | 
				
			||||
 | 
					import com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyEntity; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 服务能力-网格相关事实表 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					public interface FactIndexServiceAblityGridMonthlyService extends BaseService<FactIndexServiceAblityGridMonthlyEntity> { | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @return void | 
				
			||||
 | 
					     * @param customerId | 
				
			||||
 | 
					     * @param monthId | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 批量删除网格相关-服务能力指标表 | 
				
			||||
 | 
					     * @Date 2020/9/21 16:38 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    void deleteBatchIndexServiceAblityGridMonthly(String customerId, 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.service.evaluationindex.indexcoll.impl; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.dynamic.datasource.annotation.DataSource; | 
				
			||||
 | 
					import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; | 
				
			||||
 | 
					import com.epmet.commons.tools.constant.NumConstant; | 
				
			||||
 | 
					import com.epmet.constant.DataSourceConstant; | 
				
			||||
 | 
					import com.epmet.dao.evaluationindex.indexcoll.FactIndexPartyAblityCpcMonthlyDao; | 
				
			||||
 | 
					import com.epmet.entity.evaluationindex.indexcoll.FactIndexPartyAblityCpcMonthlyEntity; | 
				
			||||
 | 
					import com.epmet.service.evaluationindex.indexcoll.FactIndexPartyAblityCpcMonthlyService; | 
				
			||||
 | 
					import org.springframework.stereotype.Service; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.util.List; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 党建能力-党员相关的事实表  | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Service | 
				
			||||
 | 
					public class FactIndexPartyAblityCpcMonthlyServiceImpl extends BaseServiceImpl<FactIndexPartyAblityCpcMonthlyDao, FactIndexPartyAblityCpcMonthlyEntity> implements FactIndexPartyAblityCpcMonthlyService { | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @param customerId | 
				
			||||
 | 
					     * @param monthId | 
				
			||||
 | 
					     * @return void | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 删除这个客户这个月  党员相关-党建能力的数据 | 
				
			||||
 | 
					     * @Date 2020/9/18 10:20 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    @Override | 
				
			||||
 | 
					    @DataSource(value = DataSourceConstant.EVALUATION_INDEX) | 
				
			||||
 | 
					    public void deleteFactIndexPartyAblityCpcMonthly(String customerId, String monthId) { | 
				
			||||
 | 
					        int deleteNum; | 
				
			||||
 | 
					        do { | 
				
			||||
 | 
					            deleteNum = baseDao.deleteFactIndexPartyAblityCpcMonthly(customerId, monthId); | 
				
			||||
 | 
					        } while (deleteNum > NumConstant.ZERO); | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @param list | 
				
			||||
 | 
					     * @return void | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 批量插入党员相关党建能力表 | 
				
			||||
 | 
					     * @Date 2020/9/18 10:27 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    @Override | 
				
			||||
 | 
					    @DataSource(value = DataSourceConstant.EVALUATION_INDEX) | 
				
			||||
 | 
					    public void saveFactIndexPartyAblityCpcMonthlyEntity(List<FactIndexPartyAblityCpcMonthlyEntity> list) { | 
				
			||||
 | 
					        baseDao.insertBatchEntity(list); | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,54 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.service.evaluationindex.indexcoll.impl; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.dynamic.datasource.annotation.DataSource; | 
				
			||||
 | 
					import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; | 
				
			||||
 | 
					import com.epmet.commons.tools.constant.NumConstant; | 
				
			||||
 | 
					import com.epmet.constant.DataSourceConstant; | 
				
			||||
 | 
					import com.epmet.dao.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyDao; | 
				
			||||
 | 
					import com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyEntity; | 
				
			||||
 | 
					import com.epmet.service.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyService; | 
				
			||||
 | 
					import org.springframework.stereotype.Service; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 服务能力-网格相关事实表 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2020-09-21 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Service | 
				
			||||
 | 
					public class FactIndexServiceAblityGridMonthlyServiceImpl extends BaseServiceImpl<FactIndexServiceAblityGridMonthlyDao, FactIndexServiceAblityGridMonthlyEntity> implements FactIndexServiceAblityGridMonthlyService { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @return void | 
				
			||||
 | 
					     * @param customerId | 
				
			||||
 | 
					     * @param monthId | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 批量删除网格相关-服务能力指标表 | 
				
			||||
 | 
					     * @Date 2020/9/21 10:16 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    @Override | 
				
			||||
 | 
					    @DataSource(DataSourceConstant.EVALUATION_INDEX) | 
				
			||||
 | 
					    public void deleteBatchIndexServiceAblityGridMonthly(String customerId, String monthId) { | 
				
			||||
 | 
					        int deleteNum; | 
				
			||||
 | 
					        do { | 
				
			||||
 | 
					            deleteNum = baseDao.deleteFactIndexServiceAblityGridMonthly(customerId, monthId); | 
				
			||||
 | 
					        } while (deleteNum > NumConstant.ZERO); | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,31 @@ | 
				
			|||||
 | 
					package com.epmet.service.heart; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.util.List; | 
				
			||||
 | 
					import java.util.Map; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 活动信息 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author yinzuomei@elink-cn.com | 
				
			||||
 | 
					 * @date 2020/9/21 16:39 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					public interface ActInfoService { | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @return java.util.List<java.lang.String> | 
				
			||||
 | 
					     * @param regUserIds | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 根据userId,查询用户是否是志愿者,返回是志愿者的用户集合 | 
				
			||||
 | 
					     * @Date 2020/9/21 16:41 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    List<String> getGridRegUserVolunteer(List<String> regUserIds); | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @return java.util.Map<java.lang.String,java.lang.Integer> | 
				
			||||
 | 
					     * @param customerId | 
				
			||||
 | 
					     * @param monthId | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 网格活动组织次数 爱心活动  值得是:  活动状态已结束并且实际结束时间在评价周期内的 | 
				
			||||
 | 
					     * @Date 2020/9/21 16:43 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    Map<String, Integer> calActivityCountMap(String customerId, String monthId); | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,61 @@ | 
				
			|||||
 | 
					package com.epmet.service.heart.impl; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.dynamic.datasource.annotation.DataSource; | 
				
			||||
 | 
					import com.epmet.constant.DataSourceConstant; | 
				
			||||
 | 
					import com.epmet.dao.heart.ActInfoDao; | 
				
			||||
 | 
					import com.epmet.service.heart.ActInfoService; | 
				
			||||
 | 
					import lombok.extern.slf4j.Slf4j; | 
				
			||||
 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
				
			||||
 | 
					import org.springframework.stereotype.Service; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.util.HashMap; | 
				
			||||
 | 
					import java.util.List; | 
				
			||||
 | 
					import java.util.Map; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 活动信息 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author yinzuomei@elink-cn.com | 
				
			||||
 | 
					 * @date 2020/9/21 16:40 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Slf4j | 
				
			||||
 | 
					@Service | 
				
			||||
 | 
					@DataSource(DataSourceConstant.EPMET_HEART) | 
				
			||||
 | 
					public class ActInfoServiceImpl implements ActInfoService { | 
				
			||||
 | 
					    @Autowired | 
				
			||||
 | 
					    private ActInfoDao baseDao; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @return java.util.List<java.lang.String> | 
				
			||||
 | 
					     * @param regUserIds | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 根据userId,查询用户是否是志愿者,返回是志愿者的用户集合 | 
				
			||||
 | 
					     * @Date 2020/9/21 13:50 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    @Override | 
				
			||||
 | 
					    @DataSource(DataSourceConstant.EPMET_HEART) | 
				
			||||
 | 
					    public List<String> getGridRegUserVolunteer(List<String> regUserIds) { | 
				
			||||
 | 
					        return baseDao.selectGridRegUserVolunteer(regUserIds); | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @return java.util.Map<java.lang.String,java.lang.Integer> | 
				
			||||
 | 
					     * @param customerId | 
				
			||||
 | 
					     * @param monthId | 
				
			||||
 | 
					     * @author yinzuomei | 
				
			||||
 | 
					     * @description 网格活动组织次数 爱心活动  值得是:  活动状态已结束并且实际结束时间在评价周期内的 | 
				
			||||
 | 
					     * @Date 2020/9/21 10:23 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    @Override | 
				
			||||
 | 
					    @DataSource(DataSourceConstant.EPMET_HEART) | 
				
			||||
 | 
					    public Map<String, Integer> calActivityCountMap(String customerId, String monthId) { | 
				
			||||
 | 
					        List<Map<String, Integer>> mapList = baseDao.selectActGroupByGridId(customerId, monthId); | 
				
			||||
 | 
					        Map<String, Integer> resultMap = new HashMap<>(); | 
				
			||||
 | 
					        for (Map<String, Integer> map : mapList) { | 
				
			||||
 | 
					            for (Map.Entry<String, Integer> m : map.entrySet()) { | 
				
			||||
 | 
					                resultMap.put(m.getKey(), m.getValue()); | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					        } | 
				
			||||
 | 
					        return resultMap; | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,29 @@ | 
				
			|||||
 | 
					<?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.dao.evaluationindex.indexcal.FactIndexAgencySelfSubScoreDao"> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    <resultMap type="com.epmet.entity.evaluationindex.indexcal.FactIndexAgencySelfSubScoreEntity" id="factIndexAgencySelfSubScoreMap"> | 
				
			||||
 | 
					        <result property="id" column="ID"/> | 
				
			||||
 | 
					        <result property="customerId" column="CUSTOMER_ID"/> | 
				
			||||
 | 
					        <result property="agencyId" column="AGENCY_ID"/> | 
				
			||||
 | 
					        <result property="parentAgencyId" column="PARENT_AGENCY_ID"/> | 
				
			||||
 | 
					        <result property="yearId" column="YEAR_ID"/> | 
				
			||||
 | 
					        <result property="quarterId" column="QUARTER_ID"/> | 
				
			||||
 | 
					        <result property="monthId" column="MONTH_ID"/> | 
				
			||||
 | 
					        <result property="dataType" column="DATA_TYPE"/> | 
				
			||||
 | 
					        <result property="scoreType" column="SCORE_TYPE"/> | 
				
			||||
 | 
					        <result property="score" column="SCORE"/> | 
				
			||||
 | 
					        <result property="indexCode" column="INDEX_CODE"/> | 
				
			||||
 | 
					        <result property="allParentIndexCode" column="ALL_PARENT_INDEX_CODE"/> | 
				
			||||
 | 
					        <result property="weight" column="WEIGHT"/> | 
				
			||||
 | 
					        <result property="delFlag" column="DEL_FLAG"/> | 
				
			||||
 | 
					        <result property="revision" column="REVISION"/> | 
				
			||||
 | 
					        <result property="createdBy" column="CREATED_BY"/> | 
				
			||||
 | 
					        <result property="createdTime" column="CREATED_TIME"/> | 
				
			||||
 | 
					        <result property="updatedBy" column="UPDATED_BY"/> | 
				
			||||
 | 
					        <result property="updatedTime" column="UPDATED_TIME"/> | 
				
			||||
 | 
					    </resultMap> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					</mapper> | 
				
			||||
@ -0,0 +1,28 @@ | 
				
			|||||
 | 
					<?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.dao.evaluationindex.indexcal.FactIndexCommunitySelfSubScoreDao"> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    <resultMap type="com.epmet.entity.evaluationindex.indexcal.FactIndexCommunitySelfSubScoreEntity" id="factIndexCommunitySelfSubScoreMap"> | 
				
			||||
 | 
					        <result property="id" column="ID"/> | 
				
			||||
 | 
					        <result property="customerId" column="CUSTOMER_ID"/> | 
				
			||||
 | 
					        <result property="agencyId" column="AGENCY_ID"/> | 
				
			||||
 | 
					        <result property="parentAgencyId" column="PARENT_AGENCY_ID"/> | 
				
			||||
 | 
					        <result property="yearId" column="YEAR_ID"/> | 
				
			||||
 | 
					        <result property="quarterId" column="QUARTER_ID"/> | 
				
			||||
 | 
					        <result property="monthId" column="MONTH_ID"/> | 
				
			||||
 | 
					        <result property="scoreType" column="SCORE_TYPE"/> | 
				
			||||
 | 
					        <result property="score" column="SCORE"/> | 
				
			||||
 | 
					        <result property="indexCode" column="INDEX_CODE"/> | 
				
			||||
 | 
					        <result property="allParentIndexCode" column="ALL_PARENT_INDEX_CODE"/> | 
				
			||||
 | 
					        <result property="weight" column="WEIGHT"/> | 
				
			||||
 | 
					        <result property="delFlag" column="DEL_FLAG"/> | 
				
			||||
 | 
					        <result property="revision" column="REVISION"/> | 
				
			||||
 | 
					        <result property="createdBy" column="CREATED_BY"/> | 
				
			||||
 | 
					        <result property="createdTime" column="CREATED_TIME"/> | 
				
			||||
 | 
					        <result property="updatedBy" column="UPDATED_BY"/> | 
				
			||||
 | 
					        <result property="updatedTime" column="UPDATED_TIME"/> | 
				
			||||
 | 
					    </resultMap> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					</mapper> | 
				
			||||
@ -0,0 +1,29 @@ | 
				
			|||||
 | 
					<?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.dao.evaluationindex.indexcal.FactIndexGridSelfSubScoreDao"> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    <resultMap type="com.epmet.entity.evaluationindex.indexcal.FactIndexGridSelfSubScoreEntity" id="factIndexGridSelfSubScoreMap"> | 
				
			||||
 | 
					        <result property="id" column="ID"/> | 
				
			||||
 | 
					        <result property="customerId" column="CUSTOMER_ID"/> | 
				
			||||
 | 
					        <result property="gridId" column="GRID_ID"/> | 
				
			||||
 | 
					        <result property="agencyId" column="AGENCY_ID"/> | 
				
			||||
 | 
					        <result property="allParentIds" column="ALL_PARENT_IDS"/> | 
				
			||||
 | 
					        <result property="quarterId" column="QUARTER_ID"/> | 
				
			||||
 | 
					        <result property="yearId" column="YEAR_ID"/> | 
				
			||||
 | 
					        <result property="monthId" column="MONTH_ID"/> | 
				
			||||
 | 
					        <result property="scoreType" column="SCORE_TYPE"/> | 
				
			||||
 | 
					        <result property="score" column="SCORE"/> | 
				
			||||
 | 
					        <result property="indexCode" column="INDEX_CODE"/> | 
				
			||||
 | 
					        <result property="allParentIndexCode" column="ALL_PARENT_INDEX_CODE"/> | 
				
			||||
 | 
					        <result property="weight" column="WEIGHT"/> | 
				
			||||
 | 
					        <result property="delFlag" column="DEL_FLAG"/> | 
				
			||||
 | 
					        <result property="revision" column="REVISION"/> | 
				
			||||
 | 
					        <result property="createdBy" column="CREATED_BY"/> | 
				
			||||
 | 
					        <result property="createdTime" column="CREATED_TIME"/> | 
				
			||||
 | 
					        <result property="updatedBy" column="UPDATED_BY"/> | 
				
			||||
 | 
					        <result property="updatedTime" column="UPDATED_TIME"/> | 
				
			||||
 | 
					    </resultMap> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					</mapper> | 
				
			||||
					Loading…
					
					
				
		Reference in new issue