From 9bbd62e9e977bd3e0b7db4bb854cbaab29075025 Mon Sep 17 00:00:00 2001
From: "DESKTOP-369JRHT\\12997" <9>
Date: Tue, 30 Jul 2024 11:35:37 +0800
Subject: [PATCH] no message
---
.../src/views/Site/components/before.vue | 4 +-
.../src/views/system/notify/page/mode.vue | 5 +-
.../impl/DeptTransactionInfoServiceImpl.java | 2 +-
.../sys/mapper/xml/SysNotifyMapper.xml | 6 +-
.../service/impl/SysNotifyServiceImpl.java | 87 ++++++++++++-------
.../main/resources/mapper/TAccountMapper.xml | 9 +-
6 files changed, 74 insertions(+), 39 deletions(-)
diff --git a/fuintAdmin_zt/src/views/Site/components/before.vue b/fuintAdmin_zt/src/views/Site/components/before.vue
index 6c9af96f4..e77d1db4f 100644
--- a/fuintAdmin_zt/src/views/Site/components/before.vue
+++ b/fuintAdmin_zt/src/views/Site/components/before.vue
@@ -72,8 +72,8 @@ export default {
// let remainingTransactionVolume = estimatedTransactionVolume - prepaidAmount;
let remainingTransactionVolume = estimatedTransactionVolume - this.payMoney;
- this.form.estimatedTransactionVolume = estimatedTransactionVolume;
- this.form.remainingTransactionVolume = remainingTransactionVolume;
+ this.form.estimatedTransactionVolume = estimatedTransactionVolume/10000;
+ this.form.remainingTransactionVolume = remainingTransactionVolume/10000;
}
},
diff --git a/fuintAdmin_zt/src/views/system/notify/page/mode.vue b/fuintAdmin_zt/src/views/system/notify/page/mode.vue
index 31d6e5a82..fc83b5bbe 100644
--- a/fuintAdmin_zt/src/views/system/notify/page/mode.vue
+++ b/fuintAdmin_zt/src/views/system/notify/page/mode.vue
@@ -146,7 +146,7 @@
- {{ condition.field === '剩余交易量' || condition.field === '系统服务有效期' ? '万元' : '天' }}
+ {{ condition.field === '剩余交易量' || condition.field === '系统服务费统计' ? '万元' : '天' }}
@@ -367,6 +367,9 @@ export default {
});
return
}else {
+ if (!this.form.conditions) {
+ this.form.conditions = []
+ }
this.form.conditions.push({ field: '', operator: '', value: '' });
}
},
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/deptPay/service/impl/DeptTransactionInfoServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/deptPay/service/impl/DeptTransactionInfoServiceImpl.java
index c78868e0a..a809eb827 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/deptPay/service/impl/DeptTransactionInfoServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/deptPay/service/impl/DeptTransactionInfoServiceImpl.java
@@ -102,7 +102,7 @@ public class DeptTransactionInfoServiceImpl implements DeptTransactionInfoServic
public DeptTransactionInfo insert(DeptTransactionInfo deptTransactionInfo) {
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
deptTransactionInfo.setCreateName(nowAccountInfo.getRealName());
- deptTransactionInfo.setDeptId(nowAccountInfo.getDeptId());
+ // deptTransactionInfo.setDeptId(nowAccountInfo.getDeptId());
// 查询当前是否有进行中的数据,没有则更新状态
DeptTransactionInfo deptTransactionInfo1 = this.deptTransactionInfoMapper.queryByDeptId(nowAccountInfo.getDeptId());
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/mapper/xml/SysNotifyMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/mapper/xml/SysNotifyMapper.xml
index 30c60460c..0b720e634 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/mapper/xml/SysNotifyMapper.xml
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/mapper/xml/SysNotifyMapper.xml
@@ -77,9 +77,9 @@ template_status,create_by,update_by,update_time,create_time,create_name,conditio
- insert into sys_notify(notification_name,notification_type,template_content,recipient_roles,template_status,conditions,create_name,conditions)
- values (#{notificationName},#{notificationType},#{templateContent},#{recipientRoles},#{templateStatus},#{conditions},#{createName},
- #{conditions})
+ insert into sys_notify(notification_name,notification_type,template_content,recipient_roles,template_status,conditions,create_name)
+ values (#{notificationName},#{notificationType},#{templateContent},#{recipientRoles},#{templateStatus},#{conditions},#{createName}
+ )
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/service/impl/SysNotifyServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/service/impl/SysNotifyServiceImpl.java
index 3e3c13799..b81d61633 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/service/impl/SysNotifyServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/service/impl/SysNotifyServiceImpl.java
@@ -6,6 +6,7 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@@ -39,6 +40,7 @@ import com.fuint.common.dto.AccountInfo;
import javax.annotation.Resource;
+import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.ZoneId;
import java.time.temporal.ChronoUnit;
@@ -108,9 +110,10 @@ public class SysNotifyServiceImpl extends ServiceImpl sysNotifies = this.sysNotifyMapper.selectList(new QueryWrapper<>());
+ // 获取全部通知数据
+ LambdaQueryWrapper objectQueryWrapper = new LambdaQueryWrapper<>();
+ objectQueryWrapper.eq(SysNotify::getTemplateStatus, true);
+
+ List sysNotifies = this.sysNotifyMapper.selectList(objectQueryWrapper);
for (SysNotify notify : sysNotifies) {
String recipientRoles = notify.getRecipientRoles();
- String[] array = recipientRoles.split("[\\[\\], ]");
-
+// String[] array = recipientRoles.split("[\"\\\\[|\\\\]\", \"\"]");
+ String str = recipientRoles.replaceAll("\\[|\\]", ""); // 移除字符串中的中括号
+ String[] array = str.split(","); // 使用逗号分割字符串
List