接口
This commit is contained in:
parent
6a5a79d0cb
commit
453c5c5bbe
@ -83,16 +83,14 @@ public class EcgconfigController {
|
||||
}
|
||||
|
||||
@GetMapping("/list-by-conditions")
|
||||
@Operation(summary = "根据机构ID、检查ID、登记号获得心电图参数配置列表")
|
||||
@Operation(summary = "根据机构ID、检查ID获得心电图参数配置列表")
|
||||
@Parameter(name = "orgid", description = "机构ID", required = true)
|
||||
@Parameter(name = "examid", description = "检查唯一标识号", required = true)
|
||||
@Parameter(name = "regid", description = "患者登记号", required = true)
|
||||
public CommonResult<List<EcgconfigRespVO>> getEcgconfigListByConditions(
|
||||
@RequestParam("orgid") @NotBlank(message = "机构ID不能为空") String orgid,
|
||||
@RequestParam("examid") @NotBlank(message = "检查唯一标识号不能为空") String examid,
|
||||
@RequestParam("regid") @NotBlank(message = "患者登记号不能为空") String regid) {
|
||||
@RequestParam("examid") @NotBlank(message = "检查唯一标识号不能为空") String examid) {
|
||||
try {
|
||||
List<EcgconfigDO> list = ecgconfigService.getEcgconfigListByConditions(orgid, examid, regid);
|
||||
List<EcgconfigDO> list = ecgconfigService.getEcgconfigListByConditions(orgid, examid);
|
||||
CommonResult<List<EcgconfigRespVO>> result = success(BeanUtils.toBean(list, EcgconfigRespVO.class));
|
||||
result.setMsg("查询成功");
|
||||
return result;
|
||||
|
||||
@ -100,4 +100,15 @@ public class EcgworkstationController {
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@PutMapping("/updatePdfUrl")
|
||||
@Operation(summary = "根据机构ID和检查ID更新PDF地址")
|
||||
public CommonResult<String> updatePdfUrlByOrgidAndExamid(@Valid @RequestBody EcgworkstationUpdatePdfUrlReqVO updateReqVO) {
|
||||
boolean updateSuccess = ecgworkstationService.updatePdfUrlByOrgidAndExamid(updateReqVO);
|
||||
if (updateSuccess) {
|
||||
return success("PDF报告地址更新成功");
|
||||
} else {
|
||||
return CommonResult.error(404, "未找到匹配的记录,PDF地址更新失败");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -77,4 +77,7 @@ public class EcgworkstationPageReqVO extends PageParam {
|
||||
@Schema(description = "是否回放: 0-否, 1-是")
|
||||
private Integer isreplay;
|
||||
|
||||
@Schema(description = "报告地址")
|
||||
private String pdfurl;
|
||||
|
||||
}
|
||||
@ -96,4 +96,8 @@ public class EcgworkstationRespVO {
|
||||
@ExcelProperty("是否回放: 0-否, 1-是")
|
||||
private Integer isreplay;
|
||||
|
||||
@Schema(description = "报告地址")
|
||||
@ExcelProperty("报告地址")
|
||||
private String pdfurl;
|
||||
|
||||
}
|
||||
@ -74,4 +74,7 @@ public class EcgworkstationSaveReqVO {
|
||||
@Schema(description = "是否回放: 0-否, 1-是")
|
||||
private Integer isreplay;
|
||||
|
||||
@Schema(description = "报告地址")
|
||||
private String pdfurl;
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.ecgworkstation.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Schema(description = "管理后台 - 心电工作站更新PDF地址 Request VO")
|
||||
@Data
|
||||
public class EcgworkstationUpdatePdfUrlReqVO {
|
||||
|
||||
@Schema(description = "机构ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23027")
|
||||
@NotBlank(message = "机构ID不能为空")
|
||||
private String orgid;
|
||||
|
||||
@Schema(description = "检查ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29841")
|
||||
@NotBlank(message = "检查ID不能为空")
|
||||
private String examid;
|
||||
|
||||
@Schema(description = "报告地址", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "报告地址不能为空")
|
||||
private String pdfurl;
|
||||
|
||||
}
|
||||
@ -128,6 +128,11 @@ public class EcgworkstationDO {
|
||||
*/
|
||||
@TableField("isreplay")
|
||||
private Integer isreplay;
|
||||
/**
|
||||
* 报告地址
|
||||
*/
|
||||
@TableField("pdfurl")
|
||||
private String pdfurl;
|
||||
|
||||
|
||||
}
|
||||
@ -39,11 +39,10 @@ public interface EcgconfigMapper extends BaseMapperX<EcgconfigDO> {
|
||||
.orderByDesc(EcgconfigDO::getId));
|
||||
}
|
||||
|
||||
default List<EcgconfigDO> selectListByConditions(String orgid, String examid, String regid) {
|
||||
default List<EcgconfigDO> selectListByConditions(String orgid, String examid) {
|
||||
return selectList(new LambdaQueryWrapperX<EcgconfigDO>()
|
||||
.eq(EcgconfigDO::getOrgid, orgid)
|
||||
.eq(EcgconfigDO::getExamid, examid)
|
||||
.eq(EcgconfigDO::getRegid, regid)
|
||||
.orderByDesc(EcgconfigDO::getId));
|
||||
}
|
||||
|
||||
|
||||
@ -8,6 +8,7 @@ import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.ecgworkstation.EcgworkstationDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.ecgworkstation.vo.*;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
|
||||
/**
|
||||
* 心电工作站患者信息 Mapper
|
||||
@ -39,7 +40,24 @@ public interface EcgworkstationMapper extends BaseMapperX<EcgworkstationDO> {
|
||||
.likeIfPresent(EcgworkstationDO::getFilename, reqVO.getFilename())
|
||||
.likeIfPresent(EcgworkstationDO::getZipname, reqVO.getZipname())
|
||||
.eqIfPresent(EcgworkstationDO::getIsreplay, reqVO.getIsreplay())
|
||||
.likeIfPresent(EcgworkstationDO::getPdfurl, reqVO.getPdfurl())
|
||||
.orderByDesc(EcgworkstationDO::getId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据机构ID和检查ID更新PDF地址
|
||||
*
|
||||
* @param orgid 机构ID
|
||||
* @param examid 检查ID
|
||||
* @param pdfurl PDF地址
|
||||
* @return 更新行数
|
||||
*/
|
||||
default int updatePdfUrlByOrgidAndExamid(String orgid, String examid, String pdfurl) {
|
||||
LambdaUpdateWrapper<EcgworkstationDO> updateWrapper = new LambdaUpdateWrapper<>();
|
||||
updateWrapper.eq(EcgworkstationDO::getOrgid, orgid)
|
||||
.eq(EcgworkstationDO::getExamid, examid)
|
||||
.set(EcgworkstationDO::getPdfurl, pdfurl);
|
||||
return update(null, updateWrapper);
|
||||
}
|
||||
|
||||
}
|
||||
@ -61,14 +61,13 @@ public interface EcgconfigService {
|
||||
PageResult<EcgconfigDO> getEcgconfigPage(EcgconfigPageReqVO pageReqVO);
|
||||
|
||||
/**
|
||||
* 根据机构ID、检查ID、登记号获得心电图参数配置列表
|
||||
* 根据机构ID、检查ID获得心电图参数配置列表
|
||||
*
|
||||
* @param orgid 机构ID
|
||||
* @param examid 检查唯一标识号
|
||||
* @param regid 患者登记号
|
||||
* @return 心电图参数配置列表
|
||||
*/
|
||||
List<EcgconfigDO> getEcgconfigListByConditions(String orgid, String examid, String regid);
|
||||
List<EcgconfigDO> getEcgconfigListByConditions(String orgid, String examid);
|
||||
|
||||
/**
|
||||
* 根据机构ID、检查ID、登记号更新心电图参数配置
|
||||
|
||||
@ -89,8 +89,8 @@ public class EcgconfigServiceImpl implements EcgconfigService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EcgconfigDO> getEcgconfigListByConditions(String orgid, String examid, String regid) {
|
||||
return ecgconfigMapper.selectListByConditions(orgid, examid, regid);
|
||||
public List<EcgconfigDO> getEcgconfigListByConditions(String orgid, String examid) {
|
||||
return ecgconfigMapper.selectListByConditions(orgid, examid);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -6,6 +6,7 @@ import cn.iocoder.yudao.module.system.controller.admin.patientinfo.vo.patientinf
|
||||
import cn.iocoder.yudao.module.system.controller.admin.ecgworkstation.vo.*;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.ecgworkstation.EcgworkstationDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.ecgworkstation.vo.EcgworkstationUpdatePdfUrlReqVO;
|
||||
|
||||
/**
|
||||
* 心电工作站患者信息 Service 接口
|
||||
@ -66,4 +67,12 @@ public interface EcgworkstationService {
|
||||
*/
|
||||
void insertEcgworkstationPatientData(List<patientinfoRespVO> patientInfoList);
|
||||
|
||||
/**
|
||||
* 根据机构ID和检查ID更新PDF地址
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
* @return 更新结果
|
||||
*/
|
||||
boolean updatePdfUrlByOrgidAndExamid(@Valid EcgworkstationUpdatePdfUrlReqVO updateReqVO);
|
||||
|
||||
}
|
||||
@ -111,4 +111,14 @@ public class EcgworkstationServiceImpl implements EcgworkstationService {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean updatePdfUrlByOrgidAndExamid(EcgworkstationUpdatePdfUrlReqVO updateReqVO) {
|
||||
int updateCount = ecgworkstationMapper.updatePdfUrlByOrgidAndExamid(
|
||||
updateReqVO.getOrgid(),
|
||||
updateReqVO.getExamid(),
|
||||
updateReqVO.getPdfurl()
|
||||
);
|
||||
return updateCount > 0;
|
||||
}
|
||||
|
||||
}
|
||||
@ -279,6 +279,7 @@ yudao:
|
||||
ignore-urls:
|
||||
- /jmreport/* # 积木报表,无法携带租户编号
|
||||
- /admin-api/system/ecgconfig/** # 心电图参数配置,无法携带租户编号
|
||||
- /admin-api/system/ecgworkstation/** # 心电工作站,无法携带租户编号
|
||||
|
||||
ignore-visit-urls:
|
||||
- /admin-api/system/user/profile/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user