Compare commits

..

No commits in common. "6fc60bc333210a3974963bef82cd5f981c61643d" and "21ecde024ea6840b38e179a8b7ee2218c3331824" have entirely different histories.

View File

@ -176,9 +176,6 @@ func (b *Res) GetResCaseRecordList(c *gin.Context) {
} }
pageSize := 100 pageSize := 100
if config.C.Env == "dev" {
pageSize = 2
}
// 获取数据 // 获取数据
caseUserDao := dao.CaseUserDao{} caseUserDao := dao.CaseUserDao{}
@ -349,12 +346,10 @@ func (b *Res) GetResCaseRecordList(c *gin.Context) {
} }
result := make(map[string]interface{}) result := make(map[string]interface{})
result["pindex"] = page result["pindex"] = page
result["psize"] = pageSize result["psize"] = pageSize
result["ptotal"] = int(math.Ceil(float64(total) / float64(pageSize))) result["ptotal"] = int(math.Ceil(float64(total) / float64(pageSize)))
result["ctotal"] = len(g) result["ctotal"] = total
result["total"] = total
result["data"] = g result["data"] = g
responses.OkWithData(result, c) responses.OkWithData(result, c)
} }