ソースを参照

提交新增合同文件校验

chenxiaofei 1 ヶ月 前
コミット
780061a2af

+ 3 - 3
pom.xml

@@ -391,9 +391,9 @@
         <!--测试环境-->
         <profile>
             <id>test</id>
-            <activation>
-                <activeByDefault>true</activeByDefault>
-            </activation>
+<!--            <activation>-->
+<!--                <activeByDefault>true</activeByDefault>-->
+<!--            </activation>-->
             <properties>
                 <profiles.active>test</profiles.active>
                 <nacos.server>10.10.10.224:8848</nacos.server>

+ 6 - 2
sckw-modules/sckw-transport/src/main/java/com/sckw/transport/service/KwtLogisticsConsignmentService.java

@@ -2383,8 +2383,12 @@ public class KwtLogisticsConsignmentService {
     private Set<Long> getAllEnt(String entId) {
         Set<Long> allEnt = Sets.newHashSet();
         //根据企业类型查询企业
-        Long enterId = StringUtils.isBlank(entId) ? LoginUserHolder.getEntId() : Long.parseLong(entId);
-
+        Long enterId = null;
+        if (org.apache.commons.lang3.StringUtils.isBlank(entId)){
+            enterId = LoginUserHolder.getEntId();
+        }else {
+            enterId = Long.parseLong(entId);
+        }
         if (Objects.isNull(enterId)){
           return allEnt;
         }