| | |
| | | * 查询患者随访信息 |
| | | */ |
| | | @ApiOperation("查询患者随访信息") |
| | | @PreAuthorize("@ss.hasPermi('system:taskcall:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:taskcall:list')") |
| | | @PostMapping("/patItem") |
| | | public TableDataInfo patItem(@RequestBody ServiceSubtask ivrTaskcall) { |
| | | PageUtils.startPageByPost(ivrTaskcall.getPageNum(), ivrTaskcall.getPageSize()); |
| | |
| | | /** |
| | | * 导出单一任务(随访宣教)列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:taskcall:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:taskcall:export')") |
| | | @Log(title = "单一任务(随访宣教)", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceSubtask ivrTaskcall) { |
| | | List<ServiceSubtask> list = serviceSubtaskService.selectServiceSubtaskList(ivrTaskcall); |
| | | public void export(HttpServletResponse response, ServiceSubtask serviceSubtask) { |
| | | ServiceSubtaskVO serviceSubtaskVO = DtoConversionUtils.sourceToTarget(serviceSubtask, ServiceSubtaskVO.class); |
| | | List<ServiceSubtask> list = serviceSubtaskService.selectServiceSubtaskList(serviceSubtaskVO); |
| | | ExcelUtil<ServiceSubtask> util = new ExcelUtil<ServiceSubtask>(ServiceSubtask.class); |
| | | util.exportExcel(response, list, "单一任务(随访)数据"); |
| | | } |
| | |
| | | /** |
| | | * 获取单一任务(随访)详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:taskcall:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:taskcall:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(serviceSubtaskService.selectServiceSubtaskById(id)); |
| | |
| | | * 新增或修改删除单一任务 |
| | | */ |
| | | @ApiOperation("新增或修改删除单一任务") |
| | | @PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | @Log(title = "单一任务(随访)", businessType = BusinessType.INSERT) |
| | | @PostMapping("/insertOrUpdateTask") |
| | | public AjaxResult insertOrUpdateHeTask(@RequestBody ServiceTaskVO ivrTaskVO) { |
| | |
| | | return toAjax(serviceSubtaskService.insertOrUpdateTask(ivrTaskVO)); |
| | | } |
| | | |
| | | @ApiOperation("修改子任务") |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody ServiceSubtask serviceSubtask) { |
| | | return toAjax(serviceSubtaskService.updateServiceSubtask(serviceSubtask)); |
| | | } |
| | | |
| | | /** |
| | | * 根据条件查询任务信息 |
| | | */ |
| | |
| | | @PostMapping("/queryTaskByCondition") |
| | | public AjaxResult queryTaskByCondition(@RequestBody ServiceSubtaskVO ivrTaskcallVO) { |
| | | //根据入参查询信息 |
| | | ServiceSubtask ivrTaskcall = DtoConversionUtils.sourceToTarget(ivrTaskcallVO, ServiceSubtask.class); |
| | | ServiceTaskVO ivrTaskVO = serviceSubtaskService.queryTaskByCondition(ivrTaskcall); |
| | | ServiceSubtask serviceSubtask = DtoConversionUtils.sourceToTarget(ivrTaskcallVO, ServiceSubtask.class); |
| | | ServiceTaskVO ivrTaskVO = serviceSubtaskService.queryTaskByCondition(serviceSubtask); |
| | | return success(ivrTaskVO); |
| | | } |
| | | |
| | |
| | | return toAjax(serviceSubtaskService.saveQuestionAnswerPhone(serviceSubTaskDetailReq)); |
| | | } |
| | | |
| | | /** |
| | | * 获取每个月的随访、复诊量 |
| | | */ |
| | | @ApiOperation("获取每个月的随访、复诊量") |
| | | @PostMapping("/getSfFzInfoEveryMonth") |
| | | public TableDataInfo getSfFzInfoEveryMonth(@RequestBody ServiceSubtaskCountReq serviceSubtaskCountReq) { |
| | | return getDataTable(serviceSubtaskService.getSfFzInfoEveryMonth(serviceSubtaskCountReq)); |
| | | } |
| | | |
| | | } |