Browse Source

返修添加

pull/76/head
娄文智 3 years ago
parent
commit
747dc797ae
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      services/qm/implments/ReclinerReclst.service.impl.go

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

@ -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
}


Loading…
Cancel
Save