|
|
|
@ -196,8 +196,8 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
landListed.setLandTransferMu(numberFormat(getCellValue(sheetRow.getCell(5)),0)); |
|
|
|
|
landListed.setTotalConsArea(numberFormat(getCellValue(sheetRow.getCell(6)),0)); |
|
|
|
|
landListed.setPlotRatio(numberFormat(getCellValue(sheetRow.getCell(7)),2)); |
|
|
|
|
landListed.setBuildingDensity(numberFormat(getCellStrValue(sheetRow.getCell(8)),0)); |
|
|
|
|
landListed.setGreenSpaceRatio(numberFormat(getCellStrValue(sheetRow.getCell(9)),0)); |
|
|
|
|
landListed.setBuildingDensity(numberFormat(getCellStrValue(sheetRow.getCell(8)),100,0)); |
|
|
|
|
landListed.setGreenSpaceRatio(numberFormat(getCellStrValue(sheetRow.getCell(9)),100,0)); |
|
|
|
|
landListed.setHeighPermitted(getCellStrValue(sheetRow.getCell(10))); |
|
|
|
|
landListed.setRemiseYears(getCellStrValue(sheetRow.getCell(11))); |
|
|
|
|
landListed.setTransferPrice(numberFormat(getCellStrValue(sheetRow.getCell(12)),0)); |
|
|
|
@ -223,14 +223,14 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
//规划条件
|
|
|
|
|
landListed.setBizSpace(numberFormat(getCellStrValue(sheetRow.getCell(20)),0)); |
|
|
|
|
landListed.setCommerceSpace(numberFormat(getCellStrValue(sheetRow.getCell(21)),0)); |
|
|
|
|
landListed.setBizCommerceRate(numberFormat(getCellValue(sheetRow.getCell(22)),2)); |
|
|
|
|
landListed.setBizCommerceRate(numberFormat(getCellValue(sheetRow.getCell(22)),100,2)); |
|
|
|
|
landListed.setAllocationCapacity(getCellStrValue(sheetRow.getCell(23))); |
|
|
|
|
landListed.setAllocationNotCapacity(getCellStrValue(sheetRow.getCell(24))); |
|
|
|
|
//建设条件
|
|
|
|
|
landListed.setGeologicHazard(getCellStrValue(sheetRow.getCell(25))); |
|
|
|
|
landListed.setCivilAirDefence(numberFormat(getCellStrValue(sheetRow.getCell(26)),0)); |
|
|
|
|
landListed.setSpecialPlan(getCellStrValue(sheetRow.getCell(27))); |
|
|
|
|
landListed.setAssemblyBuilding(numberFormat(getCellStrValue(sheetRow.getCell(28)),0)); |
|
|
|
|
landListed.setAssemblyBuilding(numberFormat(getCellStrValue(sheetRow.getCell(28)),100,0)); |
|
|
|
|
landListed.setGreenBuilding(getCellStrValue(sheetRow.getCell(29))); |
|
|
|
|
landListed.setOtherConditions(getCellStrValue(sheetRow.getCell(30))); |
|
|
|
|
landListed.setPercentFinishedHousing(numberFormat(getCellStrValue(sheetRow.getCell(31)),0)); |
|
|
|
@ -261,13 +261,11 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
landListed.setLandEnterpriseShort(getCellStrValue(sheetRow.getCell(49))); |
|
|
|
|
landListed.setDealPrice(numberFormat(getCellStrValue(sheetRow.getCell(50)),0)); |
|
|
|
|
landListed.setDealFloorPrice(numberFormat(getCellValue(sheetRow.getCell(51)),0)); |
|
|
|
|
landListed.setPremiumRate(numberFormat(getCellValue(sheetRow.getCell(52)),2)); |
|
|
|
|
String cellStrValue = getCellStrValue(sheetRow.getCell(53)); |
|
|
|
|
double commercialSelfRatio = StrUtil.isNotEmpty(cellStrValue)?Double.valueOf(cellStrValue)*100 : 0; |
|
|
|
|
landListed.setCommercialSelfRatio(new BigDecimal(commercialSelfRatio).setScale(0,BigDecimal.ROUND_HALF_UP)); |
|
|
|
|
landListed.setPremiumRate(numberFormat(getCellValue(sheetRow.getCell(52)),100,2)); |
|
|
|
|
landListed.setCommercialSelfRatio(numberFormat(getCellStrValue(sheetRow.getCell(53)),100,0)); |
|
|
|
|
BigDecimal year = numberFormat(getCellStrValue(sheetRow.getCell(54)),0); |
|
|
|
|
landListed.setCommercialSelfYear(year == null? null:year.intValue()); |
|
|
|
|
landListed.setHomeSelfRatio(numberFormat(getCellStrValue(sheetRow.getCell(55)),0)); |
|
|
|
|
landListed.setHomeSelfRatio(numberFormat(getCellStrValue(sheetRow.getCell(55)),100,0)); |
|
|
|
|
year = numberFormat(getCellStrValue(sheetRow.getCell(56)),0); |
|
|
|
|
landListed.setHomeSelfYear(year == null? null:year.intValue()); |
|
|
|
|
landListed.setPercentUnpaid(numberFormat(getCellStrValue(sheetRow.getCell(57)),2)); |
|
|
|
@ -313,8 +311,8 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
list.add(stringFormat(data.getLandTransferMu(),0)); |
|
|
|
|
list.add(stringFormat(data.getTotalConsArea(),0)); |
|
|
|
|
list.add(stringFormat(data.getPlotRatio(),2)); |
|
|
|
|
list.add(stringFormat(data.getBuildingDensity(),0)); |
|
|
|
|
list.add(stringFormat(data.getGreenSpaceRatio(),0)); |
|
|
|
|
list.add(strRateFormat(data.getBuildingDensity(),0)); |
|
|
|
|
list.add(strRateFormat(data.getGreenSpaceRatio(),0)); |
|
|
|
|
list.add(data.getHeighPermitted()); |
|
|
|
|
list.add(data.getRemiseYears()); |
|
|
|
|
list.add(stringFormat(data.getTransferPrice(),0)); |
|
|
|
@ -328,14 +326,14 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
//规划条件
|
|
|
|
|
list.add(stringFormat(data.getBizSpace(),0)); |
|
|
|
|
list.add(stringFormat(data.getCommerceSpace(),0)); |
|
|
|
|
list.add(strRateFormat(data.getBizCommerceRate())); |
|
|
|
|
list.add(strRateFormat(data.getBizCommerceRate(),0)); |
|
|
|
|
list.add(data.getAllocationCapacity()); |
|
|
|
|
list.add(data.getAllocationNotCapacity()); |
|
|
|
|
//建设条件
|
|
|
|
|
list.add(data.getGeologicHazard()); |
|
|
|
|
list.add(stringFormat(data.getCivilAirDefence(),0)); |
|
|
|
|
list.add(data.getSpecialPlan()); |
|
|
|
|
list.add(stringFormat(data.getAssemblyBuilding(),0)); |
|
|
|
|
list.add(strRateFormat(data.getAssemblyBuilding(),0)); |
|
|
|
|
list.add(data.getGreenBuilding()); |
|
|
|
|
list.add(data.getOtherConditions()); |
|
|
|
|
list.add(stringFormat(data.getPercentFinishedHousing(),0)); |
|
|
|
@ -362,13 +360,12 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
list.add(data.getLandEnterpriseShort()); |
|
|
|
|
list.add(stringFormat(data.getDealPrice(),0)); |
|
|
|
|
list.add(stringFormat(data.getDealFloorPrice(),0)); |
|
|
|
|
list.add(strRateFormat(data.getPremiumRate())); |
|
|
|
|
list.add((data.getCommercialSelfRatio() == null ? |
|
|
|
|
0d:data.getCommercialSelfRatio().setScale(0,BigDecimal.ROUND_HALF_UP).doubleValue())+"%"); |
|
|
|
|
list.add(strRateFormat(data.getPremiumRate(),0)); |
|
|
|
|
list.add(strRateFormat(data.getCommercialSelfRatio(),0)); |
|
|
|
|
list.add(data.getCommercialSelfYear() == null?"":data.getCommercialSelfYear().toString()); |
|
|
|
|
list.add(strRateFormat(data.getHomeSelfRatio())); |
|
|
|
|
list.add(strRateFormat(data.getHomeSelfRatio(),0)); |
|
|
|
|
list.add(data.getHomeSelfYear() == null?"":data.getHomeSelfYear().toString()); |
|
|
|
|
list.add(strRateFormat(data.getPercentUnpaid())); |
|
|
|
|
list.add(strRateFormat(data.getPercentUnpaid(),0)); |
|
|
|
|
list.add(stringFormat(data.getTalenApartmentArea(),0)); |
|
|
|
|
list.add(data.getParticipatingEnterprises()); |
|
|
|
|
//项目开发
|
|
|
|
@ -449,6 +446,13 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
return new BigDecimal(value).setScale(decimal,BigDecimal.ROUND_HALF_UP); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private BigDecimal numberFormat(String value,int mulitple,int decimal) { |
|
|
|
|
if (StringUtils.isEmpty(value)) { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
return new BigDecimal(value).multiply(new BigDecimal(mulitple)).setScale(decimal,BigDecimal.ROUND_HALF_UP); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 格式化列值为字符串 |
|
|
|
|
* |
|
|
|
@ -471,9 +475,7 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
* @date 2021/8/25 |
|
|
|
|
* @return |
|
|
|
|
**/ |
|
|
|
|
private String strRateFormat(BigDecimal value){ |
|
|
|
|
double bizRate = value == null ? |
|
|
|
|
0d:value.multiply(new BigDecimal(100)).setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
|
|
return bizRate+"%"; |
|
|
|
|
private String strRateFormat(BigDecimal value,int decimal){ |
|
|
|
|
return value == null? null:stringFormat(value,decimal)+"%"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|