张延森 2 лет назад
Родитель
Сommit
ddb13ca7a2

+ 7
- 0
src/main/java/com/yunzhi/marketing/broker/vo/BrokerSummery.java Просмотреть файл

@@ -35,6 +35,10 @@ public class BrokerSummery {
35 35
     @ApiModelProperty("客户数")
36 36
     Integer customerNum;
37 37
 
38
+    @TableField(exist = false)
39
+    @ApiModelProperty("成交客户数")
40
+    Integer signedNum;
41
+
38 42
     @TableField(exist = false)
39 43
     @ApiModelProperty("经纪人数")
40 44
     Integer brokerNum;
@@ -42,6 +46,9 @@ public class BrokerSummery {
42 46
     @ApiModelProperty("总佣金")
43 47
     private Integer totalCommission;
44 48
 
49
+    @ApiModelProperty("已结佣金")
50
+    private Integer settledCommission;
51
+
45 52
     @ApiModelProperty("总推荐金额")
46 53
     private Integer referralFee;
47 54
 }

+ 3
- 1
src/main/resources/mapper/TaPersonMapper.xml Просмотреть файл

@@ -700,13 +700,15 @@ FROM
700 700
         SELECT
701 701
             t.*,
702 702
             s.customer_num,
703
+            s.signed_Num,
703 704
             m.broker_num
704 705
         FROM
705 706
             ta_person t
706 707
                 LEFT JOIN (
707 708
                 SELECT
708 709
                     a.recommend_person,
709
-                    count( 1 ) AS customer_num
710
+                    count( 1 ) AS customer_num,
711
+                    sum(IF(a.signed_date IS NULL, 0, 1)) AS signed_Num
710 712
                 FROM
711 713
                     xlk_channel_customer a
712 714
                 WHERE