UnitBrandModelMapper.xml 790 B

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.energy.manage.service.mappers.units.UnitDictBrandModelMapper">
  4. <select id="selectUnitManufactureByUnitType" resultType="java.lang.String">
  5. select manufacture from unit_dict_brand_model where unit_type = #{unitType} group by manufacture
  6. </select>
  7. <select id="selectUnitModelNumberByManufacture" resultType="java.lang.String">
  8. select
  9. model_number as modelNumber
  10. from
  11. unit_dict_brand_model
  12. where
  13. unit_type = #{unitType}
  14. and
  15. manufacture = #{manufacture}
  16. group by model_number
  17. </select>
  18. </mapper>