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.

21 lines
912 B

  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.GeneralMapper">
  4. <select id="getMarket" resultType="java.lang.String">
  5. select DISTINCT market from user
  6. </select>
  7. <select id="getPlatform" resultType="java.lang.String">
  8. select DISTINCT pay_platform from user_gold_record
  9. </select>
  10. <select id="getGoods" resultType="java.lang.String">
  11. select DISTINCT goods_name from user_gold_record
  12. </select>
  13. <select id="getActivity" resultType="java.lang.String">
  14. select DISTINCT activity from user_gold_record
  15. </select>
  16. <!--获取角色的地区权限列表-->
  17. <select id="getRoleMarket" resultType="java.lang.String">
  18. select market from admin
  19. where account = #{account}
  20. </select>
  21. </mapper>