forked from luyan/epmet-cloud-lingshan
				
			
				 35 changed files with 1783 additions and 1 deletions
			
			
		@ -0,0 +1,107 @@ | 
				
			|||
/** | 
				
			|||
 * 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.dto.screen; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 社区相关-治理能力【五级权重】分数表  | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-27 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class FactIndexCommunityGovrnFiveScoreDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     *  | 
				
			|||
     */ | 
				
			|||
	private String id; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关iD | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月份ID | 
				
			|||
     */ | 
				
			|||
	private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
	private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
	private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 指标ID | 
				
			|||
     */ | 
				
			|||
	private String indexId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分数 | 
				
			|||
     */ | 
				
			|||
	private Double score; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 社区被吹哨次数:transfered,社区办结项目数:closed_project,社区项目响应度:resp_project_ratio,社区超期项目率:overdue_project_ratio,社区办结项目率:closed_project_ratio,社区办结项目满意度:satisfaction_ratio | 
				
			|||
     */ | 
				
			|||
	private String type; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 删除状态,0正常,1删除 | 
				
			|||
     */ | 
				
			|||
	private Integer delFlag; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 乐观锁 | 
				
			|||
     */ | 
				
			|||
	private Integer revision; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 创建人 | 
				
			|||
     */ | 
				
			|||
	private String createdBy; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 更新人 | 
				
			|||
     */ | 
				
			|||
	private String updatedBy ; | 
				
			|||
 | 
				
			|||
    public FactIndexCommunityGovrnFiveScoreDTO() { | 
				
			|||
        this.agencyId = ""; | 
				
			|||
        this.monthId = ""; | 
				
			|||
        this.quarterId = ""; | 
				
			|||
        this.yearId = ""; | 
				
			|||
        this.indexId = ""; | 
				
			|||
        this.score = 0.00; | 
				
			|||
        this.type = ""; | 
				
			|||
        this.delFlag = 0; | 
				
			|||
        this.revision = 0; | 
				
			|||
        this.createdBy = "APP_USER"; | 
				
			|||
        this.updatedBy = "APP_USER"; | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
@ -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.dto.screen; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 社区相关-党建能力【五级权重】分数表  | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-27 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class FactIndexCommunityPartyFiveScoreDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * id | 
				
			|||
     */ | 
				
			|||
	private String id; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月度ID | 
				
			|||
     */ | 
				
			|||
	private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 指标ID | 
				
			|||
     */ | 
				
			|||
	private String indexId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分数 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal score; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 发文数量:publish_article | 
				
			|||
     */ | 
				
			|||
	private String type; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 删除状态,0正常,1删除 | 
				
			|||
     */ | 
				
			|||
	private Integer delFlag; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 乐观锁 | 
				
			|||
     */ | 
				
			|||
	private Integer revision; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 创建人 | 
				
			|||
     */ | 
				
			|||
	private String createdBy; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 更新人 | 
				
			|||
     */ | 
				
			|||
	private String updatedBy; | 
				
			|||
 | 
				
			|||
    public FactIndexCommunityPartyFiveScoreDTO() { | 
				
			|||
        this.agencyId = ""; | 
				
			|||
        this.monthId = ""; | 
				
			|||
        this.indexId = ""; | 
				
			|||
        this.score = BigDecimal.valueOf(0); | 
				
			|||
        this.type = ""; | 
				
			|||
        this.delFlag = 0; | 
				
			|||
        this.revision = 0; | 
				
			|||
        this.createdBy = "APP_USER"; | 
				
			|||
        this.updatedBy = "APP_USER"; | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,107 @@ | 
				
			|||
/** | 
				
			|||
 * 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.dto.screen; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.Date; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 社区相关分数表  | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-27 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class FactIndexCommunityScoreDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     *  | 
				
			|||
     */ | 
				
			|||
	private String id; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月份ID | 
				
			|||
     */ | 
				
			|||
	private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
	private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
	private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 指标ID | 
				
			|||
     */ | 
				
			|||
	private String indexId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分数 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal score; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 党建能力:party,治理能力:govrn,服务能力:service | 
				
			|||
     */ | 
				
			|||
	private String type; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 删除状态,0正常,1删除 | 
				
			|||
     */ | 
				
			|||
	private Integer delFlag; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 乐观锁 | 
				
			|||
     */ | 
				
			|||
	private Integer revision; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 创建人 | 
				
			|||
     */ | 
				
			|||
	private String createdBy; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 创建时间 | 
				
			|||
     */ | 
				
			|||
	private Date createdTime; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 更新人 | 
				
			|||
     */ | 
				
			|||
	private String updatedBy; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 更新时间 | 
				
			|||
     */ | 
				
			|||
	private Date updatedTime; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,107 @@ | 
				
			|||
/** | 
				
			|||
 * 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.dto.screen; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.Date; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 社区相关-服务能力【五级权重】分数表  | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-27 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class FactIndexCommunityServiceFiveScoreDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     *  | 
				
			|||
     */ | 
				
			|||
	private String id; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月度ID | 
				
			|||
     */ | 
				
			|||
	private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
	private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
	private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 指标ID | 
				
			|||
     */ | 
				
			|||
	private String indexId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分数 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal score; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 社区活动组织次数:activity | 
				
			|||
     */ | 
				
			|||
	private String type; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 删除状态,0正常,1删除 | 
				
			|||
     */ | 
				
			|||
	private Integer delFlag; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 乐观锁 | 
				
			|||
     */ | 
				
			|||
	private Integer revision; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 创建人 | 
				
			|||
     */ | 
				
			|||
	private String createdBy; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 创建时间 | 
				
			|||
     */ | 
				
			|||
	private Date createdTime; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 更新人 | 
				
			|||
     */ | 
				
			|||
	private String updatedBy; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 更新时间 | 
				
			|||
     */ | 
				
			|||
	private Date updatedTime; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,112 @@ | 
				
			|||
/** | 
				
			|||
 * 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.dto.screen; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.Date; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 网格相关分值 | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-28 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class FactIndexGridScoreDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * ID 主键 | 
				
			|||
     */ | 
				
			|||
	private String id; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 客户Id | 
				
			|||
     */ | 
				
			|||
	private String customerId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 网格所属的机关Id | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 网格Id | 
				
			|||
     */ | 
				
			|||
	private String gridId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月维度Id: yyyyMM | 
				
			|||
     */ | 
				
			|||
	private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 总指数分值 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal totalScore; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 党建能力分值 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal partyAblityScore; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 治理能力分值 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal govrnAblityScore; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 服务能力分值 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal serviceAblityScore; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 删除标识 0未删除;1已删除 | 
				
			|||
     */ | 
				
			|||
	private String delFlag; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 乐观锁 | 
				
			|||
     */ | 
				
			|||
	private Integer revision; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 创建人 | 
				
			|||
     */ | 
				
			|||
	private String createdBy; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 创建时间 | 
				
			|||
     */ | 
				
			|||
	private Date createdTime; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 更新人 | 
				
			|||
     */ | 
				
			|||
	private String updatedBy; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 更新时间 | 
				
			|||
     */ | 
				
			|||
	private Date updatedTime; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,45 @@ | 
				
			|||
package com.epmet.dto.screen.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/8/26 1:21 下午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class CommunityGovernAbilityCalculateResultDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 3766218681545581100L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
    private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 上级组织ID | 
				
			|||
     */ | 
				
			|||
    private String parentId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月度ID | 
				
			|||
     */ | 
				
			|||
    private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
    private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
    private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分数 | 
				
			|||
     */ | 
				
			|||
    private Double score; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,68 @@ | 
				
			|||
package com.epmet.dto.screen.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/8/26 11:20 上午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class CommunityGovernAbilityResultDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
    private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 上级组织ID | 
				
			|||
     */ | 
				
			|||
    private String parentId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月度ID | 
				
			|||
     */ | 
				
			|||
    private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
    private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
    private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 社区被吹哨次数 | 
				
			|||
     */ | 
				
			|||
    private Integer transferedCount; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 社区办结项目数 | 
				
			|||
     */ | 
				
			|||
    private Integer closedProjectCount; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 社区项目响应度 | 
				
			|||
     */ | 
				
			|||
    private Double respProjectRatio; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 社区项目超期率 | 
				
			|||
     */ | 
				
			|||
    private Double overDueProjectRatio; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 社区办结项目率 | 
				
			|||
     */ | 
				
			|||
    private Double closedProjectRatio; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 社区办结项目满意度 | 
				
			|||
     */ | 
				
			|||
    private Double satisfactionRatio; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,45 @@ | 
				
			|||
package com.epmet.dto.screen.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/8/26 10:43 上午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class CommunityPublishArticleCountCalculateResultDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 3527690541253204132L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
    private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 上级组织ID | 
				
			|||
     */ | 
				
			|||
    private String parentId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月度ID | 
				
			|||
     */ | 
				
			|||
    private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
    private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
    private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分数 | 
				
			|||
     */ | 
				
			|||
    private Double score; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,54 @@ | 
				
			|||
package com.epmet.dto.screen.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/8/26 10:37 上午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class CommunityPublishArticleCountResultDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = -8260746179353253237L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
    private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 上级组织ID | 
				
			|||
     */ | 
				
			|||
    private String parentId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月度ID | 
				
			|||
     */ | 
				
			|||
    private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
    private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
    private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 发文数 | 
				
			|||
     */ | 
				
			|||
    public Integer publishArticleCount; | 
				
			|||
 | 
				
			|||
    public CommunityPublishArticleCountResultDTO() { | 
				
			|||
        this.agencyId = ""; | 
				
			|||
        this.parentId = ""; | 
				
			|||
        this.monthId = ""; | 
				
			|||
        this.quarterId = ""; | 
				
			|||
        this.yearId = ""; | 
				
			|||
        this.publishArticleCount = 0; | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
@ -0,0 +1,25 @@ | 
				
			|||
package com.epmet.dto.screen.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/8/28 9:51 上午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class MaxAndMinDoubleResultDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = -3927045097012156582L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 最小值 | 
				
			|||
     */ | 
				
			|||
    private Double min; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 最大值 | 
				
			|||
     */ | 
				
			|||
    private Double max; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,25 @@ | 
				
			|||
package com.epmet.dto.screen.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/8/28 9:49 上午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class MaxAndMinIntegerResultDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 5845694081181431599L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 最小值 | 
				
			|||
     */ | 
				
			|||
    private Integer min; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 最大值 | 
				
			|||
     */ | 
				
			|||
    private Integer max; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,47 @@ | 
				
			|||
package com.epmet.dto.screen.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/8/28 3:15 下午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class SubGridPartyAvgResultDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 1592381327492545907L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
    private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 上级组织ID | 
				
			|||
     */ | 
				
			|||
    private String parentId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月度ID | 
				
			|||
     */ | 
				
			|||
    private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
    private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
    private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分数 | 
				
			|||
     */ | 
				
			|||
    private BigDecimal score; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -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.screen; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			|||
import com.epmet.entity.screen.FactIndexCommunityGovrnFiveScoreEntity; | 
				
			|||
import org.apache.ibatis.annotations.Mapper; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 社区相关-治理能力【五级权重】分数表  | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-27 | 
				
			|||
 */ | 
				
			|||
@Mapper | 
				
			|||
public interface FactIndexCommunityGovrnFiveScoreDao extends BaseDao<FactIndexCommunityGovrnFiveScoreEntity> { | 
				
			|||
	 | 
				
			|||
} | 
				
			|||
@ -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.dao.screen; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			|||
import com.epmet.dto.screen.FactIndexCommunityPartyFiveScoreDTO; | 
				
			|||
import com.epmet.entity.screen.FactIndexCommunityPartyFiveScoreEntity; | 
				
			|||
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-08-27 | 
				
			|||
 */ | 
				
			|||
@Mapper | 
				
			|||
public interface FactIndexCommunityPartyFiveScoreDao extends BaseDao<FactIndexCommunityPartyFiveScoreEntity> { | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * @Description  党建能力【社区】中间表插入 | 
				
			|||
     * @param lists | 
				
			|||
     * @author zxc | 
				
			|||
     * @date 2020/8/27 5:05 下午 | 
				
			|||
     */ | 
				
			|||
    void insertCommunityPartyRecord(@Param("lists")List<FactIndexCommunityPartyFiveScoreDTO> lists); | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -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.screen; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			|||
import com.epmet.entity.screen.FactIndexCommunityScoreEntity; | 
				
			|||
import org.apache.ibatis.annotations.Mapper; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 社区相关分数表  | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-27 | 
				
			|||
 */ | 
				
			|||
@Mapper | 
				
			|||
public interface FactIndexCommunityScoreDao extends BaseDao<FactIndexCommunityScoreEntity> { | 
				
			|||
	 | 
				
			|||
} | 
				
			|||
@ -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.screen; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			|||
import com.epmet.entity.screen.FactIndexCommunityServiceFiveScoreEntity; | 
				
			|||
import org.apache.ibatis.annotations.Mapper; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 社区相关-服务能力【五级权重】分数表  | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-27 | 
				
			|||
 */ | 
				
			|||
@Mapper | 
				
			|||
public interface FactIndexCommunityServiceFiveScoreDao extends BaseDao<FactIndexCommunityServiceFiveScoreEntity> { | 
				
			|||
	 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,46 @@ | 
				
			|||
/** | 
				
			|||
 * 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.screen; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			|||
import com.epmet.dto.screen.result.SubGridPartyAvgResultDTO; | 
				
			|||
import com.epmet.entity.screen.FactIndexGridScoreEntity; | 
				
			|||
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-08-28 | 
				
			|||
 */ | 
				
			|||
@Mapper | 
				
			|||
public interface FactIndexGridScoreDao extends BaseDao<FactIndexGridScoreEntity> { | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * @Description  下属所有网格的党建能力平均值 | 
				
			|||
     * @param customerId | 
				
			|||
     * @param monthId | 
				
			|||
     * @author zxc | 
				
			|||
     * @date 2020/8/28 3:20 下午 | 
				
			|||
     */ | 
				
			|||
    List<SubGridPartyAvgResultDTO> selectSubGridPartyAvgScore(@Param("customerId")String customerId,@Param("monthId")String monthId); | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,77 @@ | 
				
			|||
/** | 
				
			|||
 * 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.screen; | 
				
			|||
 | 
				
			|||
import com.baomidou.mybatisplus.annotation.TableName; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; | 
				
			|||
import lombok.Data; | 
				
			|||
import lombok.EqualsAndHashCode; | 
				
			|||
 | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
import java.util.Date; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 社区相关-治理能力【五级权重】分数表  | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-27 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
@EqualsAndHashCode(callSuper=false) | 
				
			|||
@TableName("fact_index_community_govrn_five_score") | 
				
			|||
public class FactIndexCommunityGovrnFiveScoreEntity extends BaseEpmetEntity { | 
				
			|||
 | 
				
			|||
	private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关iD | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月份ID | 
				
			|||
     */ | 
				
			|||
	private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
	private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
	private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 指标ID | 
				
			|||
     */ | 
				
			|||
	private String indexId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分数 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal score; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 社区被吹哨次数:transfered,社区办结项目数:closed_project,社区项目响应度:resp_project_ratio,社区超期项目率:overdue_project_ratio,社区办结项目率:closed_project_ratio,社区办结项目满意度:satisfaction_ratio | 
				
			|||
     */ | 
				
			|||
	private String type; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,77 @@ | 
				
			|||
/** | 
				
			|||
 * 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.screen; | 
				
			|||
 | 
				
			|||
import com.baomidou.mybatisplus.annotation.TableName; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; | 
				
			|||
import lombok.Data; | 
				
			|||
import lombok.EqualsAndHashCode; | 
				
			|||
 | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
import java.util.Date; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 社区相关-党建能力【五级权重】分数表  | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-27 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
@EqualsAndHashCode(callSuper=false) | 
				
			|||
@TableName("fact_index_community_party_five_score") | 
				
			|||
public class FactIndexCommunityPartyFiveScoreEntity extends BaseEpmetEntity { | 
				
			|||
 | 
				
			|||
	private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月度ID | 
				
			|||
     */ | 
				
			|||
	private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
	private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
	private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 指标ID | 
				
			|||
     */ | 
				
			|||
	private String indexId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分数 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal score; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 发文数量:publish_article | 
				
			|||
     */ | 
				
			|||
	private String type; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,77 @@ | 
				
			|||
/** | 
				
			|||
 * 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.screen; | 
				
			|||
 | 
				
			|||
import com.baomidou.mybatisplus.annotation.TableName; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; | 
				
			|||
import lombok.Data; | 
				
			|||
import lombok.EqualsAndHashCode; | 
				
			|||
 | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
import java.util.Date; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 社区相关分数表  | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-27 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
@EqualsAndHashCode(callSuper=false) | 
				
			|||
@TableName("fact_index_community_score") | 
				
			|||
public class FactIndexCommunityScoreEntity extends BaseEpmetEntity { | 
				
			|||
 | 
				
			|||
	private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月份ID | 
				
			|||
     */ | 
				
			|||
	private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
	private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
	private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 指标ID | 
				
			|||
     */ | 
				
			|||
	private String indexId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分数 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal score; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 党建能力:party,治理能力:govrn,服务能力:service | 
				
			|||
     */ | 
				
			|||
	private String type; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,77 @@ | 
				
			|||
/** | 
				
			|||
 * 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.screen; | 
				
			|||
 | 
				
			|||
import com.baomidou.mybatisplus.annotation.TableName; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; | 
				
			|||
import lombok.Data; | 
				
			|||
import lombok.EqualsAndHashCode; | 
				
			|||
 | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
import java.util.Date; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 社区相关-服务能力【五级权重】分数表  | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-27 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
@EqualsAndHashCode(callSuper=false) | 
				
			|||
@TableName("fact_index_community_service_five_score") | 
				
			|||
public class FactIndexCommunityServiceFiveScoreEntity extends BaseEpmetEntity { | 
				
			|||
 | 
				
			|||
	private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 机关ID | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月度ID | 
				
			|||
     */ | 
				
			|||
	private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 季度ID | 
				
			|||
     */ | 
				
			|||
	private String quarterId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 年度ID | 
				
			|||
     */ | 
				
			|||
	private String yearId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 指标ID | 
				
			|||
     */ | 
				
			|||
	private String indexId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分数 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal score; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 社区活动组织次数:activity | 
				
			|||
     */ | 
				
			|||
	private String type; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,82 @@ | 
				
			|||
/** | 
				
			|||
 * 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.screen; | 
				
			|||
 | 
				
			|||
import com.baomidou.mybatisplus.annotation.TableName; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; | 
				
			|||
import lombok.Data; | 
				
			|||
import lombok.EqualsAndHashCode; | 
				
			|||
 | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
import java.util.Date; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 网格相关分值 | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2020-08-28 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
@EqualsAndHashCode(callSuper=false) | 
				
			|||
@TableName("fact_index_grid_score") | 
				
			|||
public class FactIndexGridScoreEntity extends BaseEpmetEntity { | 
				
			|||
 | 
				
			|||
	private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 客户Id | 
				
			|||
     */ | 
				
			|||
	private String customerId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 网格所属的机关Id | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 网格Id | 
				
			|||
     */ | 
				
			|||
	private String gridId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 月维度Id: yyyyMM | 
				
			|||
     */ | 
				
			|||
	private String monthId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 总指数分值 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal totalScore; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 党建能力分值 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal partyAblityScore; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 治理能力分值 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal govrnAblityScore; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 服务能力分值 | 
				
			|||
     */ | 
				
			|||
	private BigDecimal serviceAblityScore; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,32 @@ | 
				
			|||
package com.epmet.service.screen; | 
				
			|||
 | 
				
			|||
import com.epmet.dto.screen.result.CommunityGovernAbilityCalculateResultDTO; | 
				
			|||
import com.epmet.dto.screen.result.CommunityPublishArticleCountCalculateResultDTO; | 
				
			|||
 | 
				
			|||
import java.util.List; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/8/26 10:33 上午 | 
				
			|||
 */ | 
				
			|||
public interface IndexCalculateCommunityService { | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * @Description  社区名义发文数量计算 | 
				
			|||
     * @param customerId | 
				
			|||
     * @param monthId | 
				
			|||
     * @author zxc | 
				
			|||
     * @date 2020/8/26 10:46 上午 | 
				
			|||
     */ | 
				
			|||
    void communityPublishArticleCountCalculate(String customerId, String monthId); | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * @Description  社区治理能力 | 
				
			|||
     * @param customerId | 
				
			|||
     * @param monthId | 
				
			|||
     * @author zxc | 
				
			|||
     * @date 2020/8/26 1:40 下午 | 
				
			|||
     */ | 
				
			|||
    void CommunityGovernAbilityCalculate(String customerId, String monthId); | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,194 @@ | 
				
			|||
package com.epmet.service.screen.impl; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.constant.NumConstant; | 
				
			|||
import com.epmet.commons.tools.page.PageData; | 
				
			|||
import com.epmet.dao.indexcoll.FactIndexGovrnAblityOrgMonthlyDao; | 
				
			|||
import com.epmet.dao.indexcoll.FactIndexPartyAblityCpcMonthlyDao; | 
				
			|||
import com.epmet.dao.indexcoll.FactIndexPartyAblityOrgMonthlyDao; | 
				
			|||
import com.epmet.dao.screen.*; | 
				
			|||
import com.epmet.dto.indexcal.ExtremeValueCommonDTO; | 
				
			|||
import com.epmet.dto.screen.FactIndexCommunityPartyFiveScoreDTO; | 
				
			|||
import com.epmet.dto.screen.result.*; | 
				
			|||
import com.epmet.entity.screen.IndexGroupDetailEntity; | 
				
			|||
import com.epmet.eum.IndexCodeEnum; | 
				
			|||
import com.epmet.service.indexcal.IndexCodeFieldReService; | 
				
			|||
import com.epmet.service.screen.IndexCalculateCommunityService; | 
				
			|||
import com.epmet.service.screen.IndexGroupDetailService; | 
				
			|||
import com.epmet.support.normalizing.Correlation; | 
				
			|||
import com.epmet.support.normalizing.IntegerScoreCalculator; | 
				
			|||
import com.epmet.support.normalizing.ScoreCalculator; | 
				
			|||
import com.epmet.support.normalizing.ScoreConstants; | 
				
			|||
import com.epmet.support.normalizing.batch.BatchScoreCalculator; | 
				
			|||
import com.epmet.support.normalizing.batch.IndexInputVO; | 
				
			|||
import com.epmet.support.normalizing.batch.IndexOutputVO; | 
				
			|||
import com.epmet.support.normalizing.batch.SampleValue; | 
				
			|||
import com.github.pagehelper.Page; | 
				
			|||
import com.github.pagehelper.PageHelper; | 
				
			|||
import io.swagger.models.auth.In; | 
				
			|||
import lombok.extern.slf4j.Slf4j; | 
				
			|||
import org.springframework.beans.BeanUtils; | 
				
			|||
import org.springframework.beans.factory.annotation.Autowired; | 
				
			|||
import org.springframework.stereotype.Service; | 
				
			|||
import org.springframework.transaction.annotation.Transactional; | 
				
			|||
 | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
import java.util.*; | 
				
			|||
import java.util.stream.Collectors; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/8/26 10:34 上午 | 
				
			|||
 */ | 
				
			|||
@Service | 
				
			|||
@Slf4j | 
				
			|||
public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommunityService { | 
				
			|||
 | 
				
			|||
    @Autowired | 
				
			|||
    private FactIndexPartyAblityOrgMonthlyDao factIndexPartyAblityOrgMonthlyDao; | 
				
			|||
    @Autowired | 
				
			|||
    private FactIndexGovrnAblityOrgMonthlyDao factIndexGovrnAblityOrgMonthlyDao; | 
				
			|||
    @Autowired | 
				
			|||
    private IndexGroupDetailService indexGroupDetailService; | 
				
			|||
    @Autowired | 
				
			|||
    private IndexCodeFieldReService indexCodeFieldReService; | 
				
			|||
    @Autowired | 
				
			|||
    private FactIndexCommunityPartyFiveScoreDao factIndexCommunityPartyFiveScoreDao; | 
				
			|||
    @Autowired | 
				
			|||
    private FactIndexGridScoreDao factIndexGridScoreDao; | 
				
			|||
    @Autowired | 
				
			|||
    private FactIndexCommunityServiceFiveScoreDao factIndexCommunityServiceFiveScoreDao; | 
				
			|||
    @Autowired | 
				
			|||
    private FactIndexCommunityGovrnFiveScoreDao factIndexCommunityGovrnFiveScoreDao; | 
				
			|||
    @Autowired | 
				
			|||
    private FactIndexCommunityScoreDao factIndexCommunityScoreDao; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * @Description  社区名义发文数量计算【党建能力】 | 
				
			|||
     * @param customerId | 
				
			|||
     * @author zxc | 
				
			|||
     * @date 2020/8/26 10:46 上午 | 
				
			|||
     */ | 
				
			|||
    @Transactional(rollbackFor = Exception.class) | 
				
			|||
    @Override | 
				
			|||
    public void communityPublishArticleCountCalculate(String customerId, String monthId) { | 
				
			|||
        customerId = "b09527201c4409e19d1dbc5e3c3429a1"; | 
				
			|||
        // 根据all_parent_index_code  获取指标明细
 | 
				
			|||
        List<IndexGroupDetailEntity> detailListByParentCode = indexGroupDetailService.getDetailListByParentCode(customerId, IndexCodeEnum.SHE_QU_XIANG_GUAN.getCode(),IndexCodeEnum.DANG_JIAN_NENG_LI.getCode()); | 
				
			|||
 | 
				
			|||
        List<FactIndexCommunityPartyFiveScoreDTO> subAllGridList = new ArrayList<>(); | 
				
			|||
        List<FactIndexCommunityPartyFiveScoreDTO> communityPublishArticle = new ArrayList<>(); | 
				
			|||
 | 
				
			|||
        // todo 下属所有网格的党建能力平均值
 | 
				
			|||
        String finalCustomerId = customerId; | 
				
			|||
        detailListByParentCode.forEach(indexGroup -> { | 
				
			|||
            if (indexGroup.getIndexCode().equals("xiazhusuoyouwgddjnlpjz")){ | 
				
			|||
                List<SubGridPartyAvgResultDTO> subGridPartyAvgScore = factIndexGridScoreDao.selectSubGridPartyAvgScore(finalCustomerId, monthId); | 
				
			|||
                subGridPartyAvgScore.forEach(subGridParty -> { | 
				
			|||
                    BigDecimal multiply = subGridParty.getScore().multiply(indexGroup.getWeight()); | 
				
			|||
                    subGridParty.setScore(multiply); | 
				
			|||
                    FactIndexCommunityPartyFiveScoreDTO dto = new FactIndexCommunityPartyFiveScoreDTO(); | 
				
			|||
                    BeanUtils.copyProperties(subGridParty,dto); | 
				
			|||
                    dto.setType("sub_all_grid_party_avg"); | 
				
			|||
                    dto.setIndexId(indexGroup.getIndexId()); | 
				
			|||
                    subAllGridList.add(dto); | 
				
			|||
                }); | 
				
			|||
                factIndexCommunityPartyFiveScoreDao.insertCommunityPartyRecord(subAllGridList); | 
				
			|||
            } | 
				
			|||
        }); | 
				
			|||
 | 
				
			|||
        List<CommunityPublishArticleCountResultDTO> publishArticleCounts = factIndexPartyAblityOrgMonthlyDao.selectPublishArticleCount(customerId, monthId); | 
				
			|||
        detailListByParentCode.forEach(indexGroup -> { | 
				
			|||
            if (indexGroup.getIndexCode().equals("shequmingyifwsl")) { | 
				
			|||
                if (publishArticleCounts.size() == NumConstant.ONE) { | 
				
			|||
                    //TODO 计算之后的分数
 | 
				
			|||
                    FactIndexCommunityPartyFiveScoreDTO dto = new FactIndexCommunityPartyFiveScoreDTO(); | 
				
			|||
                    BeanUtils.copyProperties(detailListByParentCode.get(NumConstant.ZERO), dto); | 
				
			|||
                    dto.setScore(BigDecimal.valueOf(50.00)); | 
				
			|||
                    dto.setType("publish_article_count"); | 
				
			|||
                    dto.setIndexId(detailListByParentCode.get(NumConstant.ZERO).getIndexId()); | 
				
			|||
                    communityPublishArticle.add(dto); | 
				
			|||
                    factIndexCommunityPartyFiveScoreDao.insertCommunityPartyRecord(communityPublishArticle); | 
				
			|||
                } else if (publishArticleCounts.size() != NumConstant.ZERO) { | 
				
			|||
                    Integer indexStart = NumConstant.ZERO; | 
				
			|||
                    Integer indexEnd = NumConstant.TEN; | 
				
			|||
                    List<CommunityPublishArticleCountResultDTO> collect; | 
				
			|||
                    MaxAndMinIntegerResultDTO maxAndMinInteger = this.getMaxAndMinInteger(publishArticleCounts.stream().map(CommunityPublishArticleCountResultDTO::getPublishArticleCount).collect(Collectors.toList())); | 
				
			|||
                    do { | 
				
			|||
                        collect = publishArticleCounts.stream().skip(indexEnd * indexStart).limit(indexEnd).collect(Collectors.toList()); | 
				
			|||
                        ScoreCalculator<Integer> sc1 = new IntegerScoreCalculator(maxAndMinInteger.getMin(), maxAndMinInteger.getMax(), ScoreConstants.MIN_SCORE, ScoreConstants.MAX_SCORE, Correlation.POSITIVE); | 
				
			|||
                        List<SampleValue<Integer>> ll = new ArrayList<>(); | 
				
			|||
                        collect.forEach(c -> { | 
				
			|||
                            SampleValue s = new SampleValue(c.getAgencyId(), c.getPublishArticleCount()); | 
				
			|||
                            ll.add(s); | 
				
			|||
                        }); | 
				
			|||
                        IndexInputVO<Integer> index1VO = new IndexInputVO<>(indexGroup.getIndexId(), ll, indexGroup.getWeight(), sc1); | 
				
			|||
                        List<IndexInputVO> indexInputVOS = Arrays.asList(index1VO); | 
				
			|||
                        BatchScoreCalculator batchScoreCalculator = new BatchScoreCalculator(); | 
				
			|||
                        List<IndexOutputVO> result = batchScoreCalculator.exec(indexInputVOS); | 
				
			|||
                         | 
				
			|||
                        indexStart++; | 
				
			|||
                    } while (collect.size() == 10); | 
				
			|||
                } | 
				
			|||
            } | 
				
			|||
        }); | 
				
			|||
 | 
				
			|||
 | 
				
			|||
 | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * @Description  社区治理能力 | 
				
			|||
     * @param customerId | 
				
			|||
     * @param monthId | 
				
			|||
     * @author zxc | 
				
			|||
     * @date 2020/8/26 1:40 下午 | 
				
			|||
     */ | 
				
			|||
    @Transactional(rollbackFor = Exception.class) | 
				
			|||
    @Override | 
				
			|||
    public void CommunityGovernAbilityCalculate(String customerId, String monthId) { | 
				
			|||
        List<CommunityGovernAbilityResultDTO> communityGovernAbility = factIndexGovrnAblityOrgMonthlyDao.selectCommunityGovernAbility(customerId, monthId); | 
				
			|||
        if (communityGovernAbility.size() == NumConstant.ONE){ | 
				
			|||
            List<CommunityGovernAbilityCalculateResultDTO> result = new ArrayList<>(); | 
				
			|||
            CommunityGovernAbilityCalculateResultDTO governAbility = new CommunityGovernAbilityCalculateResultDTO(); | 
				
			|||
            BeanUtils.copyProperties(communityGovernAbility.get(NumConstant.ZERO),governAbility); | 
				
			|||
 | 
				
			|||
            // TODO  计算之后的分数
 | 
				
			|||
 | 
				
			|||
            result.add(governAbility); | 
				
			|||
 | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * @Description  Integer类型获取最大数和最小数 | 
				
			|||
     * @param list | 
				
			|||
     * @author zxc | 
				
			|||
     * @date 2020/8/27 1:30 下午 | 
				
			|||
     */ | 
				
			|||
    public MaxAndMinIntegerResultDTO getMaxAndMinInteger(List<Integer> list){ | 
				
			|||
        Integer max = Collections.max(list); | 
				
			|||
        Integer min = Collections.min(list); | 
				
			|||
        MaxAndMinIntegerResultDTO result = new MaxAndMinIntegerResultDTO(); | 
				
			|||
        result.setMax(max); | 
				
			|||
        result.setMin(min); | 
				
			|||
        return result; | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * @Description  Double类型获取最大数和最小数 | 
				
			|||
     * @param list | 
				
			|||
     * @author zxc | 
				
			|||
     * @date 2020/8/27 1:32 下午 | 
				
			|||
     */ | 
				
			|||
    public MaxAndMinDoubleResultDTO getMaxAndMinDouble(List<Double> list){ | 
				
			|||
        Double max = Collections.max(list); | 
				
			|||
        Double min = Collections.min(list); | 
				
			|||
        MaxAndMinDoubleResultDTO result = new MaxAndMinDoubleResultDTO(); | 
				
			|||
        result.setMax(max); | 
				
			|||
        result.setMin(min); | 
				
			|||
        return result; | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,6 @@ | 
				
			|||
<?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.screen.FactIndexCommunityGovrnFiveScoreDao"> | 
				
			|||
 | 
				
			|||
</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.dao.screen.FactIndexCommunityPartyFiveScoreDao"> | 
				
			|||
 | 
				
			|||
    <!-- 党建能力【社区】中间表插入 --> | 
				
			|||
    <insert id="insertCommunityPartyRecord"> | 
				
			|||
        INSERT INTO fact_index_community_party_five_score ( ID, AGENCY_ID, MONTH_ID, INDEX_ID, SCORE, TYPE, DEL_FLAG, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME ) | 
				
			|||
        VALUES | 
				
			|||
        <foreach collection="lists" item="item" separator=","> | 
				
			|||
            ( | 
				
			|||
            REPLACE ( UUID(), '-', '' ), | 
				
			|||
            #{item.agencyId}, | 
				
			|||
            #{item.monthId}, | 
				
			|||
            #{item.indexId}, | 
				
			|||
            #{item.score}, | 
				
			|||
            #{item.type}, | 
				
			|||
            #{item.delFlag}, | 
				
			|||
            #{item.revision}, | 
				
			|||
            #{item.createdBy}, | 
				
			|||
            NOW(), | 
				
			|||
            #{item.updatedBy}, | 
				
			|||
            NOW() | 
				
			|||
            ) | 
				
			|||
        </foreach> | 
				
			|||
    </insert> | 
				
			|||
</mapper> | 
				
			|||
@ -0,0 +1,6 @@ | 
				
			|||
<?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.screen.FactIndexCommunityScoreDao"> | 
				
			|||
 | 
				
			|||
</mapper> | 
				
			|||
@ -0,0 +1,6 @@ | 
				
			|||
<?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.screen.FactIndexCommunityServiceFiveScoreDao"> | 
				
			|||
 | 
				
			|||
</mapper> | 
				
			|||
@ -0,0 +1,20 @@ | 
				
			|||
<?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.screen.FactIndexGridScoreDao"> | 
				
			|||
 | 
				
			|||
    <!-- 下属所有网格的党建能力平均值 --> | 
				
			|||
    <select id="selectSubGridPartyAvgScore" resultType="com.epmet.dto.screen.result.SubGridPartyAvgResultDTO"> | 
				
			|||
        SELECT | 
				
			|||
            agency_id, | 
				
			|||
            month_id, | 
				
			|||
            AVG( party_ablity_score ) AS score | 
				
			|||
        FROM | 
				
			|||
            fact_index_grid_score | 
				
			|||
        WHERE | 
				
			|||
            del_flag = '0' | 
				
			|||
            AND customer_id = #{customerId} | 
				
			|||
            AND month_id = #{monthId} | 
				
			|||
            GROUP BY agency_id | 
				
			|||
    </select> | 
				
			|||
</mapper> | 
				
			|||
					Loading…
					
					
				
		Reference in new issue