Browse Source

Merge pull request '提交返修条码' (#454) from fix_packRepair into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_BACKEND/pulls/454
Reviewed-by: zhangxin <xin.zhang@le-it.com.cn>
fix_packRepair
zhangxin 3 years ago
parent
commit
98427c82d6
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      services/qm/implments/ReclinerReclst.service.impl.go

+ 4
- 3
services/qm/implments/ReclinerReclst.service.impl.go View File

@ -15,6 +15,7 @@ import (
"LAPP_GAAS_GFrame_BACKEND/utils"
"LAPP_GAAS_GFrame_BACKEND/web/models"
"fmt"
"strings"
)
/******************************************************************************
@ -127,7 +128,7 @@ func (impl *ReclinerReclstServiceImplement) InsertOne(user *models.Usertab, enti
if artInfo == nil {
return grmi.NewBusinessError("客户订单号没有维护!")
}
orderId := entity.SerialOrderId
orderId := strings.ToUpper(entity.SerialOrderId)
entity.ArtId = seriInfo.ArtId
entity.RecType = model.QM_REC_TYPE
@ -180,7 +181,7 @@ func (impl *ReclinerReclstServiceImplement) InsertSeriOne(user *models.Usertab,
entity.Line = seriInfo.PlanResourceId
entity.RecType = model.QM_SERI_TYPE
entity.Status = "N"
orderId := entity.SerialOrderId
orderId := strings.ToUpper(entity.SerialOrderId)
if len(orderId) < 27 {
return grmi.NewBusinessError("序列订单长度错误!")
}
@ -225,7 +226,7 @@ func (impl *ReclinerReclstServiceImplement) SelectSeriOne(user *models.Usertab,
return nil, grmi.NewBusinessError("客户订单号没有维护!")
}
entity := new(model.ReclinerReclst)
orderId = strings.ToUpper(seriInfo.SerialOrderId)
entity.PlantNr = user.Pid
entity.ArtId = seriInfo.ArtId
entity.SerialOrderId = orderId


Loading…
Cancel
Save