jyy
2021-03-16 cc290cd8026dbc96a571e9e63c8de75a0ebf71a0
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