Bläddra i källkod

1.修复资产产品未认领实收款在入库后可以直接出库的BUG

GouGengquan 10 månader sedan
förälder
incheckning
9bde62220d

+ 2 - 2
service/src/main/java/com/dayou/service/impl/BusinessProductionServiceImpl.java

@@ -194,10 +194,10 @@ public class BusinessProductionServiceImpl implements IBusinessProductionService
                     workNodeCommit.setProduction(productions);
                 }
                 if (MainBusinessEnum.ASSET_BUSINESS.equals(businessType) && StrUtil.isNotBlank(workNodeCommit.getBusinessMinId())){
-                    ProductionFund productionFund = productionFundMapper.selectOne(new LambdaQueryWrapper<ProductionFund>().select(BaseEntity::getId)
+                    ProductionFund productionFund = productionFundMapper.selectOne(new LambdaQueryWrapper<ProductionFund>().select(BaseEntity::getId,ProductionFund::getRealAmount)
                             .eq(ProductionFund::getBusinessType, ASSET_BUSINESS.name()).eq(ProductionFund::getBusinessId, businessId)
                             .eq(ProductionFund::getProductionNo, workNodeCommit.getBusinessMinId()).eq(BaseEntity::getDeleted, Boolean.FALSE));
-                    workNodeCommit.setIfProductionFund(productionFund!=null);
+                    workNodeCommit.setIfProductionFund(productionFund.getRealAmount()!=null);
                 }
                 if (MainBusinessEnum.PERSONAL_BUSINESS.equals(businessType)){
                     PersonalTarget personalTarget = personalTargetMapper.selectOne(new LambdaQueryWrapper<PersonalTarget>().eq(PersonalTarget::getPersonalId, businessId)