#EC_HJ111# 流程超时门户集成对接

main
shilei 2 years ago
parent a4cbbb2a5e
commit 2fc2d88a43

@ -85,25 +85,36 @@ public class DoHandle_CommonProcessCmd extends AbstractCommonCommand<Boolean> {
if(handleResult){ if(handleResult){
try{ try{
if(userlist.size() > 0){ if(userlist.size() > 0){
String userid = StringUtils.join(userlist);
String userid = StringUtils.join(userlist, ",");
bb.writeLog("DoHandle_CommonProcessCmd-userid:"+userid); bb.writeLog("DoHandle_CommonProcessCmd-userid:"+userid);
Class<?> clazz = Class.forName("weaver.interfaces.dito.overtime.SendPortalOverTimeSubmitUtil"); String className = "weaver.interfaces.dito.overtime.SendPortalOverTimeSubmitUtil" ;
if(clazz.getMethod("sendOverTimeSubmit") != null) { String methodName = "sendOverTimeSubmit" ;
Method method = clazz.getMethod("sendOverTimeSubmit", String.class,String.class);
Class<?> clazz = Class.forName(className);
bb.writeLog("DoHandle_CommonProcessCmd-requestid1:"+requestid);
Method method = clazz.getMethod(methodName,String.class,String.class);
bb.writeLog("DoHandle_CommonProcessCmd-requestid2:"+requestid);
Object newInstance = clazz.newInstance(); Object newInstance = clazz.newInstance();
method.invoke(newInstance,requestid,userid); bb.writeLog("DoHandle_CommonProcessCmd-requestid3:"+requestid);
}
method.invoke(newInstance,requestid+"",userid);
bb.writeLog("DoHandle_CommonProcessCmd-result:");
} }
}catch (ClassNotFoundException | NoSuchMethodException e){ }catch (ClassNotFoundException | NoSuchMethodException e){
e.printStackTrace(); e.printStackTrace();
bb.writeLog("DoHandle_CommonProcessCmd-ClassNotFoundException:"+e);
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
e.printStackTrace(); e.printStackTrace();
bb.writeLog("DoHandle_CommonProcessCmd-IllegalAccessException:"+e);
} catch (InstantiationException e) { } catch (InstantiationException e) {
e.printStackTrace(); e.printStackTrace();
bb.writeLog("DoHandle_CommonProcessCmd-InstantiationException:"+e);
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
e.printStackTrace(); e.printStackTrace();
bb.writeLog("DoHandle_CommonProcessCmd-InvocationTargetException:"+e);
} }
} }
} }

Loading…
Cancel
Save