| | |
| | | import com.smartor.domain.VO.ServiceSubtaskCotinueCountVO; |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | | import com.smartor.domain.entity.ServiceSubtaskSatisfactionEntity; |
| | | import com.smartor.domain.entity.SatisfactionStatQuery; |
| | | import org.apache.ibatis.annotations.MapKey; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | * xsf: 需随访数量 sendstate = 4 |
| | | * dsf: 待随访数量 sendstate = 1L, 2L, 3L, 5L, 7L |
| | | * ywc: 已完成数量 sendstate = 6L |
| | | * dfs: 待发送数量 sendstate = 1L, 3L, 4L, 5L, 6L, 7L |
| | | * yfs: 已发送数量 sendstate = 2L |
| | | * yc: 异常数量 excep = '1' |
| | | * yc: 警告数量 excep = '2' |
| | | */ |
| | |
| | | List<Long> querySendCount(ServiceSubtaskSatisfactionEntity serviceSubtaskSatisfactionEntity); |
| | | |
| | | /** |
| | | * 满意度柱状图:一次性统计本次请求全部模板的发送量(按 libtemplateid 分组) |
| | | * <p> |
| | | * 替代逐个模板调用 querySendCount 的 N+1 写法,见 PatSatisfactionServiceImpl#satisfactionGraph |
| | | * |
| | | * @param query 聚合查询条件 |
| | | * @return 每行含 libtemplateid、cnt |
| | | */ |
| | | List<Map<String, Object>> selectSatisfactionSendCount(SatisfactionStatQuery query); |
| | | |
| | | /** |
| | | * 满意度统计:只查本次条件下实际存在哪些 type(1 语音 / 2 问卷) |
| | | * <p> |
| | | * 替代 selectSatisfactionSubtaskList —— 原方法会把接近全表的上百个字段查回来, |
| | | * 调用方却只用它判断「语音分支/问卷分支是否为空」,见 |
| | | * PatSatisfactionServiceImpl#statistics / #statisticsByDimension |
| | | * |
| | | * @param patSatisfactionReqVO 查询条件(与原 selectSatisfactionSubtaskList 完全一致) |
| | | * @return 去重后的 type 列表(可能含 null) |
| | | */ |
| | | List<String> selectSatisfactionSubtaskTypes(PatSatisfactionReqVO patSatisfactionReqVO); |
| | | |
| | | /** |
| | | * 按病区分组统计延续护理数量 |
| | | * |
| | | * @param vo 查询条件 |