|
@@ -47,6 +47,8 @@ func GetAllPlan(eg *xorm.Engine, dbName string) (map[string]*model.PlanReward, m |
|
|
SysRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["sys_rate"]) / 100, |
|
|
SysRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["sys_rate"]) / 100, |
|
|
RegionRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["region_rate"]) / 100, |
|
|
RegionRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["region_rate"]) / 100, |
|
|
GlobalRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["global_rate"]) / 100, |
|
|
GlobalRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["global_rate"]) / 100, |
|
|
|
|
|
StoreSubsidyRate: zhios_order_relate_utils.StrToFloat64(oneRewardPlan["store_subsidy_rate"]) / 100, |
|
|
|
|
|
RedPacketRate: zhios_order_relate_utils.StrToFloat64(oneRewardPlan["red_packet_rate"]) / 100, |
|
|
SettleMode: zhios_order_relate_utils.StrToInt(oneRewardPlan["settle_mode"]), |
|
|
SettleMode: zhios_order_relate_utils.StrToInt(oneRewardPlan["settle_mode"]), |
|
|
PlanCommissionId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_commission_id"]), |
|
|
PlanCommissionId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_commission_id"]), |
|
|
PlanSettleId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_settle_id"]), |
|
|
PlanSettleId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_settle_id"]), |
|
@@ -72,6 +74,8 @@ func GetAllPlan(eg *xorm.Engine, dbName string) (map[string]*model.PlanReward, m |
|
|
SysRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["sys_rate"]) / 100, |
|
|
SysRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["sys_rate"]) / 100, |
|
|
RegionRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["region_rate"]) / 100, |
|
|
RegionRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["region_rate"]) / 100, |
|
|
GlobalRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["global_rate"]) / 100, |
|
|
GlobalRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["global_rate"]) / 100, |
|
|
|
|
|
StoreSubsidyRate: zhios_order_relate_utils.StrToFloat64(oneRewardPlan["store_subsidy_rate"]) / 100, |
|
|
|
|
|
RedPacketRate: zhios_order_relate_utils.StrToFloat64(oneRewardPlan["red_packet_rate"]) / 100, |
|
|
SettleMode: zhios_order_relate_utils.StrToInt(oneRewardPlan["settle_mode"]), |
|
|
SettleMode: zhios_order_relate_utils.StrToInt(oneRewardPlan["settle_mode"]), |
|
|
PlanCommissionId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_commission_id"]), |
|
|
PlanCommissionId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_commission_id"]), |
|
|
PlanSettleId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_settle_id"]), |
|
|
PlanSettleId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_settle_id"]), |
|
@@ -134,6 +138,8 @@ func GetPlanCfg(eg *xorm.Engine, pvd, masterId string, rewardOpts map[string]*mo |
|
|
opt.RegionRate = float64(int64(rewardOpt.RegionRate*1e4)) / 1e4 |
|
|
opt.RegionRate = float64(int64(rewardOpt.RegionRate*1e4)) / 1e4 |
|
|
opt.RegionSubRate = float64(int64(rewardOpt.RegionSubRate*1e4)) / 1e4 |
|
|
opt.RegionSubRate = float64(int64(rewardOpt.RegionSubRate*1e4)) / 1e4 |
|
|
opt.GlobalRate = float64(int64(rewardOpt.GlobalRate*1e4)) / 1e4 |
|
|
opt.GlobalRate = float64(int64(rewardOpt.GlobalRate*1e4)) / 1e4 |
|
|
|
|
|
opt.StoreSubsidyRate = float64(int64(rewardOpt.StoreSubsidyRate*1e4)) / 1e4 |
|
|
|
|
|
opt.RedPacketRate = float64(int64(rewardOpt.RedPacketRate*1e4)) / 1e4 |
|
|
opt.SelfBuyGlobalRate = float64(int64(rewardOpt.SelfBuyGlobalRate*1e4)) / 1e4 |
|
|
opt.SelfBuyGlobalRate = float64(int64(rewardOpt.SelfBuyGlobalRate*1e4)) / 1e4 |
|
|
opt.PushHandRate = float64(int64(rewardOpt.PushHandRate*1e4)) / 1e4 |
|
|
opt.PushHandRate = float64(int64(rewardOpt.PushHandRate*1e4)) / 1e4 |
|
|
opt.MerchantRate = float64(int64(rewardOpt.MerchantRate*1e4)) / 1e4 |
|
|
opt.MerchantRate = float64(int64(rewardOpt.MerchantRate*1e4)) / 1e4 |
|
@@ -290,6 +296,8 @@ func GetPlanCfgService(eg *xorm.Engine, pvd, masterId string, rewardOpts map[str |
|
|
opt.RegionRate = float64(int64(rewardOpt.RegionRate*1e4)) / 1e4 |
|
|
opt.RegionRate = float64(int64(rewardOpt.RegionRate*1e4)) / 1e4 |
|
|
opt.RegionSubRate = float64(int64(rewardOpt.RegionSubRate*1e4)) / 1e4 |
|
|
opt.RegionSubRate = float64(int64(rewardOpt.RegionSubRate*1e4)) / 1e4 |
|
|
opt.GlobalRate = float64(int64(rewardOpt.GlobalRate*1e4)) / 1e4 |
|
|
opt.GlobalRate = float64(int64(rewardOpt.GlobalRate*1e4)) / 1e4 |
|
|
|
|
|
opt.StoreSubsidyRate = float64(int64(rewardOpt.StoreSubsidyRate*1e4)) / 1e4 |
|
|
|
|
|
opt.RedPacketRate = float64(int64(rewardOpt.RedPacketRate*1e4)) / 1e4 |
|
|
opt.SelfBuyGlobalRate = float64(int64(rewardOpt.SelfBuyGlobalRate*1e4)) / 1e4 |
|
|
opt.SelfBuyGlobalRate = float64(int64(rewardOpt.SelfBuyGlobalRate*1e4)) / 1e4 |
|
|
opt.PushHandRate = float64(int64(rewardOpt.PushHandRate*1e4)) / 1e4 |
|
|
opt.PushHandRate = float64(int64(rewardOpt.PushHandRate*1e4)) / 1e4 |
|
|
opt.MerchantRate = float64(int64(rewardOpt.MerchantRate*1e4)) / 1e4 |
|
|
opt.MerchantRate = float64(int64(rewardOpt.MerchantRate*1e4)) / 1e4 |
|
@@ -437,6 +445,8 @@ func PlanOpts(eg *xorm.Engine) map[string]*comm_plan.PlanOpt { |
|
|
SysRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["sys_rate"]) / 100, |
|
|
SysRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["sys_rate"]) / 100, |
|
|
RegionRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["region_rate"]) / 100, |
|
|
RegionRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["region_rate"]) / 100, |
|
|
GlobalRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["global_rate"]) / 100, |
|
|
GlobalRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["global_rate"]) / 100, |
|
|
|
|
|
StoreSubsidyRate: zhios_order_relate_utils.StrToFloat64(oneRewardPlan["store_subsidy_rate"]) / 100, |
|
|
|
|
|
RedPacketRate: zhios_order_relate_utils.StrToFloat64(oneRewardPlan["red_packet_rate"]) / 100, |
|
|
SettleMode: zhios_order_relate_utils.StrToInt(oneRewardPlan["settle_mode"]), |
|
|
SettleMode: zhios_order_relate_utils.StrToInt(oneRewardPlan["settle_mode"]), |
|
|
PlanCommissionId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_commission_id"]), |
|
|
PlanCommissionId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_commission_id"]), |
|
|
PlanSettleId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_settle_id"]), |
|
|
PlanSettleId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_settle_id"]), |
|
@@ -462,6 +472,8 @@ func PlanOpts(eg *xorm.Engine) map[string]*comm_plan.PlanOpt { |
|
|
SysRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["sys_rate"]) / 100, |
|
|
SysRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["sys_rate"]) / 100, |
|
|
RegionRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["region_rate"]) / 100, |
|
|
RegionRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["region_rate"]) / 100, |
|
|
GlobalRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["global_rate"]) / 100, |
|
|
GlobalRate: zhios_order_relate_utils.StrToFloat32(oneRewardPlan["global_rate"]) / 100, |
|
|
|
|
|
StoreSubsidyRate: zhios_order_relate_utils.StrToFloat64(oneRewardPlan["store_subsidy_rate"]) / 100, |
|
|
|
|
|
RedPacketRate: zhios_order_relate_utils.StrToFloat64(oneRewardPlan["red_packet_rate"]) / 100, |
|
|
SettleMode: zhios_order_relate_utils.StrToInt(oneRewardPlan["settle_mode"]), |
|
|
SettleMode: zhios_order_relate_utils.StrToInt(oneRewardPlan["settle_mode"]), |
|
|
PlanCommissionId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_commission_id"]), |
|
|
PlanCommissionId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_commission_id"]), |
|
|
PlanSettleId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_settle_id"]), |
|
|
PlanSettleId: zhios_order_relate_utils.StrToInt(oneRewardPlan["plan_settle_id"]), |
|
@@ -492,6 +504,8 @@ func PlanOpts(eg *xorm.Engine) map[string]*comm_plan.PlanOpt { |
|
|
PvdRate: float64(v.PvdRate), |
|
|
PvdRate: float64(v.PvdRate), |
|
|
RegionRate: float64(v.RegionRate), |
|
|
RegionRate: float64(v.RegionRate), |
|
|
GlobalRate: float64(v.GlobalRate), |
|
|
GlobalRate: float64(v.GlobalRate), |
|
|
|
|
|
StoreSubsidyRate: v.StoreSubsidyRate, |
|
|
|
|
|
RedPacketRate: v.RedPacketRate, |
|
|
SelfBuyGlobalRate: v.SelfBuyGlobalRate, |
|
|
SelfBuyGlobalRate: v.SelfBuyGlobalRate, |
|
|
UserRate: subsidyTmp, |
|
|
UserRate: subsidyTmp, |
|
|
BuckleRate: v.BuckleRate, |
|
|
BuckleRate: v.BuckleRate, |
|
|