Browse Source

修改弧焊机返修订单号

fix_editOrder
娄文智 3 years ago
parent
commit
0294ba0285
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      services/qm/implments/ReclinerReclst.service.impl.go

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

@ -139,6 +139,10 @@ func (impl *ReclinerReclstServiceImplement) InsertOne(user *models.Usertab, enti
entity.ArtId = artId
entity.RecType = model.QM_REC_TYPE
entity.Status = "N"
if len(orderId) < 27{
return grmi.NewBusinessError("序列订单长度错误!")
}
entity.ReclinerNr = orderId[0:19] + "R" + orderId[20:27]
err = dao.InsertOne(entity)
if err != nil {
return err


Loading…
Cancel
Save