소스 검색

Merge branch 'CRM_15.7' into debug

zwxi 1 년 전
부모
커밋
deadd8750f
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      controllers/yb_research_signup_statistics.go
  2. 1 0
      models/yb_research_signup_statistics.go

+ 2 - 0
controllers/yb_research_signup_statistics.go

@@ -84,6 +84,8 @@ func (this *BannerController) StatisticsItem() {
 			resp.NoPay.Count += 1
 		}
 	}
+	resp.HasPayed.Name = "已付款"
+	resp.NoPay.Name = "未付款"
 	resp.NoPay.Percentage = resp.NoPay.Count * 100 / resp.Total
 	resp.HasPayed.Percentage = resp.HasPayed.Count * 100 / resp.Total
 

+ 1 - 0
models/yb_research_signup_statistics.go

@@ -80,6 +80,7 @@ type YbResearchSignupStatisticsItemsResp struct {
 	NoPay    PayItem
 }
 type PayItem struct {
+	Name       string
 	Count      int
 	Amount     float64
 	Percentage int