eight
2024-12-10 f77fbfc8c07881f5239ce49b0dc78faaec3628b0
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);
}