From 0980c29c1948b1901fa834f86ffb5884a09223d5 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期二, 10 十二月 2024 20:51:48 +0800 Subject: [PATCH] checktype 新增是否需要确费 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/call/CallMapper.java | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/call/CallMapper.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/call/CallMapper.java index c253f62..e6cdbdf 100644 --- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/call/CallMapper.java +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/call/CallMapper.java @@ -37,10 +37,15 @@ @Select("select * from lihu.call_patient where pat_id = #{patId} order by id desc limit 1") CallDO getLatestPatientCall(@Param("patId") String patId); - @Select("select * from lihu.call_patient where called = 0 order by id limit 1") - CallDO getNextCall(); + // call_type 0 澶у睆 + @Select("select * from lihu.call_patient where called = 0 and call_type = 0 order by id limit 1") + CallDO getNextCall( ); - //@Update("TRUNCATE TABLE lihu.call_patient") + // call_type 1 璇婇棿灞� + @Select("select * from lihu.call_patient where called = 0 and call_type = 1 and room_id = #{roomId} order by id limit 1") + CallDO getNextInstallCall(@Param("roomId") Long roomId); + + //@Update("TRUNCATE TABLE lihu.call_patient") 淇濇寔褰撳ぉ鏁版嵁 @Delete("delete from lihu.call_patient where TO_DAYS(book_date) != TO_DAYS(NOW())") void clearCall(); } -- Gitblit v1.9.3