修改更新超声数据接口 以及获取PDF和DCM 数据接口
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run
This commit is contained in:
parent
4c0ec478ca
commit
20ffa1e7a0
@ -538,8 +538,12 @@ public class ApplyformController {
|
||||
if (patientexamlistDO.getReviewDoctor() != null && !patientexamlistDO.getReviewDoctor().isEmpty()) {
|
||||
//存放PDF
|
||||
pdfurl.add(patientexamlistDO.getPdfurl());
|
||||
//存放访问地址 一次检查一个地址
|
||||
dcmurl.add("https://pacs.gw12320.com/viewdcm/?regid="+patientexamlistDO.getRegId()+"&orgId="+patientexamlistDO.getOrgId()+"&examid="+patientexamlistDO.getExamId());
|
||||
if(!patientexamlistDO.getDeviceType().equals("US"))
|
||||
{
|
||||
//存放访问地址 一次检查一个地址
|
||||
dcmurl.add("https://pacs.gw12320.com/viewdcm/?regid="+patientexamlistDO.getRegId()+"&orgId="+patientexamlistDO.getOrgId()+"&examid="+patientexamlistDO.getExamId());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if(pdfurl.isEmpty())
|
||||
|
@ -6,6 +6,9 @@ import lombok.Data;
|
||||
@Data
|
||||
public class upmedicalimgVO {
|
||||
|
||||
@Schema(description = "患者ID", example = "26467")
|
||||
private String regid;
|
||||
|
||||
@Schema(description = "主键", example = "26467")
|
||||
private String id;
|
||||
|
||||
|
@ -257,14 +257,18 @@ public class ultrasonicController {
|
||||
if (!updateReqVO.isEmpty()) {
|
||||
//最终提交的数据
|
||||
List<medicalimgDO> doList = new ArrayList<>();
|
||||
|
||||
//更新选择时候 全部先改成0
|
||||
List<medicalimgDO> dedoList = new ArrayList<>();
|
||||
//当前时间
|
||||
LocalDateTime dateTime = LocalDateTime.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")),
|
||||
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
|
||||
//循环传递进来的参数 赋值
|
||||
for (upmedicalimgVO s : updateReqVO) {
|
||||
//新增对象
|
||||
medicalimgDO medicalimgDO = new medicalimgDO();
|
||||
//会多次保存 先把之前保存的图片标识全部改成0 未选择
|
||||
medicalimgDO demedicalimgDO = new medicalimgDO();
|
||||
medicalimgDO.setId(s.getId());
|
||||
if (s.getIsDelete() != null && !s.getIsDelete().isEmpty()) {
|
||||
medicalimgDO.setIsDelete(s.getIsDelete());
|
||||
@ -273,10 +277,19 @@ public class ultrasonicController {
|
||||
}
|
||||
if (s.getSelected() != null && !s.getSelected().isEmpty()) {
|
||||
medicalimgDO.setSelected(s.getSelected());
|
||||
//如果他是选择 则先进行更新成0 在进行更新1 会存在多次保存 审核只有一次
|
||||
demedicalimgDO.setRegId(updateReqVO.get(0).getRegid());
|
||||
demedicalimgDO.setSelected("0");
|
||||
}
|
||||
dedoList.add(demedicalimgDO);
|
||||
doList.add(medicalimgDO);
|
||||
}
|
||||
//先进行更新
|
||||
if (!dedoList.isEmpty()) {
|
||||
medicalimgService.updateBatchById(dedoList);
|
||||
}
|
||||
if (!doList.isEmpty()) {
|
||||
|
||||
boolean bol = medicalimgService.updateBatchById(doList);
|
||||
return success(bol);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user