|
|
@ -466,15 +466,6 @@ func (impl *ReclinerReclstServiceImplement) InsertSeriOne(user *global.User, ent |
|
|
|
return grmi.NewBusinessError("不存在指定记录!") |
|
|
|
} |
|
|
|
orderId := entity.SerialOrderId |
|
|
|
entity.ArtId = seriInfo.ArtId |
|
|
|
entity.Line = seriInfo.PlanResourceId |
|
|
|
entity.RecType = model.QM_SERI_TYPE |
|
|
|
entity.Status = "N" |
|
|
|
entity.ReclinerNr = "R-" + orderId |
|
|
|
err = dao.InsertOne(entity) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
if len(orderId) < 11 { |
|
|
|
return grmi.NewBusinessError("订单号长度不合法!") |
|
|
@ -524,6 +515,15 @@ func (impl *ReclinerReclstServiceImplement) InsertSeriOne(user *global.User, ent |
|
|
|
serialOrderId := machineCode + yearStr + monthStr + dayStr + nextNumberStr + "0" + ColorValue |
|
|
|
|
|
|
|
entity.ReclinerNr = serialOrderId |
|
|
|
entity.ArtId = seriInfo.ArtId |
|
|
|
entity.Line = seriInfo.PlanResourceId |
|
|
|
entity.RecType = model.QM_SERI_TYPE |
|
|
|
entity.Status = "N" |
|
|
|
err = dao.InsertOne(entity) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|