LevelCharmMapper.xml 989 B

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.juxiao.xchat.module.xbd.mapper.users.LevelCharmMapper">
  6. <select id="getCharmLevel" parameterType="long" resultType="com.juxiao.xchat.module.xbd.dto.LevelCharmDTO">
  7. <![CDATA[
  8. SELECT
  9. `id` AS `id`,
  10. `level_seq` AS `levelSeq`,
  11. `level_name` AS `levelName`,
  12. `level_grp` AS `levelGrp`,
  13. `amount` AS `amount`,
  14. `need_min` AS `needMin`,
  15. `need_max` AS `needMax`,
  16. `status` AS `status`,
  17. `broadcast` AS `broadcast`,
  18. `interaction` AS `interaction`,
  19. `create_time` AS `createTime`
  20. FROM
  21. `level_charm`
  22. WHERE
  23. `need_min` <= #{experience}
  24. AND
  25. `need_max` > #{experience}
  26. AND
  27. `status` = 1
  28. ]]>
  29. </select>
  30. </mapper>