正在显示
4 个修改的文件
包含
11 行增加
和
4 行删除
| @@ -229,5 +229,5 @@ func StatisticsV2(header *protocol.RequestHeader, request *protocol.DividendStat | @@ -229,5 +229,5 @@ func StatisticsV2(header *protocol.RequestHeader, request *protocol.DividendStat | ||
| 229 | } | 229 | } |
| 230 | rsp.Timestamp = time.Now().Unix() * 1000 | 230 | rsp.Timestamp = time.Now().Unix() * 1000 |
| 231 | 231 | ||
| 232 | - return | 232 | + return rsp, nil |
| 233 | } | 233 | } |
| @@ -62,5 +62,11 @@ func StatisticsV2(header *protocol.RequestHeader, request *protocol.OrderStatist | @@ -62,5 +62,11 @@ func StatisticsV2(header *protocol.RequestHeader, request *protocol.OrderStatist | ||
| 62 | ) | 62 | ) |
| 63 | 63 | ||
| 64 | err = transactionContext.CommitTransaction() | 64 | err = transactionContext.CommitTransaction() |
| 65 | + // 合并全部的 | ||
| 66 | + rsp.All.CumulativeMoney = rsp.Career.CumulativeMoney + rsp.Business.CumulativeMoney + rsp.Develop.CumulativeMoney + rsp.App.CumulativeMoney | ||
| 67 | + rsp.All.CumulativeQuantity = rsp.Career.CumulativeQuantity + rsp.Business.CumulativeQuantity + rsp.Develop.CumulativeQuantity + rsp.App.CumulativeQuantity | ||
| 68 | + rsp.All.Percent = 100 | ||
| 69 | + rsp.All.TodayRealMoney = rsp.Career.TodayRealMoney + rsp.Business.TodayRealMoney + rsp.Develop.TodayRealMoney + rsp.App.TodayRealMoney | ||
| 70 | + rsp.All.TodayRealQuantity = rsp.Career.TodayRealQuantity + rsp.Business.TodayRealQuantity + rsp.Develop.TodayRealQuantity + rsp.App.TodayRealQuantity | ||
| 65 | return | 71 | return |
| 66 | } | 72 | } |
| @@ -31,11 +31,11 @@ type LoginResponse struct { | @@ -31,11 +31,11 @@ type LoginResponse struct { | ||
| 31 | type LoginRequestV2 struct { | 31 | type LoginRequestV2 struct { |
| 32 | Cid int `json:"cid"` | 32 | Cid int `json:"cid"` |
| 33 | IdType int `json:"idType"` // 用户类型 1:合伙人 2:高管 | 33 | IdType int `json:"idType"` // 用户类型 1:合伙人 2:高管 |
| 34 | - Credentials string `json:"credentials"` // 登录类型 1:密码 2:验证码 | 34 | + Credentials string `json:"credentials"` // 凭证 |
| 35 | ClientId string `json:"clientId"` | 35 | ClientId string `json:"clientId"` |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | -//JWT用户信息 | 38 | +// JWT用户信息 |
| 39 | type JWTUserInfo struct { | 39 | type JWTUserInfo struct { |
| 40 | UserId string `json:"id"` //用户id | 40 | UserId string `json:"id"` //用户id |
| 41 | PassWord string `json:"passWord"` //密码 | 41 | PassWord string `json:"passWord"` //密码 |
| @@ -50,6 +50,7 @@ type OrderStatisticsRequest struct { | @@ -50,6 +50,7 @@ type OrderStatisticsRequest struct { | ||
| 50 | } | 50 | } |
| 51 | type OrderStatisticsResponse struct { | 51 | type OrderStatisticsResponse struct { |
| 52 | Statistics *OrderStatics `json:"statistics,omitempty"` | 52 | Statistics *OrderStatics `json:"statistics,omitempty"` |
| 53 | + All OrderStatic `json:"all"` //全部 | ||
| 53 | Career OrderStatic `json:"career,omitempty"` //事业 | 54 | Career OrderStatic `json:"career,omitempty"` //事业 |
| 54 | Business OrderStatic `json:"business,omitempty"` //业务 | 55 | Business OrderStatic `json:"business,omitempty"` //业务 |
| 55 | Develop OrderStatic `json:"develop,omitempty"` //开发 | 56 | Develop OrderStatic `json:"develop,omitempty"` //开发 |
| @@ -72,7 +73,7 @@ type OrderStatics struct { | @@ -72,7 +73,7 @@ type OrderStatics struct { | ||
| 72 | } | 73 | } |
| 73 | 74 | ||
| 74 | type OrderStatic struct { | 75 | type OrderStatic struct { |
| 75 | - Percent float64 `json:"percent"` // 事业占比 | 76 | + Percent float64 `json:"percent"` //事业占比 |
| 76 | TodayRealQuantity int `json:"todayRealQuantity"` //今日新增实发订单 | 77 | TodayRealQuantity int `json:"todayRealQuantity"` //今日新增实发订单 |
| 77 | TodayRealMoney float64 `json:"todayRealMoney"` //今日新增实发订单金额 | 78 | TodayRealMoney float64 `json:"todayRealMoney"` //今日新增实发订单金额 |
| 78 | CumulativeQuantity int `json:"cumulativeQuantity"` //累计实发订单 | 79 | CumulativeQuantity int `json:"cumulativeQuantity"` //累计实发订单 |
-
请 注册 或 登录 后发表评论