|
|
|
@ -187,7 +187,7 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
LandListed landListed = new LandListed(); |
|
|
|
|
landListed.setLandListedId(DateUtil.landListedIdfromDate(LocalDateTime.now(), "yyyyMMdd",this.selectId())); |
|
|
|
|
//公告信息
|
|
|
|
|
landListed.setAnnoId(getCellValue(sheetRow.getCell(0))); |
|
|
|
|
landListed.setAnnoId(getAnnoId(sheetRow.getCell(0))); |
|
|
|
|
log.info("公告序号为: {}",landListed.getAnnoId()); |
|
|
|
|
landListed.setLandCode(getCellStrValue(sheetRow.getCell(1))); |
|
|
|
|
landListed.setLandPosition(getCellStrValue(sheetRow.getCell(2))); |
|
|
|
@ -230,7 +230,7 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
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)),100,0)); |
|
|
|
|
landListed.setAssemblyBuilding(getCellStrValue(sheetRow.getCell(28))); |
|
|
|
|
landListed.setGreenBuilding(getCellStrValue(sheetRow.getCell(29))); |
|
|
|
|
landListed.setOtherConditions(getCellStrValue(sheetRow.getCell(30))); |
|
|
|
|
landListed.setPercentFinishedHousing(numberFormat(getCellStrValue(sheetRow.getCell(31)),0)); |
|
|
|
@ -333,7 +333,7 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
list.add(data.getGeologicHazard()); |
|
|
|
|
list.add(stringFormat(data.getCivilAirDefence(),0)); |
|
|
|
|
list.add(data.getSpecialPlan()); |
|
|
|
|
list.add(strRateFormat(data.getAssemblyBuilding(),0)); |
|
|
|
|
list.add(data.getAssemblyBuilding()); |
|
|
|
|
list.add(data.getGreenBuilding()); |
|
|
|
|
list.add(data.getOtherConditions()); |
|
|
|
|
list.add(stringFormat(data.getPercentFinishedHousing(),0)); |
|
|
|
@ -416,6 +416,19 @@ public class LandListedServiceImpl extends ServiceImpl<LandListedMapper, LandLis
|
|
|
|
|
return valueFormat(value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getAnnoId(XSSFCell cell){ |
|
|
|
|
try { |
|
|
|
|
Double str = Double.valueOf(cell.toString()); |
|
|
|
|
Double value = Double.valueOf(cell.getRawValue()); |
|
|
|
|
if (str.doubleValue() == value.doubleValue()){ |
|
|
|
|
return getCellValue(cell); |
|
|
|
|
} |
|
|
|
|
} catch (NumberFormatException e) { |
|
|
|
|
return getCellStrValue(cell); |
|
|
|
|
} |
|
|
|
|
return getCellStrValue(cell); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 格式化列的值 |
|
|
|
|
* |
|
|
|
|