From 91d7ca06128f996844aa7d2d691d083c944bdf1d Mon Sep 17 00:00:00 2001 From: lishihai <dslsh@dscom> Date: 星期三, 03 七月 2024 17:22:16 +0800 Subject: [PATCH] 导入物料/产品->新模版BUG修复 --- service/month_forms.go | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/service/month_forms.go b/service/month_forms.go index aca3f1a..9f1aed5 100644 --- a/service/month_forms.go +++ b/service/month_forms.go @@ -11,7 +11,6 @@ "wms/models" "wms/pkg/logx" "wms/request" - "wms/utils" ) type MonthFormsService struct{} @@ -197,7 +196,12 @@ } productMap := models.MaterialMap(products) - beginTime, endTime := utils.GetLastMonthPeriod() + //鎸夐厤缃彇寮�濮嬫椂闂村拰缁撴潫鏃堕棿 + beginTime, endTime, err := NewSystemConfigService().GetInventoryCutOffTime() + if err != nil { + logx.Errorf("MonthStats GetCurrentStats get GetInventoryCutOffTime err:%v", err) + return + } inputMap, err := GetStatsByOperationType(beginTime, endTime, constvar.BaseOperationTypeIncoming) if err != nil { logx.Errorf("MonthStats GetStatsByOperationType input err:%v", err) -- Gitblit v1.8.0