From 2bc90e242eceb83d9aa80d48ea9f991c0f9b99c6 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期四, 12 十二月 2024 19:47:57 +0800 Subject: [PATCH] 工位选择界面 诊室按照room id排序 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/devmanage/DevModelMapper.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 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 c37aba5..df3a775 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 @@ -8,6 +8,8 @@ import cn.lihu.jh.module.ecg.dal.dataobject.devmanage.DevModelDO; import org.apache.ibatis.annotations.Mapper; import cn.lihu.jh.module.ecg.controller.admin.devmanage.vo.*; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; /** * 璁惧鍨嬪彿 Mapper @@ -26,4 +28,10 @@ .orderByDesc(DevModelDO::getId)); } + @Select("select distinct brand from lihu.device_model where category=#{category}") + List<String> getBrandByCategory(@Param("category") String category); + + @Select("select model from lihu.device_model where category=#{category} and brand=#{brand}") + List<String> getModelByCategoryBrand(@Param("category") String category, @Param("brand") String brand); + } \ No newline at end of file -- Gitblit v1.9.3