From 37d00e3ec587e075fc64d45cad2b52b816f24eb5 Mon Sep 17 00:00:00 2001 From: wenlukang1 Date: Sun, 6 Jul 2025 16:31:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=8A=9E=E4=BB=A3=E7=A0=81=E5=9B=9E?= =?UTF-8?q?=E6=BB=9A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../servicehandler/BacklogServiceHandle.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/servicehandler/BacklogServiceHandle.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/servicehandler/BacklogServiceHandle.java index 2a48558..a3370b6 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/servicehandler/BacklogServiceHandle.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/servicehandler/BacklogServiceHandle.java @@ -40,16 +40,15 @@ public class BacklogServiceHandle extends AbstractServiceHandler { private static final Log logger = LogFactory.getLog(BacklogServiceHandle.class); - private static final Object shkd_type =SystemParamServiceHelper.getPublicParameter("shkd_type"); - - private static final DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache(); public void createToDo(MessageContext ctx, ToDoInfo todoInfo) { logger.info("###创建待办_createToDo"); boolean b = allowMobApprove(ctx, todoInfo); logger.info("###推送结果为:" + b + "(true为不推送,false为推送)"); + Object shkd_type =SystemParamServiceHelper.getPublicParameter("shkd_type"); + logger.info("###shkd_type参数为"+shkd_type); + if (!b) { - logger.info("###shkd_type参数为"+shkd_type); if (Objects.equals(shkd_type, "0")) { //旧 eoss 环境 getToDoFormal(ctx, todoInfo); @@ -64,6 +63,7 @@ public class BacklogServiceHandle extends AbstractServiceHandler { logger.info("###结束待办_createToDo"); try { //判断是否包含cache值 + DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache(); boolean contains = cache.contains(ctx.getBusinessKey()); if(contains){ return; @@ -236,6 +236,9 @@ public class BacklogServiceHandle extends AbstractServiceHandler { form.append("}"); Object shkd_cache = SystemParamServiceHelper.getPublicParameter("shkd_cache"); int z = 0; + DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache(); + Object shkd_type =SystemParamServiceHelper.getPublicParameter("shkd_type"); + logger.info("###shkd_type参数为"+shkd_type); if (Objects.equals(shkd_type, "0")) { //旧 eoss 环境 待办 CreateToDoHandler.get_CreateToDoHandler().sendCreateToDo(form.toString(), title, next.getLong("fid").toString(), userName1, next.getString("fbillno")); @@ -286,6 +289,8 @@ public class BacklogServiceHandle extends AbstractServiceHandler { logger.info("###创建已办_dealToDo"); boolean b = allowMobApprove(ctx, info); logger.info("###推送结果为:" + b + "(true为不推送,false为推送)"); + Object shkd_type =SystemParamServiceHelper.getPublicParameter("shkd_type"); + logger.info("###shkd_type参数为"+shkd_type); if (!b) { logger.info("###shkd_type参数为"+shkd_type); if (Objects.equals(shkd_type, "0")) { @@ -308,6 +313,8 @@ public class BacklogServiceHandle extends AbstractServiceHandler { logger.info("###创建撤销_deleteToDo"); boolean b = allowMobApprove(ctx, info); logger.info("###推送结果为:" + b + "(true为不推送,false为推送)"); + Object shkd_type =SystemParamServiceHelper.getPublicParameter("shkd_type"); + logger.info("###shkd_type参数为"+shkd_type); if (!b) { logger.info("###shkd_type参数为"+shkd_type); if (Objects.equals(shkd_type, "0")) {