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