From 2bfc37cbc679ceb5cef3b714e93ce4ebf55f9512 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 08 十一月 2023 17:24:58 +0800
Subject: [PATCH] 修改缩略图尺寸 config文件覆盖修复

---
 controllers/report_forms_controller.go |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/controllers/report_forms_controller.go b/controllers/report_forms_controller.go
index afffdb5..7370006 100644
--- a/controllers/report_forms_controller.go
+++ b/controllers/report_forms_controller.go
@@ -132,7 +132,7 @@
 	if params.PageInfo.Check() {
 		detailsSearch.SetPage(params.Page, params.PageSize)
 	}
-	details, err := detailsSearch.SetProductId(params.ProduceId).FindNotTotal()
+	details, total, err := detailsSearch.SetProductId(params.ProduceId).Find()
 	if err != nil {
 		util.ResponseFormat(c, code.RequestParamError, "鏌ヨ鎿嶄綔璇︽儏澶辫触")
 		return
@@ -142,8 +142,8 @@
 		operationIds = append(operationIds, detail.OperationID)
 	}
 	//鑾峰彇宸插畬鎴愮殑鎿嶄綔璁板綍
-	operations, total, err := models.NewOperationSearch().SetIds(operationIds).SetBaseOperationType(params.BaseOperationType).
-		SetStatus(constvar.OperationStatus_Finish).Find()
+	operations, err := models.NewOperationSearch().SetIds(operationIds).SetBaseOperationType(params.BaseOperationType).
+		SetStatus(constvar.OperationStatus_Finish).FindNotTotal()
 	if err != nil {
 		util.ResponseFormat(c, code.RequestParamError, "鏌ヨ鎿嶄綔璁板綍澶辫触")
 		return

--
Gitblit v1.8.0