<?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="cc.mrbird.febs.mall.mapper.MallSalesmanMapper">
|
|
<select id="selectMallSalesmanListInPage" resultType="cc.mrbird.febs.mall.entity.MallSalesman">
|
SELECT
|
a.*
|
FROM mall_salesman a
|
GROUP BY a.id order by a.CREATED_TIME desc
|
</select>
|
|
<select id="selectTreeByState" resultType="cc.mrbird.febs.mall.vo.AdminMallSalesmansTreeVo">
|
SELECT
|
a.id,
|
a.name
|
FROM mall_salesman a
|
where a.state = #{state}
|
GROUP BY a.id order by a.CREATED_TIME desc
|
</select>
|
|
<select id="agentSelect" resultType="cc.mrbird.febs.mall.vo.AdminAgentSelectVo">
|
SELECT
|
a.id,
|
a.salesmans_id salesmansId
|
FROM mall_member a
|
where a.id = #{memberId}
|
</select>
|
|
</mapper>
|