|
@@ -6,6 +6,7 @@ import com.fs.common.annotation.RepeatSubmit;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.medical.domain.PhysicalExamReport;
|
|
|
+import com.fs.medical.param.PhysicalExamReportCompareDto;
|
|
|
import com.fs.medical.param.PhysicalExamReportQueryDto;
|
|
|
import com.fs.medical.service.PhysicalExamReportService;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
@@ -88,6 +89,20 @@ public class PhysicalExamReportController extends AppBaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 对比报告
|
|
|
+ */
|
|
|
+ @ApiOperation("对比报告")
|
|
|
+ @PostMapping("/compareReport")
|
|
|
+ public R compareReport(@RequestBody PhysicalExamReportCompareDto reportCompareDto){
|
|
|
+ try {
|
|
|
+ Object result = physicalExamReportService.compareReport(reportCompareDto);
|
|
|
+ return R.ok().put("data", result);
|
|
|
+ } catch (Exception e) {
|
|
|
+ logger.error("体检报告对比失败", e);
|
|
|
+ return R.error("对比失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
/**
|
|
|
* 根据ID查询体检报告详情
|
|
|
*/
|