|
本帖最后由 hanweixingchen 于 2019-9-26 22:57 编辑
描述: 根据人的ID获取人员成员
参数: {String} orgIDorFID 组织的ID或FID, 可以为''或null, 表示不限制部门
参数: {String} personID 人的ID
返回值: {List<com.justep.system.opm.OrgUnit>}
案例:
findPersonMembersByID('', currentPersonID())
findPersonMembersByID(currentOgnFID(), currentPersonID())
findPersonMembersByID('', currentPersonID()):不指定组织,一人多岗时会产生多个待办,且不能流转
findPersonMembersByID(currentOgnFID(), currentPersonID()):获取机构fID,这个也是一样会产生多个待办,
findPersonMembersByID(currentDeptFID(), currentPersonID()):流转时报错
<actions><action process="/ZNK/attendance/process/leaveapplicationform/leaveapplicationformProcess" activity="businessActivity3" name="getSysParamsAction" executor="/KDglRGYBUb8fgMNoSdL.ogn/p0Id9PAkJ53x5qMuO9b.dpt/rDNeVMsGpgx0oVfyowu.pos/do9RmekNZTNoLYHd5YF@rDNeVMsGpgx0oVfyowu.psm" execute-context="" content-type="application/xml"><parameters/></action><action process="/ZNK/attendance/process/leaveapplicationform/leaveapplicationformProcess" activity="businessActivity3" name="queryTaskDataAction" executor="/KDglRGYBUb8fgMNoSdL.ogn/p0Id9PAkJ53x5qMuO9b.dpt/rDNeVMsGpgx0oVfyowu.pos/do9RmekNZTNoLYHd5YF@rDNeVMsGpgx0oVfyowu.psm" execute-context="" content-type="application/xml"><parameters><parameter name="task"><xbiz:simple xmlns:xbiz="http://www.justep.com/xbiz#" type="http://www.w3.org/2001/XMLSchema#String">4936D2FF3476481EB45752DCD920AF95</xbiz:simple></parameter></parameters></action></actions>
java.lang.NullPointerException
at com.justep.system.opm.Operator.getAuthorizedPersonMember(Unknown Source)
at com.justep.system.context.ContextHelper.findPersonMember(Unknown Source)
at com.justep.system.log.LogUtils.log(Unknown Source)
at com.justep.system.log.LogUtils.log(Unknown Source)
at com.justep.system.interceptor.CheckPermission.execute(Unknown Source)
at com.justep.system.action.EngineInterceptor.excute(Unknown Source)
at com.justep.system.action.Engine.invokeActions(Native Method)
at com.justep.system.action.Engine.invokeActions(Unknown Source)
at com.justep.business.server.BusinessServer.doAction(Unknown Source)
at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
at com.justep.business.server.BusinessServer.excute(Unknown Source)
at com.justep.business.server.BusinessServer.excute(Unknown Source)
at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.justep.micro.service.MicroServiceFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)
应该怎么设置当前部门呢
|
|