Browse Source

Merge pull request '修改返修生成的条码规则' (#453) from fix_om into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_BACKEND/pulls/453
Reviewed-by: 娄文智 <wenzhi.lou@le-it.com.cn>
pull/454/head
娄文智 3 years ago
parent
commit
f17b50414e
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 { if len(orderId) < 27 {
return grmi.NewBusinessError("序列订单长度错误!") 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) err = dao.InsertOne(entity)
if err != nil { if err != nil {
return err return err
@ -184,7 +184,7 @@ func (impl *ReclinerReclstServiceImplement) InsertSeriOne(user *models.Usertab,
if len(orderId) < 27 { if len(orderId) < 27 {
return grmi.NewBusinessError("序列订单长度错误!") 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) err = dao.InsertOne(entity)
if err != nil { if err != nil {
return err return err
@ -234,7 +234,7 @@ func (impl *ReclinerReclstServiceImplement) SelectSeriOne(user *models.Usertab,
if len(orderId) < 27 { if len(orderId) < 27 {
return nil, grmi.NewBusinessError("序列订单长度错误!") 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 return entity, nil
} }


Loading…
Cancel
Save