1
0
Просмотр исходного кода

出让,划拨切换解决目录依赖3

chenendian 3 месяцев назад
Родитель
Сommit
541aec083b

+ 3 - 2
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/NodeAttachmentImpl.java

@@ -396,13 +396,14 @@ public class NodeAttachmentImpl implements NodeAttachmentService {
                     if(StringUtils.isBlank(gdType)){
                         TdgyRes tdgy = tdgyService.getById(nodeId);
                         gdType = tdgy.getGdType();
+                        gdType= "出让".equals(gdType) ? "1" : "划拨".equals(gdType)? "2":"";
                     }
-                    if("出让".equals(gdType)) {
+                    if("1".equals(gdType)) {
                         //处理-规划条件出具依赖
                         nodeAttachment = this.assemblyAttachment(projectId,TdgyAttachmentNameEnum.NAME_2,nodeAttachment);
                         //处理-出让图形依赖
                         nodeAttachment = this.assemblyAttachment(projectId,TdgyAttachmentNameEnum.NAME_3,nodeAttachment);
-                    }else if("划拨".equals(gdType)) {
+                    }else if("2".equals(gdType)) {
                         //处理-项目批准文件
                         nodeAttachment = this.assemblyAttachment(projectId,TdgyHbAttachmentNameEnum.NAME_1,nodeAttachment);
                         //处理-土地权属来源文件