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.

36 lines
1.4 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.example.demo.mapper.coin.GeneralMapper">
<select id="getMarket" resultType="java.lang.String">
select DISTINCT name from market where type=2
</select>
<select id="getALLAdminMarket" resultType="java.lang.String">
select DISTINCT market from admin
</select>
<select id="getPlatform" resultType="java.lang.String">
select DISTINCT pay_platform from user_gold_record
</select>
<select id="getGoods" resultType="java.lang.String">
select DISTINCT goods_name from user_gold_record
</select>
<select id="getActivity" resultType="java.lang.String">
select DISTINCT activity from user_gold_record
</select>
<!--获取角色的地区权限列表-->
<select id="getAdminMarket" resultType="java.lang.String">
select market from admin
where account = #{account}
</select>
<select id="getRoleMarket" resultType="java.lang.String">
select market from role
where id = #{roleId}
</select>
<select id="getAllRoleMarket" resultType="java.lang.String">
select DISTINCT name from market where type=2
</select>
<select id="getRate" resultType="com.example.demo.domain.entity.Rate">
select id,rate_name from rate
</select>
</mapper>