From f6a68e6171a82bc1694899c27d8de3c310742e9d Mon Sep 17 00:00:00 2001 From: yehongyang Date: Tue, 21 Dec 2021 18:26:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E8=9D=B6=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/ap/implments/CustDemandVerHead.service.impl.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/services/ap/implments/CustDemandVerHead.service.impl.go b/services/ap/implments/CustDemandVerHead.service.impl.go index 471399d..c1435a6 100644 --- a/services/ap/implments/CustDemandVerHead.service.impl.go +++ b/services/ap/implments/CustDemandVerHead.service.impl.go @@ -1186,7 +1186,9 @@ func (impl *CustDemandVerHeadServiceImplement) IssueGlobalVersion(user *global.U _week = 7 } startDate = startDate.AddDate(0, 0, 0-int(_week)) + _startDate := grmi.Date(startDate) endDate := startDate.AddDate(0, 0, 7) + _endDate := grmi.Date(endDate) //查询物料 _article := baseModel.Article{} if _info, ok := articleMap[v.ArtId]; ok { @@ -1218,8 +1220,8 @@ func (impl *CustDemandVerHeadServiceImplement) IssueGlobalVersion(user *global.U FNumber: _article.UomId, }, FQty: v.DemandQty, - FStartDate: utils.TimeFormat(startDate, utils.SysTimeform), - FEndDate: utils.TimeFormat(endDate, utils.SysTimeform), + FStartDate: _startDate.ToString(), + FEndDate: _endDate.ToString(), FBaseUnitID: _struct.FNumber{ FNumber: _article.UomId, }, @@ -1249,7 +1251,7 @@ func (impl *CustDemandVerHeadServiceImplement) IssueGlobalVersion(user *global.U FBillTypeID: _struct.FNumber{ FNumber: "YCD01_SYS", }, - FDate: utils.TimeFormat(time.Now(), utils.SysTimeform), + FDate: IssueInfo.ActualReleaseTime.ToString(), FEntity: v, }) if err != nil {