From 3d10cfa8882afcfa28a7623b45232aef54fe033d Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期五, 25 十月 2024 15:51:08 +0800 Subject: [PATCH] 设备表 增加 rent_id --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/call/CallMapper.java | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 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 952896d..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 @@ -6,10 +6,8 @@ import cn.lihu.jh.framework.mybatis.core.query.LambdaQueryWrapperX; import cn.lihu.jh.framework.mybatis.core.mapper.BaseMapperX; import cn.lihu.jh.module.ecg.dal.dataobject.call.CallDO; -import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.*; import cn.lihu.jh.module.ecg.controller.admin.call.vo.*; -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Select; /** * 鍙彿 Mapper @@ -39,6 +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( ); + + // 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