银豹api改价修改
This commit is contained in:
@@ -235,6 +235,7 @@ func storeSkuSyncInfo2Bare(inSku *dao.StoreSkuSyncInfo) (outSku *partner.StoreSk
|
|||||||
VendorPrice: inSku.VendorPrice,
|
VendorPrice: inSku.VendorPrice,
|
||||||
Seq: inSku.Seq,
|
Seq: inSku.Seq,
|
||||||
JxPrice: inSku.Price,
|
JxPrice: inSku.Price,
|
||||||
|
JxUnitPrice: inSku.UnitPrice,
|
||||||
}
|
}
|
||||||
if !isStoreSkuSyncNeedDelete(inSku) {
|
if !isStoreSkuSyncNeedDelete(inSku) {
|
||||||
outSku.Stock = model.MaxStoreSkuStockQty
|
outSku.Stock = model.MaxStoreSkuStockQty
|
||||||
@@ -531,6 +532,7 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
|||||||
priceList = priceList[:]
|
priceList = priceList[:]
|
||||||
priceList = rList2
|
priceList = rList2
|
||||||
for _, v := range priceList {
|
for _, v := range priceList {
|
||||||
|
v.VendorPrice = int64(jxutils.CaculatePriceByPricePack(storeDetail.PricePercentagePackObj, int(storeDetail.PricePercentage), int(v.JxUnitPrice)))
|
||||||
price, _ := GetSkuNamePrice(db, v.SkuID, v.JxPrice)
|
price, _ := GetSkuNamePrice(db, v.SkuID, v.JxPrice)
|
||||||
v.JxPrice = price
|
v.JxPrice = price
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ type StoreSkuInfo struct {
|
|||||||
VendorActID string `json:"vendorActID,omitempty"`
|
VendorActID string `json:"vendorActID,omitempty"`
|
||||||
IsSpecialty int `json:"isSpecialty,omitempty"`
|
IsSpecialty int `json:"isSpecialty,omitempty"`
|
||||||
JxPrice int64 `json:"jxPrice,omitempty"`
|
JxPrice int64 `json:"jxPrice,omitempty"`
|
||||||
|
JxUnitPrice int64 `json:"jxUnitPrice,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type StoreSkuInfoWithErr struct {
|
type StoreSkuInfoWithErr struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user