陈昶聿
9 天以前 af3ec57db40f80fba5903aaedae5e66bf46a7ed9
smartor/src/main/java/com/smartor/mapper/ServiceSubtaskMapper.java
@@ -68,6 +68,23 @@
    public int insertServiceSubtask(ServiceSubtask ServiceSubtask);
    /**
     * 任务组(appltype=5):统计某一轮次内仍在运行的 subtask 数量。
     * 仍在运行 = sendstate in (1,2,3) 且未删除。
     * 用于判断本轮是否已全部 finalize(成功/失败/不执行/超时)。
     *
     * @param scheduleId 计划主键
     * @param loopCount  轮次(0=首轮)
     */
    public int countActiveByScheduleIdAndLoop(@Param("scheduleId") Long scheduleId,
                                              @Param("loopCount") Long loopCount);
    /**
     * 任务组(appltype=5):拉取某一轮次的全部 subtask(用于克隆到下一轮)。
     */
    public List<ServiceSubtask> selectByScheduleIdAndLoop(@Param("scheduleId") Long scheduleId,
                                                          @Param("loopCount") Long loopCount);
    /**
     * 随访及时率:应随访时间<实际随访时间
     *
     * @param ServiceSubtask
@@ -126,6 +143,8 @@
    public List<ServiceSubtask> getSfStatistics(ServiceSubtaskCountReq serviceSubtaskCountReq);
    public List<ServiceSubtaskStatistic> getSpecialSfStatistics(ServiceSubtaskCountReq serviceSubtaskCountReq);
    public List<ServiceSubtask> getSfStatisticsHyperlink(ServiceSubtaskCountReq serviceSubtaskCountReq);
    public List<String> getSfStatisticsGroupKey(ServiceSubtaskCountReq serviceSubtaskCountReq);
@@ -166,13 +185,13 @@
     *
     * @param serviceSubtaskVO 查询条件
     * @return Map<String, Object> 包含各状态统计数据
     * wzx: 未执行数量
     * ysf: 已随访数量
     * fssb: 发送失败数量
     * yfs: 已发送数量
     * dsf: 待随访数量
     * blq: 不理睬数量
     * yc: 异常数量
     * total: 患者服务总量
     * wxsf: 无需随访数量 sendstate != 4
     * xsf: 需随访数量 sendstate = 4
     * dsf: 待随访数量 sendstate = 1L, 2L, 3L, 5L, 7L
     * ywc: 已完成数量 sendstate = 6L
     * yc: 异常数量 excep = '1'
     * yc: 警告数量 excep = '2'
     */
    public Map<String, Object> countByCondition(ServiceSubtaskEntity serviceSubtaskVO);