陈昶聿
14 小时以前 2d42d335a0abdabf02601b63b85dda82f5b0781b
【丽水】新增再次随访 回院复诊复查 统计
已修改9个文件
63 ■■■■■ 文件已修改
smartor/src/main/java/com/smartor/domain/ServiceSubtask.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/ServiceSubtaskCountReq.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/ServiceSubtaskExportVO.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/ServiceSubtaskRes.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/ServiceSubtaskStatistic.java 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/VO/ServiceSubtaskVO.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/entity/ServiceSubtaskEntity.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/ServiceSubtask.java
@@ -178,10 +178,10 @@
    private String templatename;
    /**
     * 发处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访送UUID
     * 发处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访送UUID、6回院复诊复查
     */
    @Excel(name = " 处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访 ")
    @ApiModelProperty(value = "处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访")
    @Excel(name = " 处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访、6回院复诊复查 ")
    @ApiModelProperty(value = "处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访、6回院复诊复查")
    private String suggest;
    /**
smartor/src/main/java/com/smartor/domain/ServiceSubtaskCountReq.java
@@ -165,6 +165,12 @@
    private String excep;
    /**
     * 处理意见编码 - 超链接统计
     */
    @ApiModelProperty(value = "处理意见编码")
    private String suggest;
    /**
     * 完成时状态 - 超链接统计(1-正常完成 2-延期完成 3-超时完成)
     */
    @ApiModelProperty(value = "完成时状态:1正常完成 2延期完成 3超时完成")
smartor/src/main/java/com/smartor/domain/ServiceSubtaskExportVO.java
@@ -157,10 +157,10 @@
    private String templatename;
    /**
     * 发处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访送UUID
     * 发处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访送UUID、6回院复诊复查
     */
    @Excel(name = " 处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访 ")
    @ApiModelProperty(value = "处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访")
    @Excel(name = " 处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访、6回院复诊复查 ")
    @ApiModelProperty(value = "处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访、6回院复诊复查")
    private String suggest;
    /**
smartor/src/main/java/com/smartor/domain/ServiceSubtaskRes.java
@@ -190,10 +190,10 @@
    private String templatename;
    /**
     * 发处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访送UUID
     * 发处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访送UUID、6回院复诊复查
     */
    @Excel(name = " 处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访 ")
    @ApiModelProperty(value = "处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访")
    @Excel(name = " 处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访、6回院复诊复查 ")
    @ApiModelProperty(value = "处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访、6回院复诊复查")
    private String suggest;
    /**
smartor/src/main/java/com/smartor/domain/ServiceSubtaskStatistic.java
@@ -322,6 +322,10 @@
    @Excel(name = " 二次随访失败 ")
    private Long followUpFailAgain = 0L;
    @ApiModelProperty(value = "再次随访回院复诊复查(suggest=6)")
    @Excel(name = " 再次随访回院复诊复查 ")
    private Long suggest6CountAgain = 0L;
    @ApiModelProperty(value = "二次随访率")
    @Excel(name = " 二次随访率 ")
    private String followUpRateAgain;
smartor/src/main/java/com/smartor/domain/VO/ServiceSubtaskVO.java
@@ -79,10 +79,10 @@
    private String senduuid;
    /**
     * 发处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访送UUID
     * 发处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访送UUID、6回院复诊复查
     */
    @Excel(name = " 处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访 ")
    @ApiModelProperty(value = "处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访")
    @Excel(name = " 处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访、6回院复诊复查 ")
    @ApiModelProperty(value = "处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访、6回院复诊复查")
    private String suggest;
    /**
smartor/src/main/java/com/smartor/domain/entity/ServiceSubtaskEntity.java
@@ -84,10 +84,10 @@
    private String senduuid;
    /**
     * 发处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访送UUID
     * 发处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访送UUID、6回院复诊复查
     */
    @Excel(name = " 处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访 ")
    @ApiModelProperty(value = "处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访")
    @Excel(name = " 处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访、6回院复诊复查 ")
    @ApiModelProperty(value = "处理意见:1暂不处理、2通知就诊、3病情稳定、4人工随访、5失访、6回院复诊复查")
    private String suggest;
    /**
smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java
@@ -4101,13 +4101,20 @@
    }
    /**
     * 市一统计口径:再次待随访、已发送及人工电话超时。
     * 再次随访附加统计:待随访、已发送、人工电话超时及回院复诊复查(suggest=6)。
     */
    private void applyAgainFollowUpExtraStatistics(ServiceSubtaskStatistic statistic, ServiceSubtask serviceSubtask) {
        if (serviceSubtask.getVisitCount() == null || serviceSubtask.getVisitCount() <= 1 || serviceSubtask.getSendstate() == null) {
        if (serviceSubtask.getVisitCount() == null || serviceSubtask.getVisitCount() <= 1) {
            return;
        }
        if (serviceSubtask.getSendstate() == null) {
            return;
        }
        Long sendstate = serviceSubtask.getSendstate();
        // 回院复诊复查:再次随访中按处理意见 suggest=6 统计
        if (StringUtils.equals("6", StringUtils.trim(serviceSubtask.getSuggest()))) {
            statistic.setSuggest6CountAgain(statistic.getSuggest6CountAgain() + 1L);
        }
        if (sendstate.equals(3L)) {
            statistic.setSentAgain(statistic.getSentAgain() + 1L);
        }
@@ -4913,6 +4920,7 @@
     * pendingFollowUpSentAgainInfo - visitCount > 1 && sendstate in (3,7)
     * sentInfo - visitCount = 1 && sendstate = 3
     * sentAgainInfo - visitCount > 1 && sendstate = 3
     * suggest6CountAgainInfo - visitCount > 1 && suggest = 6
     * filterCountList - taskSituation = 6 && sendstate = 4
     *
     */
@@ -4953,6 +4961,7 @@
        serviceSubtaskCountReq.setExcep(null);
        serviceSubtaskCountReq.setTaskSituation(null);
        serviceSubtaskCountReq.setFinishState(null);
        serviceSubtaskCountReq.setSuggest(null);
        switch (hyperLinkInfoType) {
            case "dischargeCountInfo":
@@ -5095,6 +5104,11 @@
            case "abnormalAgainInfo":
                serviceSubtaskCountReq.setVisitCount(2);
                serviceSubtaskCountReq.setExcep("1");
                break;
            case "suggest6CountAgainInfo":
                // 再次随访回院复诊复查:visitCount > 1 且 suggest = 6
                serviceSubtaskCountReq.setVisitCount(2);
                serviceSubtaskCountReq.setSuggest("6");
                break;
            case "taskSituation1Info":
                serviceSubtaskCountReq.setTaskSituation(1);
@@ -5536,6 +5550,7 @@
        total.setSentAgain(0L);
        total.setFollowUpSuccessAgain(0L);
        total.setFollowUpFailAgain(0L);
        total.setSuggest6CountAgain(0L);
        total.setManualAgain(0L);
        total.setSmsAgain(0L);
        total.setWeChatAgain(0L);
@@ -5580,6 +5595,7 @@
            total.setSentAgain(total.getSentAgain() + (stat.getSentAgain() != null ? stat.getSentAgain() : 0L));
            total.setFollowUpSuccessAgain(total.getFollowUpSuccessAgain() + (stat.getFollowUpSuccessAgain() != null ? stat.getFollowUpSuccessAgain() : 0L));
            total.setFollowUpFailAgain(total.getFollowUpFailAgain() + (stat.getFollowUpFailAgain() != null ? stat.getFollowUpFailAgain() : 0L));
            total.setSuggest6CountAgain(total.getSuggest6CountAgain() + (stat.getSuggest6CountAgain() != null ? stat.getSuggest6CountAgain() : 0L));
            total.setManualAgain(total.getManualAgain() + (stat.getManualAgain() != null ? stat.getManualAgain() : 0L));
            total.setSmsAgain(total.getSmsAgain() + (stat.getSmsAgain() != null ? stat.getSmsAgain() : 0L));
            total.setWeChatAgain(total.getWeChatAgain() + (stat.getWeChatAgain() != null ? stat.getWeChatAgain() : 0L));
smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
@@ -2114,6 +2114,9 @@
        <if test="isManuallyCalled != null">
            AND is_manually_called = #{isManuallyCalled}
        </if>
        <if test="suggest != null and suggest != ''">
            AND TRIM(suggest) = #{suggest}
        </if>
        order by endtime desc
        <if test="pageSize != null  and pageNum != null">
            limit ${pageSize} OFFSET ${pageNum}