forked from luyan/epmet-cloud-lingshan
				
			
				 12 changed files with 520 additions and 43 deletions
			
			
		@ -0,0 +1,40 @@ | 
				
			|||||
 | 
					package com.epmet.evaluationindex.index.form; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import lombok.Data; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.io.Serializable; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 *  指标分数 返回结果 | 
				
			||||
 | 
					 * @Author sun | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Data | 
				
			||||
 | 
					public class IndexScoreFormDTO implements Serializable { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    private static final long serialVersionUID = 6225580299239889980L; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    private String customerId; | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 组织或网格Id | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
					    private String orgId; | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 组织或网格类型 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
					    private String orgType; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 月份Id(格式:202009) | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
					    private String monthId; | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 类型(党建能力:dangjiannengli;治理能力:zhilinengli;服务能力:fuwunengli;) | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
					    private String indexCode; | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 所有有权重的指标code拼接的字符串 冒号隔开 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
					    private String allParentIndexCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,40 @@ | 
				
			|||||
 | 
					package com.epmet.evaluationindex.index.result; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import lombok.Data; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.io.Serializable; | 
				
			||||
 | 
					import java.math.BigDecimal; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 *  指标分数 返回结果 | 
				
			||||
 | 
					 * @Author sun | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Data | 
				
			||||
 | 
					public class IndexScoreResult implements Serializable { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    private static final long serialVersionUID = -8458272574625683349L; | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 指标code | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
					    private String indexCode; | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 指标对应值(数值或百分比)原始值 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
					    private BigDecimal score; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 指标对应的权重 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
					    private BigDecimal weight; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 原始值 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
					    private String originValue; | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 数量 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
					    private String quantity; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -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.datareport.dao.fact; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			||||
 | 
					import com.epmet.datareport.entity.evaluationindex.FactIndexCpcScoreEntity; | 
				
			||||
 | 
					import org.apache.ibatis.annotations.Mapper; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 党员相关分值 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2021-05-14 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Mapper | 
				
			||||
 | 
					public interface FactIndexCpcScoreDao extends BaseDao<FactIndexCpcScoreEntity> { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,38 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.fact; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			||||
 | 
					import com.epmet.datareport.entity.evaluationindex.FactIndexCpcSubScoreEntity; | 
				
			||||
 | 
					import com.epmet.evaluationindex.index.form.IndexScoreFormDTO; | 
				
			||||
 | 
					import com.epmet.evaluationindex.index.result.IndexScoreResult; | 
				
			||||
 | 
					import org.apache.ibatis.annotations.Mapper; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import java.util.List; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * 党员相关分值 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author generator generator@elink-cn.com | 
				
			||||
 | 
					 * @since v1.0.0 2021-05-14 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Mapper | 
				
			||||
 | 
					public interface FactIndexCpcSubScoreDao extends BaseDao<FactIndexCpcSubScoreEntity> { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    List<IndexScoreResult> selecCpcAvgScore(IndexScoreFormDTO ablityListFormDTO); | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,98 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.entity.evaluationindex; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					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 2021-05-14 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Data | 
				
			||||
 | 
					@EqualsAndHashCode(callSuper=false) | 
				
			||||
 | 
					@TableName("fact_index_cpc_score") | 
				
			||||
 | 
					public class FactIndexCpcScoreEntity extends BaseEpmetEntity { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						private static final long serialVersionUID = 1L; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 客户Id | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String customerId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 网格所属的机关Id | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String agencyId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 网格Id | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String gridId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 年度ID: yyyy | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String yearId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 月维度Id: yyyyMM | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String monthId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 用户id | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String userId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 1:总分;0不是 默认0 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String isTotal; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 分值 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private BigDecimal score; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 参与议事分值:canyuyishi; | 
				
			||||
 | 
					党务活动分值:dangwuhuodong; | 
				
			||||
 | 
					联系群众分值:lianxiqunzhong; | 
				
			||||
 | 
					党建能力分值:dangjiannengli | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String indexCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 所有指标code拼接的字符串 冒号隔开 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String allParentIndexCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 权重(同一组权重总和=1) | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private BigDecimal weight; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,98 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * 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.entity.evaluationindex; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					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 2021-05-14 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@Data | 
				
			||||
 | 
					@EqualsAndHashCode(callSuper=false) | 
				
			||||
 | 
					@TableName("fact_index_cpc_sub_score") | 
				
			||||
 | 
					public class FactIndexCpcSubScoreEntity extends BaseEpmetEntity { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
						private static final long serialVersionUID = 1L; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 客户Id | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String customerId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 网格所属的机关Id | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String agencyId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 网格Id | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String gridId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 年度ID: yyyy | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String yearId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 月维度Id: yyyyMM | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String monthId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 用户id | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String userId; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 计算指标时的原始值 字符串类型 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String originValue; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 分值 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private BigDecimal score; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 参与议事分值:canyuyishi; | 
				
			||||
 | 
					党务活动分值:dangwuhuodong; | 
				
			||||
 | 
					联系群众分值:lianxiqunzhong; | 
				
			||||
 | 
					党建能力分值:dangjiannengli | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String indexCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 所有指标code拼接的字符串 冒号隔开 | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private String allParentIndexCode; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * 权重(同一组权重总和=1) | 
				
			||||
 | 
					     */ | 
				
			||||
 | 
						private BigDecimal weight; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -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.datareport.dao.fact.FactIndexCpcScoreDao"> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    <!--<resultMap type="com.epmet.entity.FactIndexCpcScoreEntity" id="factIndexCpcScoreMap"> | 
				
			||||
 | 
					        <result property="id" column="ID"/> | 
				
			||||
 | 
					        <result property="customerId" column="CUSTOMER_ID"/> | 
				
			||||
 | 
					        <result property="agencyId" column="AGENCY_ID"/> | 
				
			||||
 | 
					        <result property="gridId" column="GRID_ID"/> | 
				
			||||
 | 
					        <result property="yearId" column="YEAR_ID"/> | 
				
			||||
 | 
					        <result property="monthId" column="MONTH_ID"/> | 
				
			||||
 | 
					        <result property="userId" column="USER_ID"/> | 
				
			||||
 | 
					        <result property="isTotal" column="IS_TOTAL"/> | 
				
			||||
 | 
					        <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,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.fact.FactIndexCpcSubScoreDao"> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    <!--<resultMap type="com.epmet.entity.FactIndexCpcSubScoreEntity" id="factIndexCpcSubScoreMap"> | 
				
			||||
 | 
					        <result property="id" column="ID"/> | 
				
			||||
 | 
					        <result property="customerId" column="CUSTOMER_ID"/> | 
				
			||||
 | 
					        <result property="agencyId" column="AGENCY_ID"/> | 
				
			||||
 | 
					        <result property="gridId" column="GRID_ID"/> | 
				
			||||
 | 
					        <result property="yearId" column="YEAR_ID"/> | 
				
			||||
 | 
					        <result property="monthId" column="MONTH_ID"/> | 
				
			||||
 | 
					        <result property="userId" column="USER_ID"/> | 
				
			||||
 | 
					        <result property="originValue" column="ORIGIN_VALUE"/> | 
				
			||||
 | 
					        <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>--> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    <select id="selecCpcAvgScore" resultType="com.epmet.evaluationindex.index.result.IndexScoreResult"> | 
				
			||||
 | 
					            SELECT | 
				
			||||
 | 
					                id, customer_id, agency_id, grid_id, year_id, month_id, user_id, | 
				
			||||
 | 
					                COUNT(*) quantity, | 
				
			||||
 | 
					                ROUND(AVG(score),2) score, | 
				
			||||
 | 
					                index_code, all_parent_index_code, weight | 
				
			||||
 | 
					            FROM  fact_index_cpc_sub_score | 
				
			||||
 | 
					            WHERE ALL_PARENT_INDEX_CODE = #{allParentIndexCode} | 
				
			||||
 | 
					            AND CUSTOMER_ID = #{customerId} | 
				
			||||
 | 
					            and GRID_ID = #{orgId} | 
				
			||||
 | 
					            and MONTH_ID = #{monthId} | 
				
			||||
 | 
					            GROUP BY INDEX_CODE; | 
				
			||||
 | 
					    </select> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					 </mapper> | 
				
			||||
					Loading…
					
					
				
		Reference in new issue