|
|
@@ -68,7 +68,7 @@ func (l *AcquirerStudentTotalLogic) AcquirerStudentTotal(r *http.Request) (*type
|
|
|
var target int64
|
|
|
l.svcCtx.DB.Table("i2bill_mkt_part_time_user").Select("target").Where("user_id = ? and del_flag = 0", userId).Get(&target)
|
|
|
var res = make(map[string]interface{})
|
|
|
- var invalide, untreated, valide int64
|
|
|
+ var invalide, untreated, valide, repeat int64
|
|
|
for _, t := range totalByCheck {
|
|
|
switch t["check_state"].(int64) {
|
|
|
case 54, 56, 59:
|
|
|
@@ -77,6 +77,8 @@ func (l *AcquirerStudentTotalLogic) AcquirerStudentTotal(r *http.Request) (*type
|
|
|
valide += t["total"].(int64)
|
|
|
case 58:
|
|
|
invalide += t["total"].(int64)
|
|
|
+ case 55:
|
|
|
+ repeat += t["total"].(int64)
|
|
|
default:
|
|
|
untreated += t["total"].(int64)
|
|
|
}
|
|
|
@@ -86,5 +88,6 @@ func (l *AcquirerStudentTotalLogic) AcquirerStudentTotal(r *http.Request) (*type
|
|
|
res["valide"] = valide
|
|
|
res["today_total"] = totalDay[0]["total"]
|
|
|
res["target"] = target
|
|
|
+ res["repeat"] = repeat
|
|
|
return &types.Response{200, "", res}, nil
|
|
|
}
|