修改医生管理的接口验证、增加配置项
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:
lxd 2024-12-11 15:38:01 +08:00
parent 69a9aba40b
commit 82957576d2
4 changed files with 32 additions and 5 deletions

View File

@ -2,6 +2,8 @@ package cn.iocoder.yudao.module.applyregistration.controller.admin.applyform;
import cn.iocoder.yudao.framework.common.util.http.HttpUtils;
import cn.iocoder.yudao.module.applyregistration.dal.mysql.applyform.ApplyformMapper;
import cn.iocoder.yudao.module.infra.dal.dataobject.config.ConfigDO;
import cn.iocoder.yudao.module.infra.service.config.ConfigService;
import cn.iocoder.yudao.module.system.api.DatabaseUtils;
import cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.devicevo.DeviceVO;
import cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.devicevo.deviceupVO;
@ -91,7 +93,8 @@ public class ApplyformController {
private DicomworklistService dicomworklistService;
@Resource
private PatientexamlistService patientexamlistService;
@Resource
private ConfigService configService;
@Resource
private OrgUnitService Service;
@Resource
@ -521,6 +524,9 @@ public class ApplyformController {
String msg="";
String re="调取成功";
if (regId != null && !regId.isEmpty() && orgId != null && !orgId.isEmpty()) {
//获取配置项地址
ConfigDO config= configService.getConfigByKey("url.viewdcm");
Map<String, Object> params = new HashMap<>();
params.put("regId", regId);
params.put("orgId", orgId);
@ -541,7 +547,7 @@ public class ApplyformController {
if(!patientexamlistDO.getDeviceType().equals("US"))
{
//存放访问地址 一次检查一个地址
dcmurl.add("https://pacs.gw12320.com/viewdcm/?regid="+patientexamlistDO.getRegId()+"&orgId="+patientexamlistDO.getOrgId()+"&examid="+patientexamlistDO.getExamId());
dcmurl.add(config.getValue()+"/?regid="+patientexamlistDO.getRegId()+"&orgId="+patientexamlistDO.getOrgId()+"&examid="+patientexamlistDO.getExamId());
}
}

View File

@ -55,7 +55,17 @@ public class DoctorController {
@PreAuthorize("@ss.hasPermission('doctor::create')")
@LogRecord(type = "医生管理", subType = "创建", bizNo ="{{#createReqVO.getDoctorID}}" , success = "创建ID为{{#createReqVO.getDoctorID}}的医生")
public CommonResult<String> create(@Valid @RequestBody DoctorSaveReqVO createReqVO) {
return success(Service.create(createReqVO));
String Msg="";
DoctorDO doctorDO= Service.get(createReqVO.getDoctorID());
if(doctorDO!=null) {
Msg="医生编号已存在";
}
else
{
Msg= Service.create(createReqVO);
}
return success(Msg);
}
@PutMapping("/update")

View File

@ -130,6 +130,12 @@
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
</dependency>
<dependency>
<groupId>cn.iocoder.boot</groupId>
<artifactId>yudao-module-infra-biz</artifactId>
<version>2.1.0-jdk8-snapshot</version>
<scope>compile</scope>
</dependency>
</dependencies>

View File

@ -2,6 +2,8 @@ package cn.iocoder.yudao.module.tblist.controller.admin.patientexamlist;
import cn.iocoder.yudao.framework.common.util.date.DateUtils;
import cn.iocoder.yudao.framework.common.util.io.FileUtils;
import cn.iocoder.yudao.module.infra.dal.dataobject.config.ConfigDO;
import cn.iocoder.yudao.module.infra.service.config.ConfigService;
import cn.iocoder.yudao.module.system.dal.dataobject.org.OrgUnitDO;
import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO;
import cn.iocoder.yudao.module.system.service.org.OrgUnitService;
@ -76,6 +78,8 @@ public class PatientexamlistController {
private OrgService OrgService;
@Resource
private OrgUnitService Service;
@Resource
private ConfigService configService;
@PostMapping("/create")
@Operation(summary = "创建PACS检查列表")
@ -498,7 +502,8 @@ public class PatientexamlistController {
}
}
}
//获取配置项地址
ConfigDO config= configService.getConfigByKey("url.ftpurl");
//上传成功
//当前时间
LocalDateTime dateTime = LocalDateTime.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")),
@ -506,7 +511,7 @@ public class PatientexamlistController {
AdminUserDO user = userService.getUser(getLoginUserId());
PatientexamlistSaveReqVO updateReqVO = new PatientexamlistSaveReqVO();
updateReqVO.setId(insimagescreenshotVO.getID());
updateReqVO.setPdfurl("https://114.55.171.231:48082/" + insimagescreenshotVO.getID() + "/" + fileName);//https://pacs.gw12320.com/video
updateReqVO.setPdfurl(config.getValue()+"/" + insimagescreenshotVO.getID() + "/" + fileName);//https://pacs.gw12320.com/video https://114.55.171.231:48082
patientexamlistService.updatePatientexamlist(updateReqVO);