xiaoyong931011
2023-02-13 c10bc3cd81782fb7b21756580b9b0f0bb4eb0faa
src/main/resources/mapper/modules/MallSalesmanMapper.xml
@@ -9,4 +9,21 @@
        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>