From c3e27cb2e84782e99a30cc5a6e8caa67ca0cb72f Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 25 九月 2024 17:33:32 +0800
Subject: [PATCH] 医生登出,自动离座,自动从暂停恢复
---
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devrent/DevRentMapper.java | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devrent/DevRentMapper.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devrent/DevRentMapper.java
index d39c1cb..c90ef5a 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devrent/DevRentMapper.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devrent/DevRentMapper.java
@@ -10,6 +10,7 @@
import cn.lihu.jh.module.ecg.controller.admin.devrent.vo.*;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
/**
* 瑁呮満鎷嗘満 Mapper
@@ -34,8 +35,8 @@
.orderByDesc(DevRentDO::getId));
}
- @Select("select * from lihu.dev_rent where pat_id=#{patId} and dev_id=#{devId} order by rent_time desc limit 1")
- DevRentDO getLatestRent(@Param("patId") String patId, @Param("devId") String devId);
+ DevRentDO getDismantleRentByState(DevRentSearchReqVO reqVO );
-
-}
\ No newline at end of file
+ @Select("select * from lihu.dev_rent where state=#{state} and pat_id=#{patId}")
+ List<DevRentDO> selectByPatIdAndState(@Param("patId") String patId, @Param("state") Integer state);
+}
--
Gitblit v1.9.3