Browse Source

Merge pull request '增加序号' (#429) from feature_shipOrder into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_BACKEND/pulls/429
Reviewed-by: 娄文智 <wenzhi.lou@le-it.com.cn>
pull/430/head
娄文智 3 years ago
parent
commit
e068279708
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      services/jit/implments/ShipOrder.service.impl.go

+ 7
- 4
services/jit/implments/ShipOrder.service.impl.go View File

@ -159,10 +159,6 @@ func (impl *ShipOrderServiceImplement) InsertOne(user *models.Usertab, entity *m
if row[6] == "" {
continue
}
if i, err := strconv.ParseInt(row[0], 10, 64); err == nil {
entity.EndSequence = int(i)
}
planQty := 0
orderQty := 0
if i, err := strconv.ParseInt(row[7], 10, 64); err == nil {
@ -183,6 +179,13 @@ func (impl *ShipOrderServiceImplement) InsertOne(user *models.Usertab, entity *m
PartName: row[2],
ShortShipToggle: false,
}
if i, err := strconv.ParseInt(row[0], 10, 64); err == nil {
entity.EndSequence = int(i)
info.Pos = int(i)
}
//判断是否是零件
if orderQty == 0 && planQty > 0 {
articleId = append(articleId, info.ItemId)


Loading…
Cancel
Save