综合销售表 空值处理,类名调整
This commit is contained in:
@@ -18,7 +18,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Component("zhxsqkLineReportEnhance")
|
@Component("zhxsqkLineReportEnhance")
|
||||||
public class zhxsqkLineReportEnhance implements ReportBeforeAdvicePlugin {
|
public class ZhxsqkLineReportEnhance implements ReportBeforeAdvicePlugin {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute(EnhanceReportContext enhanceContext) {
|
public void execute(EnhanceReportContext enhanceContext) {
|
||||||
@@ -29,7 +29,7 @@ import java.util.stream.Collectors;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Component("zhxsqkPlugin")
|
@Component("zhxsqkPlugin")
|
||||||
public class zhxsqkPlugin implements ReportAroundAdvicePlugin {
|
public class ZhxsqkPlugin implements ReportAroundAdvicePlugin {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
INewGrBiSaAggService newGrBiSaAggService;
|
INewGrBiSaAggService newGrBiSaAggService;
|
||||||
@@ -25,7 +25,7 @@ import java.util.stream.Collectors;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Component("zhxsqkPluginJx")
|
@Component("zhxsqkPluginJx")
|
||||||
public class zhxsqkPluginJx implements ReportAroundAdvicePlugin {
|
public class ZhxsqkPluginJx implements ReportAroundAdvicePlugin {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
INewGrBiSaAggYearCountService newGrBiSaAggYearCountService;
|
INewGrBiSaAggYearCountService newGrBiSaAggYearCountService;
|
||||||
@@ -12,14 +12,14 @@ import javax.annotation.Resource;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
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
|
@Slf4j
|
||||||
@Component("zhxsqkPluginLxfl")
|
@Component("zhxsqkPluginLxfl")
|
||||||
public class zhxsqkPluginLxfl implements ReportAroundAdvicePlugin {
|
public class ZhxsqkPluginLxfl implements ReportAroundAdvicePlugin {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
INewGrBiSaAggYearCountService newGrBiSaAggYearCountService;
|
INewGrBiSaAggYearCountService newGrBiSaAggYearCountService;
|
||||||
@@ -12,14 +12,14 @@ import javax.annotation.Resource;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
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
|
@Slf4j
|
||||||
@Component("zhxsqkPluginXslx")
|
@Component("zhxsqkPluginXslx")
|
||||||
public class zhxsqkPluginXslx implements ReportAroundAdvicePlugin {
|
public class ZhxsqkPluginXslx implements ReportAroundAdvicePlugin {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
INewGrBiSaAggYearCountService newGrBiSaAggYearCountService;
|
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
|
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)
|
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 (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,
|
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)
|
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
|
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)
|
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 (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,
|
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)
|
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