京东商城商品规格小数
This commit is contained in:
@@ -434,9 +434,6 @@ func updateSingleOrderEarningPrice(order *model.GoodsOrder, db *dao.DaoDB) {
|
||||
}
|
||||
}
|
||||
if len(skuIDMap) > 0 {
|
||||
if order.VendorOrderID == "5000356075877900459" {
|
||||
fmt.Println("testupdateSingleOrderEarningPrice", order.VendorOrderID)
|
||||
}
|
||||
actStoreSkuList, err := dao.GetEffectiveActStoreSkuInfo(db, 0, []int{order.VendorID}, model.ActTypeAll, []int{jxStoreID}, jxutils.IntMap2List(skuIDMap), order.OrderCreatedAt, order.OrderCreatedAt)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Errorf("updateOrderSkuOtherInfo can not get sku promotion info for error:%v", err)
|
||||
|
||||
@@ -773,7 +773,7 @@ func buildUpdateSkusParam(storeSku *dao.StoreSkuSyncInfo, v *dao.StoreSkuSyncInf
|
||||
multiPropSku []*jdshopapi.CreateSkuParamAttrs
|
||||
)
|
||||
valuesSku, maxNo, _ := api.JdShopAPI.FindValuesByAttrId(attrIDs["规格"])
|
||||
specQuality := utils.Float64ToStr(float64(v.SpecQuality)) + v.SpecUnit
|
||||
specQuality := strings.TrimRight(fmt.Sprintf("%.2f", float64(v.SpecQuality)), "0.") + v.SpecUnit
|
||||
for _, v := range valuesSku {
|
||||
if v.Name == specQuality {
|
||||
ggValueID = v.ID
|
||||
|
||||
Reference in New Issue
Block a user