| | |
| | | * taskSituation5Info - taskSituation = 5 |
| | | * taskSituation6Info - taskSituation = 7 |
| | | * manuallyCalledInfo - isManuallyCalled = 1L |
| | | * manualCallTimeoutInfo - visitCount = 1 && sendstate = 7 && isManuallyCalled = 0 |
| | | * manualCallTimeoutAgainInfo - visitCount > 1 && sendstate = 7 && isManuallyCalled = 0 |
| | | * pendingFollowUpAllInfo - visitCount = 1 && sendstate in (1,2,3,7) |
| | | * pendingFollowUpAllAgainInfo - visitCount > 1 && sendstate in (1,2,3,7) |
| | | * pendingFollowUpWaitSendInfo - visitCount = 1 && sendstate in (1,2) |
| | | * pendingFollowUpWaitSendAgainInfo - visitCount > 1 && sendstate in (1,2) |
| | | * pendingFollowUpSentInfo - visitCount = 1 && sendstate in (3,7) |
| | | * pendingFollowUpSentAgainInfo - visitCount > 1 && sendstate in (3,7) |
| | | * sentInfo - visitCount = 1 && sendstate = 3 |
| | | * sentAgainInfo - visitCount > 1 && sendstate = 3 |
| | | * firstDischargeCountInfo - visitCount = 1 |
| | | * againFollowUpPushCountInfo - visitCount = 2 && visitDeptCode = sys.smartor.center.dept |
| | | * filterCountList - taskSituation = 6 && sendstate = 4 |
| | |
| | | log.error(logInfo); |
| | | return error(logInfo); |
| | | } |
| | | // 分类统计为汇总结果,不参与分页;同时避免 pageNum/pageSize 影响分组 key 的收集。 |
| | | serviceSubtaskCountReq.setPageNum(null); |
| | | serviceSubtaskCountReq.setPageSize(null); |
| | | List<ServiceSubtaskStatistic> serviceSubtaskStatistics = serviceSubtaskService.getSfStatisticsScript(serviceSubtaskCountReq); |
| | | return success(serviceSubtaskStatistics); |
| | | } |
| | |
| | | return ajax; |
| | | } |
| | | |
| | | @ApiOperation("获取随访分类统计明细详情超链接") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/getSfStatisticsCountDetailsHyperLink") |
| | | public AjaxResult getSfStatisticsCountDetailsHyperLink(@RequestBody ServiceSubtaskCountReq serviceSubtaskCountReq) { |
| | | Integer statisticaltype = serviceSubtaskCountReq.getStatisticaltype(); |
| | | if (statisticaltype != null && statisticaltype != 1 && statisticaltype != 2 && statisticaltype != 3) { |
| | | return error("统计维度statisticaltype仅支持:1-按病区 2-按科室 3-按taskid"); |
| | | } |
| | | if (serviceSubtaskCountReq.getScriptid() == null |
| | | && StringUtils.isEmpty(serviceSubtaskCountReq.getScriptContent())) { |
| | | return error("问题ID(scriptid)不能为空"); |
| | | } |
| | | if (serviceSubtaskCountReq.getOptionText() == null) { |
| | | return error("问题选项(optionText)不能为空"); |
| | | } |
| | | |
| | | LoginUser loginUser = getLoginUser(); |
| | | String orgid = loginUser.getUser().getOrgid(); |
| | | serviceSubtaskCountReq.setOrgid(orgid); |
| | | |
| | | // 与 getSfStatisticsCountDetails 保持相同的配置筛选口径 |
| | | String configKey = serviceSubtaskCountReq.getConfigKey(); |
| | | if (StringUtils.isNotEmpty(configKey)) { |
| | | String configValue = configService.selectConfigByKey(configKey, orgid); |
| | | serviceSubtaskCountReq.setConfigValue(configValue); |
| | | if (StringUtils.isEmpty(configValue)) { |
| | | String logInfo = "getSfStatisticsCountDetailsHyperLink-参数 " + configKey + " 未配置, 请配置好后重试"; |
| | | log.error(logInfo); |
| | | return error(logInfo); |
| | | } |
| | | } |
| | | |
| | | return success(serviceSubtaskService.getSfStatisticsScriptDetailsHyperlink(serviceSubtaskCountReq)); |
| | | } |
| | | /** |
| | | * 发送短信模板 |
| | | */ |