ImgItemMapper.xml 850 B

1234567891011121314151617181920212223
  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.demo.wjj.mapper.TbImgItemMapper">
  4. <select id="selectAll" resultType="com.demo.wjj.po.ImgItem">
  5. select t.id id,
  6. t.img_bq_id imgBqId,
  7. t.img_bq_name imgBqName,
  8. t.img_ml_name imgMlName,
  9. t.type type,
  10. t.img_url imgUrl
  11. from tb_img_item t
  12. where t.type = #{type}
  13. GROUP by t.img_bq_name ;
  14. </select>
  15. <select id="selectImamlNameList" resultType="java.lang.String">
  16. select t.img_ml_name
  17. from tb_img_item t
  18. where t.type = #{type} and t.img_bq_id = #{imgbqId}
  19. </select>
  20. </mapper>