From c04653a6df7a4f9d3bd593f51ae9a8cd7ee93122 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 14 四月 2025 15:17:18 +0800
Subject: [PATCH] 患者顺序 处理
---
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devrent/DevRentController.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devrent/DevRentController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devrent/DevRentController.java
index d119636..5ffdbc1 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devrent/DevRentController.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devrent/DevRentController.java
@@ -1,12 +1,10 @@
package cn.lihu.jh.module.ecg.controller.admin.devrent;
-import cn.lihu.jh.framework.common.util.exception.ExceptionUtils;
import cn.lihu.jh.framework.security.core.util.SecurityFrameworkUtils;
import cn.lihu.jh.module.ecg.dal.dataobject.devmanage.DeviceDO;
import cn.lihu.jh.module.ecg.enums.DevStateEnum;
import cn.lihu.jh.module.ecg.service.devmanage.DeviceService;
import cn.lihu.jh.module.ecg.service.queue.QueueService;
-import io.swagger.v3.oas.models.security.SecurityScheme;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
@@ -27,7 +25,6 @@
import cn.lihu.jh.framework.apilog.core.annotation.ApiAccessLog;
import static cn.lihu.jh.framework.apilog.core.enums.OperateTypeEnum.*;
-import static cn.lihu.jh.module.ecg.enums.ErrorCodeConstants.*;
import cn.lihu.jh.module.ecg.controller.admin.devrent.vo.*;
import cn.lihu.jh.module.ecg.dal.dataobject.devrent.DevRentDO;
@@ -188,6 +185,7 @@
devRentRespVO.setCategory(deviceDO.getCategory());
devRentRespVO.setBrand(deviceDO.getBrand());
devRentRespVO.setModel(deviceDO.getModel());
+ devRentRespVO.setDevState(deviceDO.getState());
}
return CommonResult.success(devRentRespVO);
}
@@ -244,16 +242,17 @@
devRentRespVO.setCategory(deviceDO.getCategory());
devRentRespVO.setBrand(deviceDO.getBrand());
devRentRespVO.setModel(deviceDO.getModel());
+ devRentRespVO.setDevState(deviceDO.getState());
}
return CommonResult.success(devRentRespVO);
}
- @GetMapping("/get-installed-rent")
- @Operation(summary = "鑾峰彇宸插畨瑁呯璧佹儏鍐�")
+ @GetMapping("/get-existing-rent")
+ @Operation(summary = "鑾峰彇宸插畨瑁呫�佸凡棰嗙敤鐨勭璧佹儏鍐�")
@PreAuthorize("@ss.hasPermission('ecg:doctor:task')")
public CommonResult<DevRentRespVO> getInstalledRent( @Valid DevRentSearchReqVO searchReqVO )
{
- DevRentDO devRent = devRentService.getInstalledOrCancelledRent( searchReqVO );
+ DevRentDO devRent = devRentService.getExistingRent( searchReqVO );
if (null == devRent) {
return CommonResult.success(null);
}
@@ -264,6 +263,7 @@
devRentRespVO.setCategory( deviceDO.getCategory() );
devRentRespVO.setBrand( deviceDO.getBrand() );
devRentRespVO.setModel( deviceDO.getModel() );
+ devRentRespVO.setDevState( devRent.getState() );
return CommonResult.success(devRentRespVO);
}
--
Gitblit v1.9.3