Browse Source

提档时onlybarcode自增列设置空

develop
zhangxin 1 year ago
parent
commit
c7cb053141
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      services/om/implments/SerialOrder.Logic.impl.go

+ 4
- 0
services/om/implments/SerialOrder.Logic.impl.go View File

@ -859,6 +859,10 @@ func (impl *SerialOrderServiceImplement) ExtractArchiveData(user *global.User, s
if err != nil { if err != nil {
return grmi.NewBusinessError("恢复到生产库失败, 错误:" + err.Error()) return grmi.NewBusinessError("恢复到生产库失败, 错误:" + err.Error())
} }
for index, item := range onlyBarcodeLi {
item.DetailId = 0
onlyBarcodeLi[index] = item
}
err = onlyBarcodeDao.Insert(&onlyBarcodeLi) err = onlyBarcodeDao.Insert(&onlyBarcodeLi)
if err != nil { if err != nil {
return grmi.NewBusinessError("恢复到生产库失败, 错误:" + err.Error()) return grmi.NewBusinessError("恢复到生产库失败, 错误:" + err.Error())


Loading…
Cancel
Save