广州市综治平台后端
文锦钊
6 days ago 6167697418a398b0ff5c8f65ca992275a445bd27
feature:能效分析添加事项状态选择
3 files modified
33 ■■■■■ changed files
dyh-service/dyh-mediate/src/main/java/cn/huge/module/analysis/controller/AnalysisWebController.java 5 ●●●●● patch | view | raw | blame | history
dyh-service/dyh-mediate/src/main/java/cn/huge/module/analysis/dao/mapper/xml/AnalysisMapper.xml 22 ●●●●● patch | view | raw | blame | history
dyh-service/dyh-mediate/src/main/java/cn/huge/module/analysis/domain/dto/StatisticsGroupDTO.java 6 ●●●●● patch | view | raw | blame | history
dyh-service/dyh-mediate/src/main/java/cn/huge/module/analysis/controller/AnalysisWebController.java
@@ -208,6 +208,11 @@
        if (StringUtils.isNotBlank(taskStatus)){
            terms.put("taskStatus", taskStatus);
        }
        //事项状态(待分配、待受理、化解中、已归档和不予受理)
        String infoStatus = request.getParameter("infoStatus");
        if (StringUtils.isNotBlank(infoStatus)){
            terms.put("infoStatus", infoStatus);
        }
        return terms;
    }
    /**
dyh-service/dyh-mediate/src/main/java/cn/huge/module/analysis/dao/mapper/xml/AnalysisMapper.xml
@@ -103,6 +103,10 @@
                and t1.id in(${terms.unitIds})
            </if>
            <if test="terms.infoStatus != null and terms.infoStatus !=''">
                and t3.status = #{terms.infoStatus}
            </if>
        </if>
    </sql>
@@ -159,6 +163,9 @@
            count(case when (t2.node_id = 'ZJ_DSL' or t2.node_id = 'QJ_DSL' or t2.node_id = 'SJ_DSL' or t2.node_id = 'DSL')
            and ((t2.overtime_status = 1 and t2.status = 2)) then t2.id end) as
            slcs
            count(case when (t2.node_id = 'BLFK')
            and ((t2.overtime_status = 1 and t2.status = 2) or (sysdate > expire_time and t2.status = 1)) then t2.id end) as
            blcs
        </if>
        <if test="terms.taskStatus != null and terms.taskStatus == 0">
            count(case when (t2.node_id = 'ZJ_DFP' or t2.node_id = 'QJ_DFP' or t2.node_id = 'SJ_DFP' or t2.node_id = 'DFP')
@@ -167,6 +174,9 @@
            count(case when (t2.node_id = 'ZJ_DSL' or t2.node_id = 'QJ_DSL' or t2.node_id = 'SJ_DSL' or t2.node_id = 'DSL')
            and ((sysdate > expire_time and t2.status = 1)) then t2.id end) as
            slcs
            count(case when (t2.node_id = 'BLFK')
            and ((t2.overtime_status = 1 and t2.status = 2) or (sysdate > expire_time and t2.status = 1)) then t2.id end) as
            blcs
        </if>
        <if test="terms.taskStatus == null or terms.taskStatus ==''">
            count(case when (t2.node_id = 'ZJ_DFP' or t2.node_id = 'QJ_DFP' or t2.node_id = 'SJ_DFP' or t2.node_id = 'DFP')
@@ -175,6 +185,9 @@
            count(case when (t2.node_id = 'ZJ_DSL' or t2.node_id = 'QJ_DSL' or t2.node_id = 'SJ_DSL' or t2.node_id = 'DSL')
            and ((t2.overtime_status = 1 and t2.status = 2) or (sysdate > expire_time and t2.status = 1)) then t2.id end) as
            slcs
            count(case when (t2.node_id = 'BLFK')
            and ((t2.overtime_status = 1 and t2.status = 2) or (sysdate > expire_time and t2.status = 1)) then t2.id end) as
            blcs
        </if>
@@ -242,6 +255,9 @@
        </if>
        <if test="terms.unitIds != null and terms.unitIds !=''">
            and t1.id in(${terms.unitIds})
        </if>
        <if test="terms.infoStatus != null and terms.infoStatus !=''">
            and t3.status = #{terms.infoStatus}
        </if>
    </sql>
@@ -403,6 +419,9 @@
        </if>
        <if test="terms.unitIds != null and terms.unitIds !=''">
            and t1.id in(${terms.unitIds})
        </if>
        <if test="terms.infoStatus != null and terms.infoStatus !=''">
            and t3.status = #{terms.infoStatus}
        </if>
    </sql>
@@ -883,6 +902,9 @@
                and (t2.close_time <![CDATA[ >= ]]> #{terms.closeStart}
                and t2.close_time <![CDATA[ <= ]]> #{terms.closeEnd})
            </if>
            <if test="terms.infoStatus != null and terms.infoStatus !=''">
                and t3.status = #{terms.infoStatus}
            </if>
        </if>
    </sql>
dyh-service/dyh-mediate/src/main/java/cn/huge/module/analysis/domain/dto/StatisticsGroupDTO.java
@@ -25,6 +25,11 @@
    private int dbcs;
    /**
     * 办理超时数量
     */
    private int blcs;
    /**
     * 算总和
     */
    public int getTotal() {
@@ -32,6 +37,7 @@
        total += fpcs;
        total += slcs;
        total += dbcs;
        total += blcs;
        return total;
    }
}