订单预警利润公式修改
This commit is contained in:
@@ -1376,7 +1376,7 @@ func OrderProfitWarning(order *model.GoodsOrder) {
|
|||||||
if storeDetail != nil && err == nil {
|
if storeDetail != nil && err == nil {
|
||||||
payPercentage := storeDetail.PayPercentage
|
payPercentage := storeDetail.PayPercentage
|
||||||
if payPercentage >= 50 {
|
if payPercentage >= 50 {
|
||||||
profit = utils.Str2Float64(utils.Int64ToStr(order.TotalShopMoney-order.EarningPrice-order.DistanceFreightMoney-order.WaybillTipMoney)) / 100
|
profit = utils.Str2Float64(utils.Int64ToStr(order.TotalShopMoney-order.EarningPrice)) / 100
|
||||||
} else {
|
} else {
|
||||||
profit = utils.Str2Float64(utils.Int64ToStr(order.TotalShopMoney*int64(payPercentage)/200)) / 100
|
profit = utils.Str2Float64(utils.Int64ToStr(order.TotalShopMoney*int64(payPercentage)/200)) / 100
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,11 +40,11 @@ var (
|
|||||||
priceReferTimeList = []string{
|
priceReferTimeList = []string{
|
||||||
"01:00:00",
|
"01:00:00",
|
||||||
}
|
}
|
||||||
createStorePriceTimeList = []string{
|
checkCookieList = []string{
|
||||||
"08:00:00",
|
"08:00:00",
|
||||||
"18:00:00",
|
"18:00:00",
|
||||||
}
|
}
|
||||||
checkCookieList = []string{
|
createStorePriceTimeList = []string{
|
||||||
"02:00:00",
|
"02:00:00",
|
||||||
}
|
}
|
||||||
refreshPageActTimeList = []string{
|
refreshPageActTimeList = []string{
|
||||||
|
|||||||
Reference in New Issue
Block a user