Browse Source

更新

master
huangjiajun 4 months ago
parent
commit
bfda75bb84
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      app/db/db_order_goods_make_stock.go

+ 7
- 1
app/db/db_order_goods_make_stock.go View File

@@ -18,7 +18,13 @@ func GetOrderGoodsMakeStockByIpad(eg *xorm.Engine, param map[string]string) (*[]
sess.And("wait_baking_num >0") sess.And("wait_baking_num >0")
} }
if param["state"] == "3" { if param["state"] == "3" {
sess.And("wait_sorting_num >0")
var goods []model.OrderGoods
eg.Where("goods_type=0 and state=1").Find(&goods)
ids := []int64{-1}
for _, v := range goods {
ids = append(ids, v.SkuId)
}
sess.And("wait_sorting_num >0").In("sku_id", ids)
} }
if param["keyword"] != "" { if param["keyword"] != "" {
sess.And("goods_title like ?", "%"+param["keyword"]+"%") sess.And("goods_title like ?", "%"+param["keyword"]+"%")


Loading…
Cancel
Save