1
This commit is contained in:
@@ -240,9 +240,9 @@ func UpdateTaoVegetable(api *tao_vegetable.API, storeSkuList []*dao.StoreSkuSync
|
|||||||
SkuCode: utils.String2Pointer(utils.Int2Str(v.SkuID)),
|
SkuCode: utils.String2Pointer(utils.Int2Str(v.SkuID)),
|
||||||
SkuName: utils.String2Pointer(v.SkuName),
|
SkuName: utils.String2Pointer(v.SkuName),
|
||||||
MemberPrice: utils.String2Pointer(utils.Float64ToStr(float64(v.UnitPrice) / float64(100))),
|
MemberPrice: utils.String2Pointer(utils.Float64ToStr(float64(v.UnitPrice) / float64(100))),
|
||||||
SkuPrice: utils.String2Pointer(utils.Float64ToStr(float64(v.UnitPrice) / float64(100))),
|
SkuPrice: utils.String2Pointer(utils.Float64ToStr(float64(v.UnitPrice) / float64(100))), // 优先使用skuPrice 靠后SalePrice
|
||||||
CategoryCode: utils.String2Pointer(utils.Int2Str(v.CategoryID)),
|
CategoryCode: utils.String2Pointer(utils.Int2Str(v.CategoryID)),
|
||||||
MerchantCatCode: utils.String2Pointer(v.SkuVendorCatID),
|
MerchantCatCode: utils.String2Pointer(v.VendorCatID), // 优先使用 靠后 category_code
|
||||||
}
|
}
|
||||||
if v.MinOrderCount <= model.YES {
|
if v.MinOrderCount <= model.YES {
|
||||||
updateSku.PurchaseQuantity = utils.Int64ToPointer(model.YES) // 起购单位
|
updateSku.PurchaseQuantity = utils.Int64ToPointer(model.YES) // 起购单位
|
||||||
@@ -696,7 +696,6 @@ func (p *PurchaseHandler) GetSensitiveWordRegexp() *regexp.Regexp {
|
|||||||
|
|
||||||
// SelectStoreSkuListByFoodList 淘宝批量返回
|
// SelectStoreSkuListByFoodList 淘宝批量返回
|
||||||
func SelectStoreSkuListByFoodList(storeSkuList interface{}, foodList []tao_vegetable.VegetableResultList, storeID int, vendorName, syncType string) (selectedStoreSkuList []*partner.StoreSkuInfoWithErr, successMap map[string]string) {
|
func SelectStoreSkuListByFoodList(storeSkuList interface{}, foodList []tao_vegetable.VegetableResultList, storeID int, vendorName, syncType string) (selectedStoreSkuList []*partner.StoreSkuInfoWithErr, successMap map[string]string) {
|
||||||
globals.SugarLogger.Debugf("=======foodList := %s", utils.Format4Output(foodList, false))
|
|
||||||
foodMap := make(map[string]string, len(foodList))
|
foodMap := make(map[string]string, len(foodList))
|
||||||
successMap = make(map[string]string)
|
successMap = make(map[string]string)
|
||||||
if len(foodList) > 0 {
|
if len(foodList) > 0 {
|
||||||
@@ -743,9 +742,6 @@ func SelectStoreSkuListByFoodList(storeSkuList interface{}, foodList []tao_veget
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("=======selectedStoreSkuList := %s", utils.Format4Output(selectedStoreSkuList, false))
|
|
||||||
globals.SugarLogger.Debugf("=======successMap := %s", utils.Format4Output(successMap, false))
|
|
||||||
|
|
||||||
return selectedStoreSkuList, successMap
|
return selectedStoreSkuList, successMap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user