xiaoyong931011
2021-03-16 f9fab7b4d668a5f77136d18f0fc7314b763206eb
zq-erp/src/main/resources/mybatis/mapper/fenxiao/ShopSalesmanApplyDao.xml
@@ -73,7 +73,7 @@
      ( SELECT IFNULL(sum(IFNULL(amount, 0)), 0) FROM shop_salesman_order
      WHERE user_id = a.user_id AND order_status = 1 AND sales_user_id = a.user_id ) balance,
      g.NAME grade,
      b.binding_parent_time createTime,
      a.create_time createTime,
      a.apply_status applyStatus,
      a.apply_way applyWay
      FROM
@@ -215,7 +215,7 @@
      WHERE user_id = a.user_id AND order_status = 2 AND sales_user_id = a.user_id ) totalRevenue,
      ( SELECT IFNULL(sum(IFNULL(amount, 0)), 0) FROM shop_salesman_order
      WHERE user_id = a.user_id AND order_status = 1 AND sales_user_id = a.user_id ) balance,
      b.binding_parent_time createTime,
      a.create_time createTime,
      a.apply_status applyStatus,
      a.apply_way applyWay
      FROM