From 37a64e6972df2b705670774047c65f9a0ce60ac1 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 03 七月 2024 16:15:10 +0800
Subject: [PATCH] 月度统计定时任务按设定的时间查询相应数据&修复若干bug

---
 service/location_forms.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/service/location_forms.go b/service/location_forms.go
index f6cf85b..15275ce 100644
--- a/service/location_forms.go
+++ b/service/location_forms.go
@@ -27,7 +27,7 @@
 		resp := new(response.LocationForms)
 		resp.Amount = amount.Amount
 		resp.LocationId = amount.LocationId
-		resp.LocationName = amount.Location.Name
+		resp.LocationName = amount.Location.JointName
 		resp.ProduceId = amount.Product.ID
 		resp.ProductName = amount.Product.Name
 		resp.ProductTypeName = amount.ProductCategory.Name
@@ -46,7 +46,7 @@
 }
 
 func (slf *LocationFormsService) BuildSearch(params request.GetLocationForms) (search *models.LocationProductAmountSearch, err error) {
-	ids := make([]int, 0)
+	ids := params.LocationIds
 	if params.LocationId != 0 {
 		ids = append(ids, params.LocationId)
 	} else {

--
Gitblit v1.8.0