新增对外接口
This commit is contained in:
parent
a1a8e6d418
commit
85ce4f4a80
@ -125,8 +125,13 @@ public class PatientexamlistController {
|
|||||||
|
|
||||||
@GetMapping("/getplexamiddata")
|
@GetMapping("/getplexamiddata")
|
||||||
@Operation(summary = "根据examid获得PACS检查列表数据")
|
@Operation(summary = "根据examid获得PACS检查列表数据")
|
||||||
public CommonResult<PatientexamlistRespVO> getkeyexamidPatientexamlist(@RequestParam("examid") String examid,@RequestParam("orgid") String orgid) {
|
public CommonResult<PatientexamlistRespVO> getkeyexamidPatientexamlist(@RequestParam("examid") String examid,@RequestParam("orgSN") String orgSN) {
|
||||||
PatientexamlistDO patientexamlist = patientexamlistService.getkeyexamidPatientexamlist(examid,orgid);
|
OrgUnitDO orgUnitDO= Service.getSnonekey(orgSN);
|
||||||
|
if(orgUnitDO==null)
|
||||||
|
{
|
||||||
|
return success(null);
|
||||||
|
}
|
||||||
|
PatientexamlistDO patientexamlist = patientexamlistService.getkeyexamidPatientexamlist(examid,orgUnitDO.getOrgID());
|
||||||
return success(BeanUtils.toBean(patientexamlist, PatientexamlistRespVO.class));
|
return success(BeanUtils.toBean(patientexamlist, PatientexamlistRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,13 +77,13 @@ public interface PatientexamlistMapper extends BaseMapperX<PatientexamlistDO> {
|
|||||||
.betweenIfPresent(PatientexamlistDO::getDiagDate, reqVO.getDiagDate())
|
.betweenIfPresent(PatientexamlistDO::getDiagDate, reqVO.getDiagDate())
|
||||||
.eqIfPresent(PatientexamlistDO::getDiagDoctor, reqVO.getDiagDoctor())
|
.eqIfPresent(PatientexamlistDO::getDiagDoctor, reqVO.getDiagDoctor())
|
||||||
.betweenIfPresent(PatientexamlistDO::getCreateTime, reqVO.getCreateTime())
|
.betweenIfPresent(PatientexamlistDO::getCreateTime, reqVO.getCreateTime())
|
||||||
.eqIfPresent(PatientexamlistDO::getOrgId, reqVO.getHighLevelOrgId())
|
//.eqIfPresent(PatientexamlistDO::getOrgId, reqVO.getHighLevelOrgId())
|
||||||
.eqIfPresent(PatientexamlistDO::getIsFavourite, reqVO.getIsFavourite())
|
.eqIfPresent(PatientexamlistDO::getIsFavourite, reqVO.getIsFavourite())
|
||||||
.eq(PatientexamlistDO::getOrgId, reqVO.getOrgId()) // 始终添加orgId条件
|
.eq(PatientexamlistDO::getOrgId, reqVO.getOrgId()) // 始终添加orgId条件
|
||||||
.or(wrapper -> {
|
.or(wrapper -> {
|
||||||
if (reqVO.getHighLevelOrgId() != null) {
|
// if (reqVO.getHighLevelOrgId() != null) {
|
||||||
wrapper.eq(PatientexamlistDO::getOrgId, reqVO.getHighLevelOrgId());
|
wrapper.eq(PatientexamlistDO::getHighLevelOrgId, reqVO.getOrgId());
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
.orderByDesc(PatientexamlistDO::getId));
|
.orderByDesc(PatientexamlistDO::getId));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user