LevelExperienceMapper.xml 1004 B

123456789101112131415161718192021222324252627282930
  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.LevelExperienceMapper">
  6. <select id="getExperienceLevel" parameterType="long" resultType="com.juxiao.xchat.module.xbd.dto.LevelExperienceDTO">
  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_experience`
  22. WHERE
  23. need_min <= #{experience}
  24. AND
  25. need_max > #{experience}
  26. AND
  27. `status` = 1
  28. ]]>
  29. </select>
  30. </mapper>