From 9e5133dfeab70167254c2c2a5a00f86aa0bdebd3 Mon Sep 17 00:00:00 2001 From: zhangxin Date: Tue, 16 Nov 2021 09:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E5=8F=B7=E4=BD=BF=E7=94=A8=E7=9A=84=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E4=B8=BA=E5=BD=93=E5=89=8D=E6=97=A5=E6=9C=9F=20?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E4=BD=BF=E7=94=A8=E8=AE=A1=E5=88=92=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/om/implments/SerialOrder.service.impl.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/om/implments/SerialOrder.service.impl.go b/services/om/implments/SerialOrder.service.impl.go index 0260d3c..85a3da0 100644 --- a/services/om/implments/SerialOrder.service.impl.go +++ b/services/om/implments/SerialOrder.service.impl.go @@ -401,7 +401,6 @@ func (impl *SerialOrderServiceImplement) InsertFromWorkOrder(user *models.Userta log.Error("InsertFromWorkOrder SerialOrder InsertFromWorkOrder generate serial order id failed, error: " + err.Error()) return nil, err } - planStartDate := workOrder.PlanStartDate.Restore().Format("20060102") article, exist := artMap[workOrder.ArtId] if !exist { article, err = articleDao.SelectOne(workOrder.ArtId) @@ -416,7 +415,7 @@ func (impl *SerialOrderServiceImplement) InsertFromWorkOrder(user *models.Userta return nil, err } } - prefix := article.PartId + baseModel.PlantName + planStartDate + prefix := article.PartId + baseModel.PlantName + time.Now().Format("20060102") serialOrderId := strings.Replace(serialNum, "SO-", prefix, 1) var planEndTime time.Time if perDuration != 0 {