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;