Commit 3e572a4b by jiangxuelei

Update InzWorkflowServiceImpl.java

parent a69b4ff0
...@@ -249,12 +249,12 @@ public class InzWorkflowServiceImpl implements InzWorkflowService{ ...@@ -249,12 +249,12 @@ public class InzWorkflowServiceImpl implements InzWorkflowService{
KObject currentLoginStaff = null; KObject currentLoginStaff = null;
try { try {
// currentLoginStaff = bapContext.getCurrentStaff(); currentLoginStaff = bapContext.getCurrentStaff();
List<KObject> staffs = staffService.getByUsername("c_user_default"); // List<KObject> staffs = staffService.getByUsername("c_user_default");
if(null == staffs || staffs.size()<=0){ // if(null == staffs || staffs.size()<=0){
throw new Exception(); // throw new Exception();
} // }
currentLoginStaff = staffs.get(0); // currentLoginStaff = staffs.get(0);
} catch (Exception e) { } catch (Exception e) {
throw new WorkflowRuntimeException("获取当前登录用户失败!"); throw new WorkflowRuntimeException("获取当前登录用户失败!");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment