This commit is contained in:
fang 2024-11-14 12:14:55 +08:00
parent 45bc094c89
commit e7016f3387
1 changed files with 7 additions and 7 deletions

View File

@ -34,7 +34,7 @@ public class BacklogServiceHandle extends AbstractServiceHandler {
logger.info("###创建待办_createToDo");
//几个待办
List<Long> 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<Long> 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<Long> 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");
}