Compare commits
5 Commits
e685531b71
...
6294e9e707
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6294e9e707 | ||
|
|
828862b253 | ||
|
|
8dc15baa30 | ||
|
|
f768eba140 | ||
|
|
e47f720ed5 |
@@ -343,7 +343,7 @@ public class ZhxsqkLineReportEnhance implements ReportBeforeAdvicePlugin {
|
||||
executePluginSql.append(" ROUND(last_month_data.last_month_sa_money / 10000, 2) AS lastMonthSaMoney, \n"); //上月销售金额(元)
|
||||
executePluginSql.append(" ROUND(last_month_data.last_month_profit / 10000, 2) AS lastMonthProfit, \n"); //上月毛利额(元)
|
||||
executePluginSql.append(" ROUND(last_month_data.last_month_cost / 10000, 2) AS lastMonthCost, \n"); //上月成本(元)
|
||||
executePluginSql.append(" ROUND(yoy_month.yoy_month_sa_qty / 10000, 2) AS yoyMonthSaQty, \n"); //同比月销售数量(件)
|
||||
executePluginSql.append(" yoy_month.yoy_month_sa_qty AS yoyMonthSaQty, \n"); //同比月销售数量(件)
|
||||
executePluginSql.append(" ROUND(yoy_month.yoy_month_sa_money / 10000, 2) AS yoyMonthSaMoney, \n"); //同比月销售金额(元)
|
||||
executePluginSql.append(" ROUND(yoy_month.yoy_month_profit / 10000, 2) AS yoyMonthProfit, \n"); //同比月毛利额(元)
|
||||
executePluginSql.append(" ROUND(yoy_month.yoy_month_cost / 10000, 2) AS yoyMonthCost, \n"); //同比月成本(元)
|
||||
|
||||
@@ -8,6 +8,7 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@TableName("GR_BI_SA_SETDTL")
|
||||
@@ -70,11 +71,11 @@ public class GrBiSaSetdtl implements Serializable {
|
||||
@TableField(value = "SAQTY")
|
||||
private Integer SAQTY;
|
||||
@TableField(value = "SAMONEY")
|
||||
private Integer SAMONEY;
|
||||
private BigDecimal SAMONEY;
|
||||
@TableField(value = "SAMONEYTX")
|
||||
private Integer SAMONEYTX;
|
||||
private BigDecimal SAMONEYTX;
|
||||
@TableField(value = "COST")
|
||||
private Integer COST;
|
||||
private BigDecimal COST;
|
||||
@TableField(value = "PROFIT")
|
||||
private Integer PROFIT;
|
||||
private BigDecimal PROFIT;
|
||||
}
|
||||
|
||||
@@ -664,7 +664,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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user