| | |
| | | import com.ruoyi.system.service.ISysNoticeService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.security.core.parameters.P; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | return; |
| | | } |
| | | for (PlacementApplyRecord record : records) { |
| | | if(record.getChecks() == 1){ |
| | | if (record.getChecks() == 1) { |
| | | //已核对直接跳过 |
| | | continue; |
| | | } |
| | |
| | | if (count == 0) { |
| | | //安置表户主信息不存在 |
| | | record.setIdCardExistsWarn(1); |
| | | }else{ |
| | | } else { |
| | | record.setIdCardExistsWarn(0); |
| | | } |
| | | //判断户主是否重名 |
| | |
| | | BigDecimal waitFamilyArea = record.getWaitFamilyArea(); |
| | | // Integer currentCollectiveNum = record.getCurrentCollectiveNum(); |
| | | // Integer currentNoCollectiveNum = record.getCurrentNoCollectiveNum(); |
| | | boolean warn = compensateService.compensateSettleAreaCalculate(record.getOrgArea(),record.getNoOrgArea(), waitFamilyArea); |
| | | boolean warn = compensateService.compensateSettleAreaCalculate(record.getOrgArea(), record.getNoOrgArea(), waitFamilyArea); |
| | | if (warn) { |
| | | record.setWaitFamilyAreaWarn(0); |
| | | }else{ |
| | | } else { |
| | | record.setWaitFamilyAreaWarn(1); |
| | | } |
| | | |
| | | //赔偿金额(判断新购房还是二手房,这两个只能存在一个) |
| | | if (record.getCompensationNewAmount().compareTo(BigDecimal.ZERO) == 0 && |
| | | record.getCompensationOldAmount().compareTo(BigDecimal.ZERO) == 0) { |
| | | if (ObjUtil.isEmpty(record.getCompensationNewAmount()) && |
| | | ObjUtil.isEmpty(record.getCompensationOldAmount())) { |
| | | record.setCompensationAmountWarn(1); |
| | | }else{ |
| | | record.setCompensationAmountWarn(0); |
| | | } |
| | | if (record.getCompensationNewAmount().compareTo(BigDecimal.ZERO) > 0 && |
| | | record.getCompensationOldAmount().compareTo(BigDecimal.ZERO) > 0) { |
| | | } else if (ObjUtil.isNotEmpty(record.getCompensationNewAmount()) && |
| | | ObjUtil.isNotEmpty(record.getCompensationOldAmount())) { |
| | | record.setCompensationAmountWarn(1); |
| | | }else{ |
| | | record.setCompensationAmountWarn(0); |
| | |
| | | //过渡补贴 |
| | | if (compensateService.compensateSubsidyCalculate(record.getCurrentCount(), record.getSubsidyAmount())) { |
| | | record.setSubsidyAmountWarn(0); |
| | | }else{ |
| | | } else { |
| | | record.setSubsidyAmountWarn(1); |
| | | } |
| | | } |
| | |
| | | BigDecimal quarterPayAmount = (record.getCompensationSum().subtract(pay)).divide(new BigDecimal("20"), 10, RoundingMode.DOWN); |
| | | if (quarterPayAmount.compareTo(record.getQuarterPayAmount()) != 0) { |
| | | record.setQuarterPayAmountWarn(1); |
| | | }else{ |
| | | } else { |
| | | record.setQuarterPayAmountWarn(0); |
| | | } |
| | | |
| | | //首付款警告 |
| | | boolean downPaymentAmountWarn = true; |
| | | BigDecimal cateAmount = record.getCompensationSum().multiply(new BigDecimal("0.25")); |
| | | if(cateAmount.compareTo(record.getDownPaymentAmount()) == 0){ |
| | | if (cateAmount.compareTo(record.getDownPaymentAmount()) == 0) { |
| | | downPaymentAmountWarn = false; |
| | | } |
| | | record.setDownPaymentAmountWarn(downPaymentAmountWarn ? 1 : 0); |