eight
2025-03-31 c663b36cebeed7b40498a4e676559b62c0d4bee6
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,27 @@
                .orderByDesc(DevModelDO::getId));
    }
    @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("<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);
}