| | |
| | | return toAjax(serviceSubtaskService.updateServiceSubtask(serviceSubtask)); |
| | | } |
| | | |
| | | @ApiOperation("修改子任务模板") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/updateTemplate") |
| | | public AjaxResult updateTemplate(@RequestBody ServiceSubtaskTemplateVO serviceSubtaskTemplateVO) { |
| | | serviceSubtaskTemplateVO.setUpdateBy(getLoginUser().getUser().getNickName()); |
| | | return toAjax(serviceSubtaskService.updateTemplate(serviceSubtaskTemplateVO)); |
| | | } |
| | | |
| | | @ApiOperation("新增子任务") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/addSubTask") |
| | |
| | | return success(serviceStatistics); |
| | | } |
| | | |
| | | /** |
| | | * 随访异常统计导出-废案 暂时不使用 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:taskcall:export')") |
| | | @Log(title = "随访统计导出", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/getSfStatisticsIsAbnormalExport") |
| | | public void getSfStatisticsIsAbnormalExport(HttpServletResponse response, ServiceSubtaskCountReq serviceSubtaskCountReq) { |
| | | List<ServiceSubtaskIsAbnormalStatistic> sfStatistics = serviceSubtaskService.getSfStatisticsIsAbnormalExport(serviceSubtaskCountReq); |
| | | ExcelUtil<ServiceSubtaskIsAbnormalStatistic> util = new ExcelUtil<ServiceSubtaskIsAbnormalStatistic>(ServiceSubtaskIsAbnormalStatistic.class); |
| | | String sheetName = ""; |
| | | String fileName = ""; |
| | | if (active.equals("ls") || active.equals("druid")) { |
| | | fileName = sheetName = LocalDate.now().getMonthValue() + "月出院随访异常统计表"; |
| | | util.exportExcelWithFileName(response, sfStatistics, sheetName, fileName); |
| | | } else { |
| | | sheetName = "随访异常统计导出"; |
| | | util.exportExcel(response, sfStatistics, sheetName); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取随访统计比例 |
| | |
| | | |
| | | @PostMapping("/test") |
| | | public void test() { |
| | | ryTask.longTaskSend(); |
| | | ryTask.dealOutHospInfo(); |
| | | } |
| | | } |