jyy
2021-03-11 10fe021916da34ecab032cf1c0ed26c4947f522a
zq-erp/src/main/resources/mybatis/mapper/fenxiao/ShopSalesmanApplyDao.xml
@@ -34,8 +34,29 @@
         <result property="companyId" column="company_id" />
   </resultMap>
    <select id="selectInvitationuserList" resultType="com.matrix.system.fenxiao.entity.ShopSalesmanApply">
   <select id="selectInvitationuserInPage" resultType="com.matrix.system.fenxiao.entity.ShopSalesmanApply">
select  * from shop_salesman_apply
<!--
      SELECT
         a.nick_name,
         a.avatar_url,
         a.phone_number,
         (
            SELECT
               IFNULL(sum(IFNULL( b.amount, 0 )),0)
            FROM
               shop_salesman_order b
            WHERE
               b.user_id = a.open_id
              AND b.sales_user_id = #{openId}
         ) AS revenueAmount,
         ( SELECT count( * ) FROM shop_salesman_order c WHERE c.user_id = a.open_id AND c.sales_user_id = #{openId} ) AS orderCount
      FROM
         biz_user a
      WHERE
         a.parent_open_id = #{openId}
        AND a.is_sales = 1 -->
   </select>
</mapper>