修改接口 tblist/patientexamlist/page
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
851aa0051c
commit
2c57beb0b8
@ -103,20 +103,24 @@ public class PatientexamlistController {
|
||||
PageResult<PatientexamlistDO> pageResult = patientexamlistService.getPatientexamlistPage(pageReqVO);
|
||||
List<PatientexamlistDO> doList=new ArrayList<>();
|
||||
String devicetype=pageReqVO.getDeviceType();
|
||||
if(devicetype.equals("US"))//表示只查询超声的数据
|
||||
if(devicetype!=null&&devicetype.equals("US"))//表示只查询超声的数据
|
||||
{
|
||||
// 筛选条件:
|
||||
doList = pageResult.getList().stream()
|
||||
.filter(PatientexamlistDO -> (PatientexamlistDO.getDeviceType().equals(devicetype)))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
else//表示只查询影像的数据
|
||||
else if(devicetype!=null&&!devicetype.trim().isEmpty())//表示只查询影像的数据
|
||||
{
|
||||
// 筛选条件:
|
||||
doList = pageResult.getList().stream()
|
||||
.filter(PatientexamlistDO -> !(PatientexamlistDO.getDeviceType().equals("US")))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
else //devicetype为空,查询全部数据
|
||||
{
|
||||
doList=pageResult.getList();
|
||||
}
|
||||
|
||||
pageResult.setList(doList);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user