From 400f9a4eac47895bd17e2f0fe3be58227a86bacf Mon Sep 17 00:00:00 2001 From: zhangxin Date: Fri, 24 Dec 2021 11:31:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89=E5=8F=91=E5=B8=83mp?= =?UTF-8?q?s=E8=AE=A1=E5=88=92=E4=B8=AD=E5=A4=96=E8=B4=AD=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E7=9A=84=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/ap/implments/Balance.service.impl.go | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/services/ap/implments/Balance.service.impl.go b/services/ap/implments/Balance.service.impl.go index 8708f23..45443c0 100644 --- a/services/ap/implments/Balance.service.impl.go +++ b/services/ap/implments/Balance.service.impl.go @@ -2915,26 +2915,26 @@ func (impl *BalanceServiceImplement) PublishMpsPlan(user *global.User, version s planOrderList = append(planOrderList, planOrder) } - if info.OutSourcingQty-info.OriginOutSourcingQty > 0 { - date := info.DemandDate - if !utils.WeekDayMondayZeroTs(info.DemandDate.Restore()).Before(utils.WeekDayMondayZeroTs(time.Now())) { - date = grmi.Date(time.Now()) - } - IndependentDemandQty := model.ArticleIndependentDemand{ - PlantNr: user.PlantNr, - ArtId: info.ArtId, - DemandKey: info.DemandKey, - VersionNr: data_PlanOrderVersion.VersionNr, - ProjectId: info.ProjectId, - CustomerId: info.CustomerId, - DemandDate: date, - DemandYear: info.DemandYear, - DemandWeek: info.DemandWeek, - DemandMonth: info.DemandMonth, - DemandQty: info.OutSourcingQty - info.OriginOutSourcingQty, - } - IndependentDemandQtyList = append(IndependentDemandQtyList, IndependentDemandQty) - } + //if info.OutSourcingQty-info.OriginOutSourcingQty > 0 { + // date := info.DemandDate + // if !utils.WeekDayMondayZeroTs(info.DemandDate.Restore()).Before(utils.WeekDayMondayZeroTs(time.Now())) { + // date = grmi.Date(time.Now()) + // } + // IndependentDemandQty := model.ArticleIndependentDemand{ + // PlantNr: user.PlantNr, + // ArtId: info.ArtId, + // DemandKey: info.DemandKey, + // VersionNr: data_PlanOrderVersion.VersionNr, + // ProjectId: info.ProjectId, + // CustomerId: info.CustomerId, + // DemandDate: date, + // DemandYear: info.DemandYear, + // DemandWeek: info.DemandWeek, + // DemandMonth: info.DemandMonth, + // DemandQty: info.OutSourcingQty - info.OriginOutSourcingQty, + // } + // IndependentDemandQtyList = append(IndependentDemandQtyList, IndependentDemandQty) + //} // 已发布 info.Status = 2 info.PublishedVersionNr = version -- 2.30.1.windows.1