Переглянути джерело

岗位数显示不全修改,流程异常报错打印日志监控

szjbdgzl 2 роки тому
батько
коміт
373850a9ce

+ 5 - 2
ibps-bpmn-root/modules/bpmn-biz/src/main/java/com/lc/ibps/bpmn/utils/BpmTaskQueryUtil.java

@@ -50,10 +50,12 @@ public class BpmTaskQueryUtil {
 			// 1、解析获得用户相关的ID、类型
 			StopWatchUtil.initAndStartLocal(localId, Level.DEBUG, step, "buildTrans");
 			PartyEntityTransVo trans = BpmTaskBuilder.buildTrans(list, ContextUtil.getCurrentUserId());
-			
+			System.out.println("trans = " + trans);
+
 			// 2、合并请求转换用户信息
 			StopWatchUtil.stopAndStartNewLocal(localId, step, "trans");
 			APIResult<PartyEntityTransResultVo> result = partyEntityService.trans(trans);
+			System.out.println("result = " + result);
 			if(result.isFailed()) {
 				throw new BaseException(result.getCause());
 			}
@@ -76,7 +78,8 @@ public class BpmTaskQueryUtil {
 			}
 		}
 		catch (Exception e) {
-			throw new BaseException(e);
+			e.printStackTrace();
+			//throw new BaseException(e);
 		}
 		finally {
 			StopWatchUtil.stopAndPrintLocal(localId, step);

+ 5 - 3
ibps-common-root/modules/org-biz/src/main/java/com/lc/ibps/org/party/builder/PartyEntityTreeBuilder.java

@@ -168,9 +168,11 @@ public class PartyEntityTreeBuilder {
 	 * @return
 	 */
 	public static List<PartyEntityTreePo> buildTreeWithRoot(List<PartyEntityTreePo> list){
-		List<PartyEntityTreePo> treeList = buildTree(list);
-		treeList.add(PartyEntityTreeBuilder.buildRoot(PartyType.POSITION.getLabel() + "树"));
-		return treeList;
+		//		List<PartyEntityTreePo> treeList = buildTree(list);
+//		treeList.add(PartyEntityTreeBuilder.buildRoot(PartyType.POSITION.getLabel() + "树"));
+//		return treeList;
+		list.add(PartyEntityTreeBuilder.buildRoot(PartyType.POSITION.getLabel() + "树"));
+		return list;
 	}
 	
 	/**

+ 3 - 1
ibps-provider-base-root/modules/provider-platform-api/src/main/java/com/lc/ibps/org/vo/PartyEntityTransResultVo.java

@@ -57,15 +57,17 @@ public class PartyEntityTransResultVo implements Serializable {
 	@JsonIgnore
 	public TransResultVo getTransResultVo(String taskId) {
 		if(StringUtil.isBlank(taskId)) {
+			System.out.println(("getTransResultVo>>>StringUtil.isBlank(taskId)=="+taskId));
 			return null;
 		}
 		
 		for(TransResultVo vo : trans) {
 			if(vo!=null && taskId.equals(vo.getTaskId())) {
+				System.out.println("vo!=null && taskId.equals(vo.getTaskId())=========================================");
 				return vo;
 			}
 		}
-		
+		System.out.println("getTransResultVo>>>return null=====================================================================");
 		return null;
 	}