|
|
|
@ -2,13 +2,17 @@ package com.ccsens.admin.controller; |
|
|
|
|
|
|
|
import com.ccsens.admin.service.IRmsService; |
|
|
|
import com.ccsens.common.annotation.Anonymous; |
|
|
|
import com.ccsens.common.core.domain.BaseDto; |
|
|
|
import com.ccsens.common.core.domain.JsonResponse; |
|
|
|
import com.ccsens.system.domain.dto.PmsPatientDto; |
|
|
|
import com.ccsens.system.domain.dto.RmsDto; |
|
|
|
import com.ccsens.system.domain.vo.RmsVo; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
@ -16,6 +20,9 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.validation.Valid; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import static com.github.pagehelper.page.PageMethod.startPage; |
|
|
|
|
|
|
|
/** |
|
|
|
* @author zy |
|
|
|
@ -32,9 +39,10 @@ public class ReportPdfController { |
|
|
|
@Anonymous |
|
|
|
@ApiOperation(value = "通过就诊号查询患者的评估报告单",notes = "") |
|
|
|
@PostMapping(value="/reportPDF") |
|
|
|
public JsonResponse<String> generate(@RequestBody @ApiParam @Valid RmsDto.ReportPDF dto){ |
|
|
|
public JsonResponse<PageInfo<RmsVo.ReportPDF>> generate(@RequestBody @Validated BaseDto<RmsDto.ReportPDF> dto){ |
|
|
|
log.info("通过就诊号查询患者的评估报告单:{}", dto); |
|
|
|
String url = rmsService.viewReportPDF(dto); |
|
|
|
return JsonResponse.ok(url); |
|
|
|
startPage(dto); |
|
|
|
List<RmsVo.ReportPDF> list = rmsService.viewReportPDF(dto.getParam()); |
|
|
|
return JsonResponse.ok(new PageInfo<>(list)); |
|
|
|
} |
|
|
|
} |
|
|
|
|