Commit 4dbf2f2c by mushishixian

默认匹配到就选中

parent 2b4e0581
......@@ -57,7 +57,7 @@ func BatchSaveMatchings(bomId int, matchingList []model.BomItemMatching) (err er
itemStatus = 3
}
err = model.Db.Table("lie_bom_item_"+tableEnd).Where("bom_item_id = ?", matching.BomItemID).
Updates(map[string]interface{}{"item_status": itemStatus, "update_time": now}).Error
Updates(map[string]interface{}{"item_status": itemStatus, "update_time": now, "is_select": 1}).Error
if err != nil {
return
}
......
......@@ -100,7 +100,7 @@ func GetGoodsInfo(goodsIdsStr string) (goodsList []model.ApiGoods, err error) {
var goods model.ApiGoods
goods.GoodsName = data.Get("goods_name").String()
goods.GoodsID = data.Get("goods_id").String()
goods.BrandID = int(data.Get("goods_id").Int())
goods.BrandID = int(data.Get("brand_id").Int())
goods.Pdf = data.Get("pdf").String()
goods.Stock = int(data.Get("stock").Int())
goods.Mpq = int(data.Get("mpq").Int())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment