Merge branch 'refs/heads/dev_js_20260407'

This commit is contained in:
king
2026-04-09 17:30:05 +08:00

View File

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