新增调用心电打印服务实体类
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled
This commit is contained in:
parent
75ce9c15ce
commit
fd219f18da
@ -112,6 +112,7 @@ public class WarningController {
|
||||
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/sendMessage")
|
||||
@Operation(summary = "发送站内信给某个用户")
|
||||
public CommonResult<Boolean> sendMessage(@RequestParam("userid") String userid,@RequestParam("name") String name)
|
||||
|
@ -1,7 +1,13 @@
|
||||
package cn.iocoder.yudao.module.tblist.controller.admin.ecganalysisparas;
|
||||
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.doctor.DoctorDO;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.org.OrgUnitDO;
|
||||
import cn.iocoder.yudao.module.system.service.doctor.DoctorService;
|
||||
import cn.iocoder.yudao.module.system.service.org.OrgUnitService;
|
||||
import cn.iocoder.yudao.module.tblist.dal.mysql.ecganalysisparas.EcganalysisparasMapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
@ -41,6 +47,10 @@ import java.net.URLEncoder;
|
||||
@Validated
|
||||
public class EcganalysisparasController {
|
||||
|
||||
@Resource
|
||||
private OrgUnitService orgService;
|
||||
@Resource
|
||||
private DoctorService Service;
|
||||
@Resource
|
||||
private EcganalysisparasService ecganalysisparasService;
|
||||
@Resource
|
||||
@ -79,6 +89,44 @@ public class EcganalysisparasController {
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@PutMapping("/SaveEcgPdf")
|
||||
@Operation(summary = "保存心电分析数据调用打印服务生成pdf")
|
||||
public CommonResult<Boolean> SaveEcgPdf(@RequestBody EcganalysisparasSaveReqVO updateReqVO) throws JsonProcessingException {
|
||||
EcgPrintPdf ecgPrintPdf=new EcgPrintPdf();
|
||||
ecgPrintPdf.setExamid(updateReqVO.getExamId());
|
||||
ecgPrintPdf.setName(updateReqVO.getName());
|
||||
ecgPrintPdf.setGender(updateReqVO.getGender());
|
||||
ecgPrintPdf.setAge(updateReqVO.getAge());
|
||||
ecgPrintPdf.setRegid(updateReqVO.getRegId());
|
||||
ecgPrintPdf.setHr(updateReqVO.getHr());
|
||||
ecgPrintPdf.setPr(updateReqVO.getPr());
|
||||
ecgPrintPdf.setQrs(updateReqVO.getQrsTimeLimit());
|
||||
ecgPrintPdf.setQtqtc(updateReqVO.getQt()+"/"+updateReqVO.getQtc());
|
||||
ecgPrintPdf.setRv5sv1(updateReqVO.getRv5()+"/"+updateReqVO.getSv1());
|
||||
ecgPrintPdf.setRv5sv1plus(updateReqVO.getRv5Sv1());
|
||||
ecgPrintPdf.setPt(updateReqVO.getPAxle()+"/"+updateReqVO.getTAxle()+"/"+updateReqVO.getQrsAxle());
|
||||
ecgPrintPdf.setDepartment(updateReqVO.getDepartName());
|
||||
//查询医生的签名图片
|
||||
DoctorDO doctorDO = Service.getBydoctorID(String.valueOf(updateReqVO.getDoctorId()));
|
||||
if(!doctorDO.getESignatureUrl().isEmpty())
|
||||
{
|
||||
ecgPrintPdf.setImage(doctorDO.getESignatureUrl());
|
||||
}
|
||||
ecgPrintPdf.setDoctorDiagTime(String.valueOf(updateReqVO.getDoctorDiagTime()));
|
||||
ecgPrintPdf.setDiagContent(updateReqVO.getDoctorDiagResult());
|
||||
ecgPrintPdf.setDepartName(updateReqVO.getDepartName());
|
||||
ecgPrintPdf.setDoctorName(updateReqVO.getDoctorName());
|
||||
ecgPrintPdf.setType("2");
|
||||
ecgPrintPdf.setFilepath(updateReqVO.getEcgJsonDataFilePath());
|
||||
OrgUnitDO aDo = orgService.getonekey(updateReqVO.getOrgId());
|
||||
if(!aDo.getOrgName().isEmpty())
|
||||
{
|
||||
ecgPrintPdf.setOrgname(aDo.getOrgName());
|
||||
}
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
String json = mapper.writeValueAsString(ecgPrintPdf);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
|
@ -0,0 +1,31 @@
|
||||
package cn.iocoder.yudao.module.tblist.controller.admin.ecganalysisparas.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class EcgPrintPdf {
|
||||
|
||||
private String examid;
|
||||
private String name;
|
||||
private String gender;
|
||||
private String age;
|
||||
private String ward;
|
||||
private String regid;
|
||||
private String hr;
|
||||
private String pr;
|
||||
private String qrs;
|
||||
private String qtqtc;
|
||||
private String rv5sv1;
|
||||
private String rv5sv1plus;
|
||||
private String pt;
|
||||
private String diagnosisHint;
|
||||
private String department;
|
||||
private String image;
|
||||
private String doctorDiagTime;
|
||||
private String diagContent;
|
||||
private String DepartName;
|
||||
private String doctorName;
|
||||
private String type;
|
||||
private String filepath;
|
||||
private String orgname;
|
||||
}
|
@ -109,5 +109,9 @@ public class EcganalysisparasSaveReqVO {
|
||||
|
||||
@Schema(description = "登记ID")
|
||||
private String regId;
|
||||
/* 额外字段 在调用保存打印服务时候回用到 */
|
||||
|
||||
private String name;
|
||||
private String gender;
|
||||
private String age;
|
||||
}
|
Loading…
Reference in New Issue
Block a user