Browse Source

修改返修生成的条码规则

pull/453/head
zhangxin 3 years ago
parent
commit
c6800856fd
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      services/qm/implments/ReclinerReclst.service.impl.go

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

@ -135,7 +135,7 @@ func (impl *ReclinerReclstServiceImplement) InsertOne(user *models.Usertab, enti
if len(orderId) < 27 {
return grmi.NewBusinessError("序列订单长度错误!")
}
entity.ReclinerNr = orderId[0:19] + "R" + orderId[20:27]
entity.ReclinerNr = orderId[0:19] + "9" + orderId[20:27]
err = dao.InsertOne(entity)
if err != nil {
return err
@ -184,7 +184,7 @@ func (impl *ReclinerReclstServiceImplement) InsertSeriOne(user *models.Usertab,
if len(orderId) < 27 {
return grmi.NewBusinessError("序列订单长度错误!")
}
entity.ReclinerNr = orderId[0:19] + "R" + orderId[20:27]
entity.ReclinerNr = orderId[0:19] + "9" + orderId[20:27]
err = dao.InsertOne(entity)
if err != nil {
return err
@ -234,7 +234,7 @@ func (impl *ReclinerReclstServiceImplement) SelectSeriOne(user *models.Usertab,
if len(orderId) < 27 {
return nil, grmi.NewBusinessError("序列订单长度错误!")
}
entity.ReclinerNr = orderId[0:19] + "R" + orderId[20:27]
entity.ReclinerNr = orderId[0:19] + "9" + orderId[20:27]
return entity, nil
}


Loading…
Cancel
Save