ソースを参照

feature 解决默认工厂的bug

xiahan 1 年間 前
コミット
d354b183a8

+ 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("当前用户所属工厂信息为空");
         }