From e7016f338751ef42107d4290b9c9a8d3c85ae2d9 Mon Sep 17 00:00:00 2001 From: fang <123456> Date: Thu, 14 Nov 2024 12:14:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=8A=9E=5F1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../servicehandler/BacklogServiceHandle.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 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 229d414..3e3751e 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 @@ -34,7 +34,7 @@ public class BacklogServiceHandle extends AbstractServiceHandler { logger.info("###创建待办_createToDo"); //几个待办 List userIds = todoInfo.getUserIds(); - DynamicObjectCollection query = QueryServiceHelper.query("bos_user", "id,name,phone", new QFilter[]{new QFilter("id", "in", userIds)}); + DynamicObjectCollection query = QueryServiceHelper.query("bos_user", "id,name,phone,username", new QFilter[]{new QFilter("id", "in", userIds)}); DynamicObject dynamicObject = QueryServiceHelper.queryOne("wf_hitaskinst", "billno,startname,id,name", new QFilter[]{new QFilter("id", "=", todoInfo.getTaskId())}); logger.info("####待办taskid:"+todoInfo.getTaskId()); @@ -51,8 +51,8 @@ public class BacklogServiceHandle extends AbstractServiceHandler { backlogMessage.setPreStepName(""); // startname发起人名称 backlogMessage.setSendUserName(dynamicObject.getString("startname")); - //接收人手机号 - backlogMessage.setReceiveUserId(query_one.getString("phone")); + //接收人用户名 + backlogMessage.setReceiveUserId(query_one.getString("username")); //标题 backlogMessage.setTitle(todoInfo.getTitle()); //PC地址 @@ -89,11 +89,11 @@ public class BacklogServiceHandle extends AbstractServiceHandler { //几个已办 List userIds = info.getUserIds(); logger.info("####已办taskid:"+info.getTaskId()); - DynamicObjectCollection query = QueryServiceHelper.query("bos_user", "id,name,phone", new QFilter[]{new QFilter("id", "in", userIds)}); + DynamicObjectCollection query = QueryServiceHelper.query("bos_user", "id,name,phone,username", new QFilter[]{new QFilter("id", "in", userIds)}); //业务id Long taskId = ctx.getTaskId(); for (DynamicObject queryOne : query) { - DealToDoHandler.get_DealToDoHandler().sendDealToDo(taskId,queryOne.getString("phone")); + DealToDoHandler.get_DealToDoHandler().sendDealToDo(taskId,queryOne.getString("username")); } logger.info("###结束已办_dealToDo"); @@ -102,12 +102,12 @@ public class BacklogServiceHandle extends AbstractServiceHandler { public void deleteToDo(MessageContext ctx, ToDoInfo info){ logger.info("###创建撤销_deleteToDo"); List userIds = info.getUserIds(); - DynamicObjectCollection query = QueryServiceHelper.query("bos_user", "id,name,phone", new QFilter[]{new QFilter("id", "in", userIds)}); + DynamicObjectCollection query = QueryServiceHelper.query("bos_user", "id,name,phone,username", new QFilter[]{new QFilter("id", "in", userIds)}); //业务id Long taskId = ctx.getTaskId(); logger.info("####撤销taskid:"+info.getTaskId()); for (DynamicObject queryOne : query) { - deleteToDoHandler.get_deleteToDoHandler().sendDeleteToDo(taskId,queryOne.getString("phone")); + deleteToDoHandler.get_deleteToDoHandler().sendDeleteToDo(taskId,queryOne.getString("username")); } logger.info("###结束撤销_deleteToDo"); }