|
@@ -404,6 +404,7 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
|
|
|
fmt.Println(startDate)
|
|
|
fmt.Println(endDate)
|
|
|
resp := new(statistic_report.RaiDataSummaryPopupTypeResp)
|
|
|
+ var listResp []*statistic_report.RaiDataSummaryDetailResp
|
|
|
var trialTotal int
|
|
|
switch popupType {
|
|
|
case "新增试用":
|
|
@@ -433,18 +434,25 @@ func (this *StatisticRaiDataSummaryController) RaiDataSummaryDetail() {
|
|
|
}
|
|
|
if len(tryList) > 0 {
|
|
|
for _, v := range tryList {
|
|
|
+ item := new(statistic_report.RaiDataSummaryDetailResp)
|
|
|
v.SellerName = v.SysRealName
|
|
|
if v.Operation == "add" {
|
|
|
- v.Operation = "新建"
|
|
|
+ item.AddType = "新建"
|
|
|
} else if v.Operation == "receive" || v.Operation == "apply_receive" {
|
|
|
- v.Operation = "领取"
|
|
|
+ item.AddType = "领取"
|
|
|
}
|
|
|
+ item.CompanyName = v.CompanyName
|
|
|
+ item.SellerName = v.SellerName
|
|
|
+ item.CreateTime = v.CreateTime
|
|
|
+ listResp = append(listResp, item)
|
|
|
}
|
|
|
- resp.AddTrialItem.List = tryList
|
|
|
- } else {
|
|
|
- resp.AddTrialItem.List = make([]*models.IncrementalList, 0)
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if len(listResp) == 0 {
|
|
|
+ listResp = make([]*statistic_report.RaiDataSummaryDetailResp, 0)
|
|
|
+ }
|
|
|
+ resp.List = listResp
|
|
|
page := paging.GetPaging(currentIndex, pageSize, trialTotal)
|
|
|
resp.Paging = page
|
|
|
br.Ret = 200
|