From a40c2eb885bcdb697c2e16dae4f43cb6cd718973 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期一, 22 一月 2024 11:28:03 +0800
Subject: [PATCH] 优化小区数据
---
service-job/src/main/java/com/java110/job/msgNotify/MsgNotifyFactory.java | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/service-job/src/main/java/com/java110/job/msgNotify/MsgNotifyFactory.java b/service-job/src/main/java/com/java110/job/msgNotify/MsgNotifyFactory.java
index be3c1eb..220caef 100644
--- a/service-job/src/main/java/com/java110/job/msgNotify/MsgNotifyFactory.java
+++ b/service-job/src/main/java/com/java110/job/msgNotify/MsgNotifyFactory.java
@@ -10,6 +10,8 @@
import com.java110.vo.ResultVo;
import org.slf4j.Logger;
+import java.util.List;
+
/**
* 娑堟伅閫氱煡宸ュ叿绫�
*/
@@ -54,19 +56,19 @@
*
* @param communityId 灏忓尯
* @param userId 鐢ㄦ埛
- * @param content {
+ * @param contents [{
* "feeTypeName",
* "payerObjName",
* "billAmountOwed",
* "date",
* url
- * }
+ * }]
*/
- public static ResultVo sendOweFeeMsg(String communityId, String userId,String ownerId, JSONObject content,String notifyWay) {
+ public static ResultVo sendOweFeeMsg(String communityId, String userId, String ownerId, List<JSONObject> contents, String notifyWay) {
ResultVo resultVo = null;
try {
IMsgNotify msgNotify = getMsgNotify(notifyWay);
- resultVo = msgNotify.sendOweFeeMsg(communityId, userId,ownerId, content);
+ resultVo = msgNotify.sendOweFeeMsg(communityId, userId,ownerId, contents);
} catch (Exception e) {
e.printStackTrace();
logger.error("閫氱煡 鍙戦�佹瑺璐� 璐﹀崟淇℃伅 娑堟伅", e);
@@ -81,16 +83,16 @@
*
* @param communityId 灏忓尯
* @param userId 鐢ㄦ埛
- * @param content {
+ * @param contents [{
* "feeTypeName",
* "payerObjName",
* "billAmountOwed",
* "date",
* url
- * }
+ * }]
*/
- public static ResultVo sendOweFeeMsg(String communityId, String userId,String ownerId, JSONObject content) {
- return sendOweFeeMsg(communityId,userId, ownerId,content,null);
+ public static ResultVo sendOweFeeMsg(String communityId, String userId,String ownerId, List<JSONObject> contents) {
+ return sendOweFeeMsg(communityId,userId, ownerId,contents,null);
}
/**
@@ -126,6 +128,7 @@
* @param communityId 灏忓尯
* @param userId 鐢ㄦ埛
* @param content {
+ * repairId,
* repairTypeName锛�
* repairObjName锛�
* repairName锛�
@@ -153,6 +156,7 @@
* @param communityId 灏忓尯
* @param userId 鐢ㄦ埛
* @param content {
+ * repairId,
* repairName锛�
* tel锛�
* time锛�
@@ -235,6 +239,7 @@
* @param communityId 灏忓尯
* @param userId 鐢ㄦ埛
* @param content {
+ * repairId,
* repairTypeName锛�
* repairObjName锛�
* repairName锛�
@@ -326,7 +331,7 @@
* @param notifyWay
* @return
*/
- private static IMsgNotify getMsgNotify(String notifyWay) {
+ public static IMsgNotify getMsgNotify(String notifyWay) {
IMsgNotify notify = null;
if (StringUtil.isEmpty(notifyWay)) {
notifyWay = MappingCache.getValue(MappingConstant.ENV_DOMAIN, DEFAULT_MSG_NOTIFY_WAY);
--
Gitblit v1.8.0