| | |
| | | record.setHouseholdHeadWarn(0); |
| | | } |
| | | //赔偿金额(判断新购房还是二手房,这两个只能存在一个) |
| | | if (record.getPriceNewAmount().compareTo(BigDecimal.ZERO) == 0 && |
| | | record.getPriceOldAmount().compareTo(BigDecimal.ZERO) == 0) { |
| | | if (ObjUtil.isNotEmpty(record.getPriceNewAmount()) |
| | | && ObjUtil.isNotEmpty(record.getPriceOldAmount())) { |
| | | record.setPriceAmountWarn(1); |
| | | }else{ |
| | | record.setPriceAmountWarn(0); |
| | | } |
| | | if (record.getPriceNewAmount().compareTo(BigDecimal.ZERO) > 0 && |
| | | record.getPriceOldAmount().compareTo(BigDecimal.ZERO) > 0) { |
| | | } else if (ObjUtil.isEmpty(record.getPriceNewAmount()) |
| | | && ObjUtil.isEmpty(record.getPriceOldAmount())) { |
| | | record.setPriceAmountWarn(1); |
| | | }else{ |
| | | record.setPriceAmountWarn(0); |
| | |
| | | continue; |
| | | } |
| | | //自主购房补贴、过渡补贴(如果购房情况异常则不判定自主购房补贴是否异常,自主购房补贴、过渡补贴 依赖赔偿金额信息) |
| | | if (record.getPriceAmountWarn() == 0) { |
| | | if (record.getPriceAmountWarn() == 0 && record.getPriceAmountWarn() == 0) { |
| | | boolean warnFlag = compensateService.compensateBuyCalculateV2(applyRecord.getDemolitionTime(), |
| | | record.getStreet(), |
| | | applyRecord.getOrgArea(), applyRecord.getNoOrgArea(), |
| | |
| | | } |
| | | record.setWaitFamilyAreaWarn(warn ? 0 : 1); |
| | | |
| | | //赔偿金额(判断新购房还是二手房,这两个只能存在一个) |
| | | if (record.getCompensationNewAmount().compareTo(BigDecimal.ZERO) == 0 && |
| | | record.getCompensationOldAmount().compareTo(BigDecimal.ZERO) == 0) { |
| | | //判断是否两个都填写了 |
| | | if (ObjUtil.isNotEmpty(record.getCompensationOldAmount()) |
| | | && ObjUtil.isNotEmpty(record.getCompensationNewAmount())) { |
| | | record.setCompensationAmountWarn(1); |
| | | }else 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) { |
| | | record.setCompensationAmountWarn(1); |
| | | }else{ |
| | | record.setCompensationAmountWarn(0); |
| | | } |
| | | |
| | | |
| | | BigDecimal orgArea = placementApplyRecord == null ? BigDecimal.ZERO : placementApplyRecord.getOrgArea(); |
| | | BigDecimal noOrgArea = placementApplyRecord == null ? BigDecimal.ZERO : placementApplyRecord.getNoOrgArea(); |
| | | //自主购房补贴、过渡补贴(如果购房情况异常则不判定自主购房补贴是否异常,自主购房补贴、过渡补贴 依赖赔偿金额信息) |