From d8eddeba2456ad1c89df68979112ae98d82c7948 Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Tue, 02 Dec 2025 08:21:25 +0000
Subject: [PATCH] 因外出及调休记录可跨天产生的修改
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/SysGoalSettingServiceImpl.java | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/SysGoalSettingServiceImpl.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/SysGoalSettingServiceImpl.java
index aee6944..bf9ed45 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/SysGoalSettingServiceImpl.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/SysGoalSettingServiceImpl.java
@@ -79,14 +79,14 @@
@Override
@Transactional(rollbackFor = Exception.class)
- public SysGoalSettingDto create(SysGoalSetting resources) throws Exception {
+ public SysGoalSettingDto create(SysGoalSetting resources) {
createOrUpdateCheck(resources);
return sysGoalSettingMapper.toDto(sysGoalSettingRepository.save(resources));
}
@Override
@Transactional(rollbackFor = Exception.class)
- public void update(SysGoalSetting resources) throws Exception {
+ public void update(SysGoalSetting resources) {
SysGoalSetting sysGoalSetting = sysGoalSettingRepository.findById(resources.getId()).orElseGet(SysGoalSetting::new);
ValidationUtil.isNull( sysGoalSetting.getId(),"SysGoalSetting","id",resources.getId());
sysGoalSetting.copy(resources);
@@ -111,7 +111,12 @@
Map<String,Object> map = new LinkedHashMap<>();
map.put("目标年度", targetYear);
map.put("项目区分", projectDistinguish);
- map.put("目标金额", sysGoalSetting.getTargetAmount());
+ map.put("目标金额(全年)", sysGoalSetting.getTargetAmount());
+ map.put("目标金额(一季度)", sysGoalSetting.getFirstTargetAmount());
+ map.put("目标金额(二季度)", sysGoalSetting.getSecondTargetAmount());
+ map.put("目标金额(三季度)", sysGoalSetting.getThirdTargetAmount());
+ map.put("目标金额(四季度)", sysGoalSetting.getFourthTargetAmount());
+ map.put("相关负责人", sysGoalSetting.getLeaderName());
map.put("备注", sysGoalSetting.getRemarks());
map.put("创建者", sysGoalSetting.getCreateBy());
map.put("创建时间", sysGoalSetting.getCreateTime());
@@ -122,7 +127,7 @@
FileUtil.downloadExcel(list, response);
}
- private void createOrUpdateCheck(SysGoalSetting resources) throws Exception {
+ private void createOrUpdateCheck(SysGoalSetting resources) {
// 日期格式化
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String targetYear = sdf.format(resources.getTargetYear());
--
Gitblit v1.9.3