huangjiajun 4 miesięcy temu
rodzic
commit
adfa9e125d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      app/admin/svc/order/svc_order_list.go

+ 2
- 2
app/admin/svc/order/svc_order_list.go Wyświetl plik

@@ -798,9 +798,9 @@ func OrderUpdateState(c *gin.Context) {
flow := make([]model.OrderGoodsMakeStock, 0)
sess4 := sess

sess4.Where("sku_id=? and goods_id=? and make_date=?", v.SkuId, v.GoodsId, v.MakeDate).Find(&flow)
sess4.Where("sku_id=? and gid=? and make_date=?", v.SkuId, v.GoodsId, v.MakeDate).Find(&flow)
for _, v1 := range flow {
v1.SuccessNum = v1.WaitSortingNum
v1.SuccessNum += v1.WaitSortingNum
v1.WaitSortingNum = 0
sess5 := sess
_, err = sess5.Where("id=?", v1.Id).Cols("success_num,wait_sorting_num").Update(&v1)


Ładowanie…
Anuluj
Zapisz