Merge branch 'mark' of e.coding.net:rosydev/jx-callback into mark

This commit is contained in:
gazebo
2019-12-11 16:55:05 +08:00
3 changed files with 119 additions and 18 deletions

View File

@@ -1060,7 +1060,7 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend
err = ErrCanNotFindVendor
}
} else {
ReCalculateJxPrice(db, ctx, []int{storeID})
ReCalculateJxPriceLight(db, ctx, storeID)
}
if err == nil {
dao.WrapAddIDCULDEntity(storeMap, userName)
@@ -1202,7 +1202,7 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
}
} else {
if valid["pricePercentage"] != nil || valid["pricePercentagePack"] != nil {
ReCalculateJxPrice(db, ctx, []int{storeID})
ReCalculateJxPriceLight(db, ctx, storeID)
}
}
}