|
|
|
@ -124,132 +124,132 @@ public class BasicInformationServiceImpl extends ServiceImpl<BasicInformationMap
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据基本信息的id列表来查找
|
|
|
|
|
* 导出项目数据
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public List<ProjectExcelInfo> selectList(List<Long> idList) {
|
|
|
|
|
return baseMapper.selectList(idList);
|
|
|
|
|
public List<ProjectExcelInfo> selectList() {
|
|
|
|
|
return baseMapper.selectList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 填充数据
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public void approvalMethodfillInData(XSSFSheet sheet, XSSFCellStyle contentStyle, int rowNum, List<ProjectExcelInfo> info, List<String> sc, List<String> ec, int num) {
|
|
|
|
|
Class<?> classBuilding = ProjectBuildingExcel.class;
|
|
|
|
|
for (ProjectExcelInfo projectExcelInfo : info) {
|
|
|
|
|
XSSFRow tempRow = sheet.createRow(rowNum++);
|
|
|
|
|
tempRow.setHeight((short) 1400);
|
|
|
|
|
int i1;
|
|
|
|
|
for (i1 = 0; i1 < sc.size(); i1++) {
|
|
|
|
|
XSSFCell tempCell = tempRow.createCell(i1);
|
|
|
|
|
tempCell.setCellStyle(contentStyle);
|
|
|
|
|
if (!ec.get(i1).endsWith("厂房")) {
|
|
|
|
|
if (Objects.equals(sc.get(i1), "")) {
|
|
|
|
|
tempCell.setCellValue(projectExcelInfo.getId());
|
|
|
|
|
} else {
|
|
|
|
|
tempCell.setCellValue(getExcelData(projectExcelInfo, sc.get(i1)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// XSSFCell tempCell = tempRow.createCell(8);
|
|
|
|
|
// tempCell.setCellStyle(contentStyle);
|
|
|
|
|
// tempCell.setCellValue("12312321");
|
|
|
|
|
|
|
|
|
|
for (int i2 = 0; i2 < projectExcelInfo.getXmjzxx().size(); i2++) {
|
|
|
|
|
switch (projectExcelInfo.getXmjzxx().get(i2).getFloor()) {
|
|
|
|
|
case 1:
|
|
|
|
|
i1 = ec.indexOf("一层厂房");
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
i1 = ec.indexOf("双层厂房");
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
i1 = ec.indexOf("三层厂房");
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
i1 = ec.indexOf("四层厂房");
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
i1 = ec.indexOf("五层厂房");
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
i1 = ec.indexOf("六层及以上厂房");
|
|
|
|
|
}
|
|
|
|
|
for (Field field : classBuilding.getDeclaredFields()) {
|
|
|
|
|
XSSFCell tempCell = tempRow.createCell(i1);
|
|
|
|
|
tempCell.setCellStyle(contentStyle);
|
|
|
|
|
Excel excelColumn = field.getAnnotation(Excel.class);
|
|
|
|
|
if (excelColumn != null) {
|
|
|
|
|
tempCell.setCellValue(getBuildingData(projectExcelInfo.getXmjzxx().get(i2), sc.get(i1)));
|
|
|
|
|
i1++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 填充数据-项目基础信息获取
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public String getExcelData(ProjectExcelInfo item, String str) {
|
|
|
|
|
String a = null;
|
|
|
|
|
switch (str) {
|
|
|
|
|
case "":
|
|
|
|
|
a = item.getId() == null ? "-" : item.getId();
|
|
|
|
|
break;
|
|
|
|
|
case "项目名称":
|
|
|
|
|
a = item.getName() == null ? "-" : item.getName();
|
|
|
|
|
break;
|
|
|
|
|
case "项目法人单位":
|
|
|
|
|
a = item.getXmfrdwxz() == null ? "-" : item.getXmfrdwxz();
|
|
|
|
|
break;
|
|
|
|
|
case "项目法人单位性质":
|
|
|
|
|
a = String.valueOf(item.getNature() == null ? "-" : item.getNature());
|
|
|
|
|
break;
|
|
|
|
|
case "总用地面积":
|
|
|
|
|
a = String.valueOf(item.getZydmj() == null ? "-" : item.getZydmj());
|
|
|
|
|
break;
|
|
|
|
|
case "容积率":
|
|
|
|
|
a = String.valueOf(item.getRjl() == null ? "-" : item.getRjl());
|
|
|
|
|
break;
|
|
|
|
|
case "总建筑面积":
|
|
|
|
|
a = String.valueOf(item.getZjzmj() == null ? "-" : item.getZjzmj());
|
|
|
|
|
break;
|
|
|
|
|
case "标准层建筑面积":
|
|
|
|
|
a = String.valueOf(item.getBzcjzmj() == null ? "-" : item.getBzcjzmj());
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return a;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 填充数据-项目建筑信息获取
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public String getBuildingData(ProjectBuildingExcel item, String str) {
|
|
|
|
|
String a = null;
|
|
|
|
|
switch (str) {
|
|
|
|
|
case "层数":
|
|
|
|
|
a = item.getFloor() == null ? "-" : String.valueOf(item.getFloor());
|
|
|
|
|
break;
|
|
|
|
|
case "总建筑高度":
|
|
|
|
|
a = item.getTotalBuildingHeight() == null ? "-" : String.valueOf(item.getTotalBuildingHeight());
|
|
|
|
|
break;
|
|
|
|
|
case "首层高度":
|
|
|
|
|
a = String.valueOf(item.getScgd() == null ? "-" : item.getScgd());
|
|
|
|
|
break;
|
|
|
|
|
case "2至4层高":
|
|
|
|
|
a = String.valueOf(item.getTwoAndFourCg() == null ? "-" : item.getTwoAndFourCg());
|
|
|
|
|
break;
|
|
|
|
|
case "4层以上层高":
|
|
|
|
|
a = String.valueOf(item.getFourYscg() == null ? "-" : item.getFourYscg());
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return a;
|
|
|
|
|
}
|
|
|
|
|
// /**
|
|
|
|
|
// * 填充数据
|
|
|
|
|
// */
|
|
|
|
|
// @Override
|
|
|
|
|
// public void approvalMethodfillInData(XSSFSheet sheet, XSSFCellStyle contentStyle, int rowNum, List<ProjectExcelInfo> info, List<String> sc, List<String> ec, int num) {
|
|
|
|
|
// Class<?> classBuilding = ProjectBuildingExcel.class;
|
|
|
|
|
// for (ProjectExcelInfo projectExcelInfo : info) {
|
|
|
|
|
// XSSFRow tempRow = sheet.createRow(rowNum++);
|
|
|
|
|
// tempRow.setHeight((short) 1400);
|
|
|
|
|
// int i1;
|
|
|
|
|
// for (i1 = 0; i1 < sc.size(); i1++) {
|
|
|
|
|
// XSSFCell tempCell = tempRow.createCell(i1);
|
|
|
|
|
// tempCell.setCellStyle(contentStyle);
|
|
|
|
|
// if (!ec.get(i1).endsWith("厂房")) {
|
|
|
|
|
// if (Objects.equals(sc.get(i1), "")) {
|
|
|
|
|
// tempCell.setCellValue(projectExcelInfo.getId());
|
|
|
|
|
// } else {
|
|
|
|
|
// tempCell.setCellValue(getExcelData(projectExcelInfo, sc.get(i1)));
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//// XSSFCell tempCell = tempRow.createCell(8);
|
|
|
|
|
//// tempCell.setCellStyle(contentStyle);
|
|
|
|
|
//// tempCell.setCellValue("12312321");
|
|
|
|
|
//
|
|
|
|
|
// for (int i2 = 0; i2 < projectExcelInfo.getXmjzxx().size(); i2++) {
|
|
|
|
|
// switch (projectExcelInfo.getXmjzxx().get(i2).getFloor()) {
|
|
|
|
|
// case 1:
|
|
|
|
|
// i1 = ec.indexOf("一层厂房");
|
|
|
|
|
// break;
|
|
|
|
|
// case 2:
|
|
|
|
|
// i1 = ec.indexOf("双层厂房");
|
|
|
|
|
// break;
|
|
|
|
|
// case 3:
|
|
|
|
|
// i1 = ec.indexOf("三层厂房");
|
|
|
|
|
// break;
|
|
|
|
|
// case 4:
|
|
|
|
|
// i1 = ec.indexOf("四层厂房");
|
|
|
|
|
// break;
|
|
|
|
|
// case 5:
|
|
|
|
|
// i1 = ec.indexOf("五层厂房");
|
|
|
|
|
// break;
|
|
|
|
|
// default:
|
|
|
|
|
// i1 = ec.indexOf("六层及以上厂房");
|
|
|
|
|
// }
|
|
|
|
|
// for (Field field : classBuilding.getDeclaredFields()) {
|
|
|
|
|
// XSSFCell tempCell = tempRow.createCell(i1);
|
|
|
|
|
// tempCell.setCellStyle(contentStyle);
|
|
|
|
|
// Excel excelColumn = field.getAnnotation(Excel.class);
|
|
|
|
|
// if (excelColumn != null) {
|
|
|
|
|
// tempCell.setCellValue(getBuildingData(projectExcelInfo.getXmjzxx().get(i2), sc.get(i1)));
|
|
|
|
|
// i1++;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /**
|
|
|
|
|
// * 填充数据-项目基础信息获取
|
|
|
|
|
// */
|
|
|
|
|
// @Override
|
|
|
|
|
// public String getExcelData(ProjectExcelInfo item, String str) {
|
|
|
|
|
// String a = null;
|
|
|
|
|
// switch (str) {
|
|
|
|
|
// case "":
|
|
|
|
|
// a = item.getId() == null ? "-" : item.getId();
|
|
|
|
|
// break;
|
|
|
|
|
// case "项目名称":
|
|
|
|
|
// a = item.getName() == null ? "-" : item.getName();
|
|
|
|
|
// break;
|
|
|
|
|
// case "项目法人单位":
|
|
|
|
|
// a = item.getXmfrdwxz() == null ? "-" : item.getXmfrdwxz();
|
|
|
|
|
// break;
|
|
|
|
|
// case "项目法人单位性质":
|
|
|
|
|
// a = String.valueOf(item.getNature() == null ? "-" : item.getNature());
|
|
|
|
|
// break;
|
|
|
|
|
// case "总用地面积":
|
|
|
|
|
// a = String.valueOf(item.getZydmj() == null ? "-" : item.getZydmj());
|
|
|
|
|
// break;
|
|
|
|
|
// case "容积率":
|
|
|
|
|
// a = String.valueOf(item.getRjl() == null ? "-" : item.getRjl());
|
|
|
|
|
// break;
|
|
|
|
|
// case "总建筑面积":
|
|
|
|
|
// a = String.valueOf(item.getZjzmj() == null ? "-" : item.getZjzmj());
|
|
|
|
|
// break;
|
|
|
|
|
// case "标准层建筑面积":
|
|
|
|
|
// a = String.valueOf(item.getBzcjzmj() == null ? "-" : item.getBzcjzmj());
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// return a;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /**
|
|
|
|
|
// * 填充数据-项目建筑信息获取
|
|
|
|
|
// */
|
|
|
|
|
// @Override
|
|
|
|
|
// public String getBuildingData(ProjectBuildingExcel item, String str) {
|
|
|
|
|
// String a = null;
|
|
|
|
|
// switch (str) {
|
|
|
|
|
// case "层数":
|
|
|
|
|
// a = item.getFloor() == null ? "-" : String.valueOf(item.getFloor());
|
|
|
|
|
// break;
|
|
|
|
|
// case "总建筑高度":
|
|
|
|
|
// a = item.getTotalBuildingHeight() == null ? "-" : String.valueOf(item.getTotalBuildingHeight());
|
|
|
|
|
// break;
|
|
|
|
|
// case "首层高度":
|
|
|
|
|
// a = String.valueOf(item.getScgd() == null ? "-" : item.getScgd());
|
|
|
|
|
// break;
|
|
|
|
|
// case "2至4层高":
|
|
|
|
|
// a = String.valueOf(item.getTwoAndFourCg() == null ? "-" : item.getTwoAndFourCg());
|
|
|
|
|
// break;
|
|
|
|
|
// case "4层以上层高":
|
|
|
|
|
// a = String.valueOf(item.getFourYscg() == null ? "-" : item.getFourYscg());
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// return a;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 有经纬度的项目列表
|
|
|
|
@ -282,8 +282,7 @@ public class BasicInformationServiceImpl extends ServiceImpl<BasicInformationMap
|
|
|
|
|
*/
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
@Override
|
|
|
|
|
public Long audit(AuditRequest req, int status) {
|
|
|
|
|
req.getBasicInformation().setStatus(status);
|
|
|
|
|
public Long audit(AuditRequest req, int status,int oldStatus) {
|
|
|
|
|
//企业端提交审核直接修改,不需要挂起等待审批
|
|
|
|
|
//修改项目基本信息,和是否是负面清单
|
|
|
|
|
List<WysmxInformation> collect1 = req.getWysmxInformations().stream().filter(x ->
|
|
|
|
@ -303,7 +302,7 @@ public class BasicInformationServiceImpl extends ServiceImpl<BasicInformationMap
|
|
|
|
|
collect2.get(0).getZdinfor(),
|
|
|
|
|
collect3.get(0).getZdinfor()) ? 1 : 0);
|
|
|
|
|
}
|
|
|
|
|
updateById(req.getBasicInformation());
|
|
|
|
|
|
|
|
|
|
//修改项目规划信息
|
|
|
|
|
planInformationService.updateById(req.getPlanInformation());
|
|
|
|
|
//修改企业入驻信息
|
|
|
|
@ -316,15 +315,21 @@ public class BasicInformationServiceImpl extends ServiceImpl<BasicInformationMap
|
|
|
|
|
otherInfoService.saveBatch(req.getProjectOtherInfos());
|
|
|
|
|
|
|
|
|
|
if (status == 2) {
|
|
|
|
|
userService.getAllZwUser("关于" + req.getBasicInformation().getName() + "项目,待审核的通知", req.getBasicInformation().getId(), null, null);
|
|
|
|
|
if(oldStatus==1){
|
|
|
|
|
userService.getAllZwUser("关于" + req.getBasicInformation().getName() + "项目,待审核的通知", req.getBasicInformation().getId(), null, null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (status == 3) {
|
|
|
|
|
SmartDeclaration sd = new SmartDeclaration();
|
|
|
|
|
sd.setTyshxydm((req.getBasicInformation().getTyshxydm()));
|
|
|
|
|
sd.setProjectId(req.getBasicInformation().getId());
|
|
|
|
|
sd.setContent("关于" + req.getBasicInformation().getName() + "项目,审核通过的通知");
|
|
|
|
|
smartDeclarationService.save(sd);
|
|
|
|
|
if(oldStatus==2) {
|
|
|
|
|
SmartDeclaration sd = new SmartDeclaration();
|
|
|
|
|
sd.setTyshxydm((req.getBasicInformation().getTyshxydm()));
|
|
|
|
|
sd.setProjectId(req.getBasicInformation().getId());
|
|
|
|
|
sd.setContent("关于" + req.getBasicInformation().getName() + "项目,审核通过的通知");
|
|
|
|
|
smartDeclarationService.save(sd);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
req.getBasicInformation().setStatus(status);
|
|
|
|
|
updateById(req.getBasicInformation());
|
|
|
|
|
return req.getBasicInformation().getId();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|