This commit is contained in:
邹宗楠
2022-11-15 15:45:04 +08:00
parent b5bd39e653
commit 5efb824c91
2 changed files with 2 additions and 6 deletions

View File

@@ -261,6 +261,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
}
temp.TemplateID = param.FreightId
_, err = dao.UpdateEntity(db, temp, "TemplateID")
dao.FreightTemplateMap[temp.StoreID] = temp
}
if temp.TradeLimitID != 0 {
param.SaleLimitId = temp.TradeLimitID
@@ -272,6 +273,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
}
temp.TradeLimitID = param.SaleLimitId
_, err = dao.UpdateEntity(db, temp, "TradeLimitID")
dao.FreightTemplateMap[temp.StoreID] = temp
}
}