|
|
|
@ -3,6 +3,8 @@ package com.docus.server.report.controller;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.docus.core.util.Func;
|
|
|
|
|
import com.docus.infrastructure.web.api.CommonResult;
|
|
|
|
|
import com.docus.server.collection.entity.TBasic;
|
|
|
|
|
import com.docus.server.collection.mapper.TBasicMapper;
|
|
|
|
|
import com.docus.server.report.job.ReportJob;
|
|
|
|
|
import com.docus.server.report.service.ReportService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
@ -25,9 +27,11 @@ import java.util.Map;
|
|
|
|
|
public class ReportDownController {
|
|
|
|
|
@Resource
|
|
|
|
|
private ReportService reportService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private TBasicMapper tBasicMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
ReportJob reportJob;
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "report lis job 测试")
|
|
|
|
|
@PostMapping("/lisreportJobTest")
|
|
|
|
|
public CommonResult<String> LisreportJobTest(){
|
|
|
|
@ -43,6 +47,34 @@ public class ReportDownController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = " inspectReport 根据病案主键补偿")
|
|
|
|
|
@PostMapping("/inspectReportMakeup")
|
|
|
|
|
public CommonResult<String> inspectReportMakeup(@RequestBody List<String> patientIds){
|
|
|
|
|
if(Func.isEmpty(patientIds)){
|
|
|
|
|
return CommonResult.failed("病案主键不能为空!");
|
|
|
|
|
}
|
|
|
|
|
List<TBasic> tBasics =tBasicMapper.selectBasicListByPatientIds(patientIds);
|
|
|
|
|
if(Func.isEmpty(tBasics)){
|
|
|
|
|
return CommonResult.failed("未查询到病案基础数据!");
|
|
|
|
|
}
|
|
|
|
|
reportJob.queryInspectReport(tBasics);
|
|
|
|
|
return CommonResult.success("成功");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "lisReport 根据病案主键补偿")
|
|
|
|
|
@PostMapping("/lisReportMakeup")
|
|
|
|
|
public CommonResult<String> lisReportMakeup(@RequestBody List<String> patientIds){
|
|
|
|
|
if(Func.isEmpty(patientIds)){
|
|
|
|
|
return CommonResult.failed("病案主键不能为空!");
|
|
|
|
|
}
|
|
|
|
|
List<TBasic> tBasics =tBasicMapper.selectBasicListByPatientIds(patientIds);
|
|
|
|
|
if(Func.isEmpty(tBasics)){
|
|
|
|
|
return CommonResult.failed("未查询到病案基础数据!");
|
|
|
|
|
}
|
|
|
|
|
reportJob.queryLisReport(tBasics);
|
|
|
|
|
return CommonResult.success("成功");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "根据任务id补偿报告下载")
|
|
|
|
|
@PostMapping("/makeupReportByTaskIds")
|
|
|
|
|