소스 검색

修改BUG

liuyc 3 년 전
부모
커밋
83156364ab

+ 5 - 7
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsTreeContractServiceImpl.java

@@ -4,8 +4,6 @@ package org.springblade.manager.service.impl;
 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import lombok.AllArgsConstructor;
 import org.apache.commons.lang.StringUtils;
-import org.springblade.business.entity.ConstructionLedger;
-import org.springblade.business.mapper.ConstructionLedgerMapper;
 import org.springblade.common.utils.SnowFlakeUtil;
 import org.springblade.core.log.logger.BladeLogger;
 import org.springblade.core.mp.base.BaseServiceImpl;
@@ -31,7 +29,7 @@ public class WbsTreeContractServiceImpl
 
     private final BladeLogger logger;
     private final WbsTreePrivateServiceImpl wbsTreePrivateService;
-    private final ConstructionLedgerMapper constructionLedgerMapper;
+//    private final ConstructionLedgerMapper constructionLedgerMapper;
     private final WbsTreePrivateMapper wbsTreePrivateMapper;
     private final WbsInfoMapper wbsInfoMapper;
 
@@ -77,14 +75,14 @@ public class WbsTreeContractServiceImpl
                         if (wbsTreePrivate.getDeptCategory() == 6
                                 && wbsTreePrivate.getDeptCategory() != null
                                 && !("").equals(wbsTreePrivate.getDeptCategory())) {
-                            ConstructionLedger constructionLedger = new ConstructionLedger();
+                            /*ConstructionLedger constructionLedger = new ConstructionLedger();
                             constructionLedger.setIsBeton(0);
                             constructionLedger.setWbsId(Long.parseLong(pawDTO.getWbsId()));
-                            constructionLedger.setContractId(Long.parseLong(pawDTO.getContractId()));
-                            int b2 = constructionLedgerMapper.insert(constructionLedger);
+                            constructionLedger.setContractId(Long.parseLong(pawDTO.getContractId()));*/
+                            /*int b2 = constructionLedgerMapper.insert(constructionLedger);
                             if (b2 > 0) {
                                 logger.info(constructionLedger.getId().toString(), "初始化施工台账成功");
-                            }
+                            }*/
                         }
                     }
                 }

+ 0 - 3
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsTreeServiceImpl.java

@@ -19,8 +19,6 @@ package org.springblade.manager.service.impl;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import lombok.AllArgsConstructor;
 import org.apache.commons.lang.StringUtils;
-import org.springblade.business.entity.ConstructionLedger;
-import org.springblade.business.mapper.ConstructionLedgerMapper;
 import org.springblade.core.log.exception.ServiceException;
 import org.springblade.core.log.logger.BladeLogger;
 import org.springblade.core.secure.utils.AuthUtil;
@@ -63,7 +61,6 @@ public class WbsTreeServiceImpl extends BaseServiceImpl<WbsTreeMapper, WbsTree>
 
     private final BladeLogger logger;
     private final WbsTreeMapper wbsTreeMapper;
-    private final ConstructionLedgerMapper constructionLedgerMapper;
     private final IWbsFormElementService wbsFormElementService;
     private final WbsInfoMapper wbsInfoMapper;
     private final WbsTreeContractMapper wbsTreeContractMapper;