同比销量 计算调整

This commit is contained in:
king
2026-04-23 08:52:14 +08:00
parent f768eba140
commit 828862b253
2 changed files with 3 additions and 3 deletions

View File

@@ -661,7 +661,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ROUND(tbl_lgbsa.last_month_sa_money / 10000, 2) as last_month_sa_money,
ROUND(tbl_lgbsa.last_month_profit / 10000, 2) as last_month_profit,
ROUND(tbl_lgbsa.last_month_cost / 10000, 2) as last_month_cost,
ROUND(tbl_lgbsa.yoy_month_sa_qty/ 10000, 2) as yoy_month_sa_qty,
tbl_lgbsa.yoy_month_sa_qty as yoy_month_sa_qty,
ROUND(tbl_lgbsa.yoy_month_sa_money / 10000, 2) as yoy_month_sa_money,
ROUND(tbl_lgbsa.yoy_month_profit / 10000, 2) as yoy_month_profit,
ROUND(tbl_lgbsa.yoy_month_cost / 10000, 2) as yoy_month_cost,

View File

@@ -301,7 +301,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
COALESCE (ROUND( current_month.this_month_profit/total_month_data.this_month_profit_sum * 100, 2), 0 ) as this_month_profit_share,
<if test="params.isOneYear" >
ROUND(yoy_month.yoy_month_sa_qty / 10000, 2) AS yoy_month_sa_qty,
yoy_month.yoy_month_sa_qty AS yoy_month_sa_qty,
ROUND(yoy_month.yoy_month_sa_money / 10000, 2) AS yoy_month_sa_money,
ROUND(yoy_month.yoy_month_profit / 10000, 2) AS yoy_month_profit,
ROUND(yoy_month.yoy_month_cost / 10000, 2) AS yoy_month_cost,
@@ -673,7 +673,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ROUND(last_month_data.last_month_sa_money / 10000, 2) AS last_month_sa_money,
ROUND(last_month_data.last_month_profit / 10000, 2) AS last_month_profit,
ROUND(last_month_data.last_month_cost / 10000, 2) AS last_month_cost,
ROUND(yoy_month.yoy_month_sa_qty / 10000, 2) AS yoy_month_sa_qty,
yoy_month.yoy_month_sa_qty AS yoy_month_sa_qty,
ROUND(yoy_month.yoy_month_sa_money / 10000, 2) AS yoy_month_sa_money,
ROUND(yoy_month.yoy_month_profit / 10000, 2) AS yoy_month_profit,
ROUND(yoy_month.yoy_month_cost / 10000, 2) AS yoy_month_cost,