首节已办发送
This commit is contained in:
parent
124efbb36a
commit
e596019958
|
@ -76,7 +76,7 @@ public class BacklogServiceHandle extends AbstractServiceHandler {
|
||||||
return;
|
return;
|
||||||
}*/
|
}*/
|
||||||
// 发送首节的已办
|
// 发送首节的已办
|
||||||
sendToDo(ctx);
|
sendToDo(ctx,todoInfo);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.info("###获得缓存失败,发送首节的已办失败:" + e.getMessage()+" ctx:"+ctx.toString()+" ctx.getBusinessKey:"+ctx.getBusinessKey());
|
logger.info("###获得缓存失败,发送首节的已办失败:" + e.getMessage()+" ctx:"+ctx.toString()+" ctx.getBusinessKey:"+ctx.getBusinessKey());
|
||||||
}
|
}
|
||||||
|
@ -140,7 +140,7 @@ public class BacklogServiceHandle extends AbstractServiceHandler {
|
||||||
* 首节已办数据发送
|
* 首节已办数据发送
|
||||||
* @param ctx 信息
|
* @param ctx 信息
|
||||||
*/
|
*/
|
||||||
private void sendToDo(MessageContext ctx) {
|
private void sendToDo(MessageContext ctx,ToDoInfo todoInfo) {
|
||||||
logger.info("###进入首节已办推送方法");
|
logger.info("###进入首节已办推送方法");
|
||||||
String accountId = System.getProperty("backlog-accountid");
|
String accountId = System.getProperty("backlog-accountid");
|
||||||
Object shkd_type = SystemParamServiceHelper.getPublicParameter("shkd_type");
|
Object shkd_type = SystemParamServiceHelper.getPublicParameter("shkd_type");
|
||||||
|
@ -245,7 +245,7 @@ public class BacklogServiceHandle extends AbstractServiceHandler {
|
||||||
throw new KDException(errorCode, e);
|
throw new KDException(errorCode, e);
|
||||||
}
|
}
|
||||||
//判断是否移动端
|
//判断是否移动端
|
||||||
boolean allowMobApprove = allowMobApprove(next.get("fid"));
|
boolean allowMobApprove = allowMobApprove(ctx,todoInfo);
|
||||||
if (allowMobApprove) {
|
if (allowMobApprove) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,12 +70,12 @@ public class MobApproveListServiceHelper {
|
||||||
|
|
||||||
public static boolean allowMobApprove(Object taskId){
|
public static boolean allowMobApprove(Object taskId){
|
||||||
DynamicObject object = BusinessDataServiceHelper.loadSingleFromCache("wf_hitaskinst",
|
DynamicObject object = BusinessDataServiceHelper.loadSingleFromCache("wf_hitaskinst",
|
||||||
"entitynumber,entityname,taskdefkey",
|
"entitynumber,entityname,taskdefinitionkey",
|
||||||
new QFilter[]{new QFilter("id", "=", taskId)});
|
new QFilter[]{new QFilter("id", "=", taskId)});
|
||||||
if(object != null){
|
if(object != null){
|
||||||
String entityNumber = object.getString("entitynumber");
|
String entityNumber = object.getString("entitynumber");
|
||||||
String billType = object.getString("entityname");
|
String billType = object.getString("entityname");
|
||||||
String elementId = object.getString("taskdefkey");
|
String elementId = object.getString("taskdefinitionkey");
|
||||||
int i = elementId.lastIndexOf("_");
|
int i = elementId.lastIndexOf("_");
|
||||||
//流程
|
//流程
|
||||||
String procDefNumber = elementId.substring(0, i);
|
String procDefNumber = elementId.substring(0, i);
|
||||||
|
|
Loading…
Reference in New Issue