You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.4 KiB

3 months ago
3 months ago
  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.example.demo.mapper.coin.GeneralMapper">
  4. <select id="getMarket" resultType="java.lang.String">
  5. select DISTINCT name from market where type=2
  6. </select>
  7. <select id="getALLAdminMarket" resultType="java.lang.String">
  8. select DISTINCT market from admin
  9. </select>
  10. <select id="getPlatform" resultType="java.lang.String">
  11. select DISTINCT pay_platform from user_gold_record
  12. </select>
  13. <select id="getGoods" resultType="java.lang.String">
  14. select DISTINCT goods_name from user_gold_record
  15. </select>
  16. <select id="getActivity" resultType="java.lang.String">
  17. select DISTINCT activity from user_gold_record
  18. </select>
  19. <!--获取角色的地区权限列表-->
  20. <select id="getAdminMarket" resultType="java.lang.String">
  21. select market from admin
  22. where account = #{account}
  23. </select>
  24. <select id="getRoleMarket" resultType="java.lang.String">
  25. select market from role
  26. where id = #{roleId}
  27. </select>
  28. <select id="getAllRoleMarket" resultType="java.lang.String">
  29. select DISTINCT name from market where type=2
  30. </select>
  31. <select id="getRate" resultType="com.example.demo.domain.entity.Rate">
  32. select id,rate_name from rate
  33. </select>
  34. </mapper>