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