From 56274f7f84619d8a98dfd99c5928d09c6377b369 Mon Sep 17 00:00:00 2001 From: fang <123456> Date: Wed, 20 Nov 2024 16:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=8F=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shkd/sys/sys/midservice/backlogTack/ToDoResendTack.java | 4 ++-- .../java/shkd/sys/sys/midservice/handler/DealToDoHandler.java | 4 +++- .../shkd/sys/sys/midservice/handler/deleteToDoHandler.java | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/backlogTack/ToDoResendTack.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/backlogTack/ToDoResendTack.java index c104153..7102016 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/backlogTack/ToDoResendTack.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/backlogTack/ToDoResendTack.java @@ -170,9 +170,9 @@ public class ToDoResendTack extends AbstractTask { while (iterator.hasNext()) { Row next = iterator.next(); //接收人手机号 - DynamicObject dynamicObject = QueryServiceHelper.queryOne("bos_user", "name,shkd_pid," + + DynamicObject dynamicObject = QueryServiceHelper.queryOne("bos_user", "name," + "phone,username", new QFilter[]{new QFilter("id", "=", next.getString("freceiveuserid"))}); - String username = dynamicObject.getString("phone"); + String username = dynamicObject.getString("username"); switch (t_status) { case "1": //标题 diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/handler/DealToDoHandler.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/handler/DealToDoHandler.java index 2db7285..8185446 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/handler/DealToDoHandler.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/handler/DealToDoHandler.java @@ -6,6 +6,8 @@ import kd.bos.logging.LogFactory; import shkd.sys.sys.midservice.constant.ToDoCenterConstant; import shkd.sys.sys.midservice.utils.RequestClient; +import java.util.Objects; + /** * @Description: @@ -40,7 +42,7 @@ public class DealToDoHandler { logger.info("###响应报文为空"); return false; } else { - if (jsonObject.getBoolean("success")) { + if(Objects.equals("success",jsonObject.getString("status"))){ //发送成功 RequestClient.getInstance().saveDeLToDo(appRecordId, userId, ToDoCenterConstant.URI_SEND_finish, true, result, part, "2"); return true; diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/handler/deleteToDoHandler.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/handler/deleteToDoHandler.java index abb3130..697f29b 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/handler/deleteToDoHandler.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/handler/deleteToDoHandler.java @@ -6,6 +6,8 @@ import kd.bos.logging.LogFactory; import shkd.sys.sys.midservice.constant.ToDoCenterConstant; import shkd.sys.sys.midservice.utils.RequestClient; +import java.util.Objects; + /** * @Description: @@ -40,7 +42,7 @@ public class deleteToDoHandler { logger.info("###响应报文为空"); return false; }else{ - if(jsonObject.getBoolean("success")){ + if(Objects.equals("success",jsonObject.getString("status"))){ //发送成功 RequestClient.getInstance().saveDeLToDo(appRecordId,userId,ToDoCenterConstant.URI_send_deleteP,true,result,part,"5"); return true;