From 9ccb2bb5c69d0bb0f18af14629cf4eaf10dfaabe Mon Sep 17 00:00:00 2001 From: king Date: Thu, 9 Apr 2026 17:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=8F=E8=90=A5=E6=8C=87=E6=A0=87=E8=BE=BE?= =?UTF-8?q?=E6=88=90=E7=8E=87=E5=A1=AB=E6=8A=A5=20=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E8=B0=83=E6=95=B4,=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/report/record/BusinessRealRecordPlugin.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lidee-core/src/main/java/com/lideeyunji/core/framework/enhance/example/report/record/BusinessRealRecordPlugin.java b/lidee-core/src/main/java/com/lideeyunji/core/framework/enhance/example/report/record/BusinessRealRecordPlugin.java index 34fbd79..584fd82 100644 --- a/lidee-core/src/main/java/com/lideeyunji/core/framework/enhance/example/report/record/BusinessRealRecordPlugin.java +++ b/lidee-core/src/main/java/com/lideeyunji/core/framework/enhance/example/report/record/BusinessRealRecordPlugin.java @@ -2,6 +2,7 @@ package com.lideeyunji.core.framework.enhance.example.report.record; import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.util.StrUtil; import com.lideeyunji.core.framework.config.aspect.enhance.model.EnhanceContext; import com.lideeyunji.core.framework.config.aspect.enhance.plugin.AroundAdvicePlugin; import com.lideeyunji.core.framework.mapper.BusinessRealRecordMapper; @@ -45,10 +46,10 @@ public class BusinessRealRecordPlugin implements AroundAdvicePlugin { throw new RuntimeException("请选择正确的年,当前年月没有指标"); } String last_month = (String) record.get(0).get("last_month"); - businessRealRecordMapper.updateByRecord(lideeYunJiBaseConstant.DS_ERP_BI_DATA, useyear, last_month, "1", revenueYearplan); - businessRealRecordMapper.updateByRecord(lideeYunJiBaseConstant.DS_ERP_BI_DATA, useyear, last_month, "4", profitYearplan); - businessRealRecordMapper.updateByRecord(lideeYunJiBaseConstant.DS_ERP_BI_DATA, useyear, last_month, "2", grossProfitYearplan); - businessRealRecordMapper.updateByRecord(lideeYunJiBaseConstant.DS_ERP_BI_DATA, useyear, last_month, "3", grossProfitMarginYearplan); + businessRealRecordMapper.updateByRecord(lideeYunJiBaseConstant.DS_ERP_BI_DATA, useyear, last_month, "1", StrUtil.isEmpty(revenueYearplan)? null: revenueYearplan); + businessRealRecordMapper.updateByRecord(lideeYunJiBaseConstant.DS_ERP_BI_DATA, useyear, last_month, "4", StrUtil.isEmpty(profitYearplan)? null: profitYearplan); + businessRealRecordMapper.updateByRecord(lideeYunJiBaseConstant.DS_ERP_BI_DATA, useyear, last_month, "2", StrUtil.isEmpty(grossProfitYearplan)? null: grossProfitYearplan); + businessRealRecordMapper.updateByRecord(lideeYunJiBaseConstant.DS_ERP_BI_DATA, useyear, last_month, "3", StrUtil.isEmpty(grossProfitMarginYearplan)? null: grossProfitMarginYearplan); } @Override