综合销售表 空值处理,类名调整

This commit is contained in:
king
2026-04-16 09:46:11 +08:00
parent 74c6e749f2
commit fd85567f30
6 changed files with 9 additions and 7 deletions

View File

@@ -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) {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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)