wangshan 3 anni fa
parent
commit
9af312b620

+ 1 - 0
src/jfw/modules/subscribepay/src/entity/basePack.go

@@ -226,6 +226,7 @@ func (this *FindRecordStruct) FindJyConsumePackAllRecord() ([]map[string]interfa
 		"s_product": this.Name,
 		"s_month":   this.QueryTime,
 	}
+	log.Println("query:", query, "---", this.Page, this.PageSize)
 	//当月
 	total := util.MQFW.Count(jyCC, query)
 	// query["s_month"] = this.QueryTime

+ 2 - 1
src/jfw/modules/subscribepay/src/entity/commonApi.go

@@ -181,7 +181,8 @@ func InitFindRecord(userId, resourceType, queryTime, platform string, pageSize,
 	if pageSize == 0 {
 		pageSize = 10
 	}
-	if pageNum == 0 {
+	pageNum += 1
+	if pageNum <= 0 {
 		pageNum = 1
 	}
 	if platform == "" {