|
|
@@ -217,20 +217,12 @@ public class BusPumpController{
|
|
|
}
|
|
|
}
|
|
|
@ApiOperation("获取注液信息和病人信息")
|
|
|
- @PostMapping("/getPumpInfoNew")
|
|
|
- public CommonResult getPumpInfoNew(@RequestBody PumpNewParam pumpParam) throws Exception{
|
|
|
+ @PostMapping("/getPumpInfoListNew")
|
|
|
+ public CommonResult getPumpInfoListNew(@RequestBody PumpNewParam pumpParam) throws Exception{
|
|
|
try{
|
|
|
- QueryWrapper<BusPatientEntity> pie = new QueryWrapper<BusPatientEntity>();
|
|
|
- if(StrUtil.isNotBlank(pumpParam.getPatientId())){
|
|
|
- pie.eq(StrUtil.isNotBlank(pumpParam.getPatientId()),"patient_id",pumpParam.getPatientId());
|
|
|
- } else {
|
|
|
- return CommonResult.failed("请输入患者ID");
|
|
|
- }
|
|
|
- BusPatientEntity patientInfoEntity = iBusPatientService.getOne(pie);
|
|
|
- pumpParam.setPatientCode(patientInfoEntity.getPatientCode());
|
|
|
- List<PumpVo> pumpVo = iBusPumpEntityService.queryPumpInfoNew(pumpParam);
|
|
|
- if(!pumpVo.isEmpty()){
|
|
|
- return CommonResult.success(pumpVo.get(0));
|
|
|
+ IPage<PumpVo> iPage = iBusPumpEntityService.queryPumpInfoNew(pumpParam);;
|
|
|
+ if( iPage.getRecords().size() > 0 ){
|
|
|
+ return CommonResult.success(iPage);
|
|
|
}
|
|
|
return CommonResult.noData();
|
|
|
} catch (Exception e) {
|