更新调价包修改

This commit is contained in:
苏尹岚
2019-12-11 15:28:25 +08:00
parent c0cd4fe692
commit 7182ea87d5
3 changed files with 119 additions and 18 deletions

View File

@@ -1058,7 +1058,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)
@@ -1201,7 +1201,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)
}
}
}