| | |
| | | return success(serviceSubtaskService.getSfStatisticsJoydetails(serviceSubtaskCountReq)); |
| | | } |
| | | |
| | | /** |
| | | * 获取随访分类统计明细 |
| | | */ |
| | | @ApiOperation("获取随访分类统计明细") |
| | | @PostMapping("/getSfStatisticsCount") |
| | | public Map<String, Object> getSfStatisticsCount(@RequestBody ServiceSubtaskCountReq serviceSubtaskCountReq) { |
| | | if (CollectionUtils.isEmpty(serviceSubtaskCountReq.getServiceType())) { |
| | | return error("服务类型不能为空"); |
| | | } |
| | | String configKey = serviceSubtaskCountReq.getConfigKey(); |
| | | if(StringUtils.isNotEmpty(configKey)){ |
| | | String configValue = configService.selectConfigByKey(configKey); |
| | | serviceSubtaskCountReq.setConfigValue(configValue); |
| | | if(StringUtils.isEmpty(configValue)){ |
| | | String logInfo = "getSfStatisticsCount-参数 " + configKey + " 未配置, 请配置好后重试"; |
| | | log.error(logInfo); |
| | | return error(logInfo); |
| | | } |
| | | }else { |
| | | String logInfo = "getSfStatisticsCount-参数configKey未传入, 请配置好后重试"; |
| | | log.error(logInfo); |
| | | return error(logInfo); |
| | | } |
| | | return success(serviceSubtaskService.getSfStatisticsScript(serviceSubtaskCountReq)); |
| | | } |
| | | |
| | | @ApiOperation("获取随访分类统计明细详情") |
| | | @PostMapping("/getSfStatisticsCountDetails") |
| | | public AjaxResult getSfStatisticsCountDetails(@RequestBody ServiceSubtaskCountReq serviceSubtaskCountReq) { |
| | | if (serviceSubtaskCountReq.getLeavehospitaldistrictcodes().size() == 0 && serviceSubtaskCountReq.getDeptcodes().size() == 0) { |