|
@@ -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)
|