From 961157b9902ce78c2e86d2cca8f2f882cb09753f Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期一, 14 四月 2025 13:36:52 +0800 Subject: [PATCH] 获取 下一个安装患者 seq_num create_time 不考虑book_timeslot --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devmanage/DevModelMapper.java | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devmanage/DevModelMapper.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devmanage/DevModelMapper.java index df3a775..1e3a349 100644 --- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devmanage/DevModelMapper.java +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devmanage/DevModelMapper.java @@ -28,10 +28,27 @@ .orderByDesc(DevModelDO::getId)); } - @Select("select distinct brand from lihu.device_model where category=#{category}") + @Select("<script> " + + " select distinct brand from lihu.device_model " + + " <where> deleted = 0 " + + " <if test=\"category != null and category != ''\"> " + + " and category = #{category} " + + " </if> " + + " </where> " + + "</script>") List<String> getBrandByCategory(@Param("category") String category); - @Select("select model from lihu.device_model where category=#{category} and brand=#{brand}") + @Select("<script> " + + " select distinct brand from lihu.device_model " + + " <where> deleted = 0 " + + " <if test=\"category != null and category != ''\"> " + + " and category = #{category} " + + " </if> " + + " <if test=\"brand != null and brand != ''\"> " + + " and brand = #{brand} " + + " </if> " + + " </where> " + + "</script>") List<String> getModelByCategoryBrand(@Param("category") String category, @Param("brand") String brand); } \ No newline at end of file -- Gitblit v1.9.3