Browse Source

Merge pull request '修改弧焊机返修订单号' (#447) from fix_editOrder into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_BACKEND/pulls/447
Reviewed-by: zhangxin <xin.zhang@le-it.com.cn>
pull/448/head
zhangxin 3 years ago
parent
commit
9230cfbcea
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.ArtId = artId
entity.RecType = model.QM_REC_TYPE entity.RecType = model.QM_REC_TYPE
entity.Status = "N" entity.Status = "N"
if len(orderId) < 27{
return grmi.NewBusinessError("序列订单长度错误!")
}
entity.ReclinerNr = orderId[0:19] + "R" + orderId[20:27]
err = dao.InsertOne(entity) err = dao.InsertOne(entity)
if err != nil { if err != nil {
return err return err


Loading…
Cancel
Save