소스 검색

feature 解决默认工厂的bug

xiahan 1 년 전
부모
커밋
d354b183a8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cx-aps/cx-aps-common/src/main/java/com/rongwei/bscommon/sys/utils/ApsUtils.java

+ 1 - 1
cx-aps/cx-aps-common/src/main/java/com/rongwei/bscommon/sys/utils/ApsUtils.java

@@ -69,7 +69,7 @@ public class ApsUtils {
         if(currentUser==null){
             currentUser = CXCommonUtils.getCurrentUser();
         }
-        String tenantId = "0001S31000000000J0TR";//currentUser.getOrganizationDoList().get(0).getFullpid().split(",")[1];
+        String tenantId = currentUser.getOrganizationDoList().get(0).getFullpid().split(",")[1];
         if (StringUtils.isBlank(tenantId)) {
             throw new CustomException("当前用户所属工厂信息为空");
         }