From a5115a30066847baaf0d85ae8ba802b8f2fd5e58 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期一, 09 九月 2024 18:03:00 +0800 Subject: [PATCH] 设备功能 --- 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