带分页的待审核的核算撤回申请列表完成

This commit is contained in:
2023-07-25 10:45:43 +08:00
parent ab44ff5cc4
commit 6fece99e00
4 changed files with 173 additions and 160 deletions

View File

@@ -26,7 +26,7 @@ func withdraw(c *fiber.Ctx) error {
withdrawLog.Info("参数为: ", zap.String("keyword", keyword), zap.Int("page", page))
//中间数据库操作暂且省略。。。。
//首先进行核算报表的分页查询
withdraws, total, err := repository.WithdrawRepository.FindWithdraw(page, &keyword)
withdraws, total, err := repository.WithdrawRepository.FindWithdraw(uint(page), &keyword)
if err != nil {
withdrawLog.Error("检索用户核算报表失败。", zap.Error(err))
return result.Error(http.StatusInternalServerError, err.Error())