综合销售表 空值处理,类名调整
This commit is contained in:
@@ -18,7 +18,7 @@ import java.util.Map;
|
||||
*/
|
||||
@Slf4j
|
||||
@Component("zhxsqkLineReportEnhance")
|
||||
public class zhxsqkLineReportEnhance implements ReportBeforeAdvicePlugin {
|
||||
public class ZhxsqkLineReportEnhance implements ReportBeforeAdvicePlugin {
|
||||
|
||||
@Override
|
||||
public void execute(EnhanceReportContext enhanceContext) {
|
||||
@@ -29,7 +29,7 @@ import java.util.stream.Collectors;
|
||||
*/
|
||||
@Slf4j
|
||||
@Component("zhxsqkPlugin")
|
||||
public class zhxsqkPlugin implements ReportAroundAdvicePlugin {
|
||||
public class ZhxsqkPlugin implements ReportAroundAdvicePlugin {
|
||||
|
||||
@Resource
|
||||
INewGrBiSaAggService newGrBiSaAggService;
|
||||
@@ -25,7 +25,7 @@ import java.util.stream.Collectors;
|
||||
*/
|
||||
@Slf4j
|
||||
@Component("zhxsqkPluginJx")
|
||||
public class zhxsqkPluginJx implements ReportAroundAdvicePlugin {
|
||||
public class ZhxsqkPluginJx implements ReportAroundAdvicePlugin {
|
||||
|
||||
@Resource
|
||||
INewGrBiSaAggYearCountService newGrBiSaAggYearCountService;
|
||||
@@ -12,14 +12,14 @@ import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import static com.lideeyunji.core.framework.enhance.example.report.xtsy.zhxsqkPluginJx.zhxsqkFun;
|
||||
import static com.lideeyunji.core.framework.enhance.example.report.xtsy.ZhxsqkPluginJx.zhxsqkFun;
|
||||
|
||||
/**
|
||||
* 报表-综合销售表_剂型-插件
|
||||
*/
|
||||
@Slf4j
|
||||
@Component("zhxsqkPluginLxfl")
|
||||
public class zhxsqkPluginLxfl implements ReportAroundAdvicePlugin {
|
||||
public class ZhxsqkPluginLxfl implements ReportAroundAdvicePlugin {
|
||||
|
||||
@Resource
|
||||
INewGrBiSaAggYearCountService newGrBiSaAggYearCountService;
|
||||
@@ -12,14 +12,14 @@ import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import static com.lideeyunji.core.framework.enhance.example.report.xtsy.zhxsqkPluginJx.zhxsqkFun;
|
||||
import static com.lideeyunji.core.framework.enhance.example.report.xtsy.ZhxsqkPluginJx.zhxsqkFun;
|
||||
|
||||
/**
|
||||
* 报表-综合销售表_剂型-插件
|
||||
*/
|
||||
@Slf4j
|
||||
@Component("zhxsqkPluginXslx")
|
||||
public class zhxsqkPluginXslx implements ReportAroundAdvicePlugin {
|
||||
public class ZhxsqkPluginXslx implements ReportAroundAdvicePlugin {
|
||||
|
||||
@Resource
|
||||
INewGrBiSaAggYearCountService newGrBiSaAggYearCountService;
|
||||
@@ -313,6 +313,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
ELSE (current_month.this_month_sa_qty - yoy_month.yoy_month_sa_qty) / yoy_month.yoy_month_sa_qty * 100 END)<0 THEN
|
||||
CONCAT('🔴 ', ROUND((CASE WHEN yoy_month.yoy_month_sa_qty = 0 THEN IF(current_month.this_month_sa_qty > 0, 100, 0)
|
||||
ELSE (current_month.this_month_sa_qty - yoy_month.yoy_month_sa_qty) / yoy_month.yoy_month_sa_qty * 100 END), 2))
|
||||
ELSE '0.00'
|
||||
END AS monthsaqty_yoy,
|
||||
|
||||
CASE WHEN (CASE WHEN yoy_month.yoy_month_sa_money = 0 THEN IF(current_month.this_month_sa_money > 0, 100, 0)
|
||||
@@ -680,6 +681,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
ELSE (current_month.this_month_sa_qty - yoy_month.yoy_month_sa_qty) / yoy_month.yoy_month_sa_qty * 100 END)<0 THEN
|
||||
CONCAT('🔴 ', ROUND((CASE WHEN yoy_month.yoy_month_sa_qty = 0 THEN IF(current_month.this_month_sa_qty > 0, 100, 0)
|
||||
ELSE (current_month.this_month_sa_qty - yoy_month.yoy_month_sa_qty) / yoy_month.yoy_month_sa_qty * 100 END), 2))
|
||||
ELSE '0.00'
|
||||
END AS monthsaqty_yoy,
|
||||
|
||||
CASE WHEN (CASE WHEN yoy_month.yoy_month_sa_money = 0 THEN IF(current_month.this_month_sa_money > 0, 100, 0)
|
||||
|
||||
Reference in New Issue
Block a user