|
|
|
@ -12,6 +12,8 @@ import com.sztzjy.fund_investment.annotation.AnonymousAccess;
|
|
|
|
|
import com.sztzjy.fund_investment.entity.*;
|
|
|
|
|
import com.sztzjy.fund_investment.entity.treeSelect.TreeSelect;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.FoundProjectMapper;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.PerformanceScoreMapper;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.ProFinancialIndexDetailUserMapper;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.ProjectPoolMapper;
|
|
|
|
|
import com.sztzjy.fund_investment.service.ISysProjectDueDiligenceService;
|
|
|
|
|
import com.sztzjy.fund_investment.service.PerformanceScoreService;
|
|
|
|
@ -27,6 +29,7 @@ import org.apache.poi.ss.formula.functions.T;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
import java.io.BufferedInputStream;
|
|
|
|
@ -55,6 +58,10 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
private IFileUtil fileUtil;
|
|
|
|
|
@Autowired
|
|
|
|
|
PerformanceScoreService scoreService;
|
|
|
|
|
@Autowired
|
|
|
|
|
PerformanceScoreMapper performanceScoreMapper;
|
|
|
|
|
@Autowired
|
|
|
|
|
ProFinancialIndexDetailUserMapper proFinancialIndexDetailUserMapper;
|
|
|
|
|
|
|
|
|
|
//*************公司业务尽职调查
|
|
|
|
|
|
|
|
|
@ -191,7 +198,7 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
return new ResultEntity(HttpStatus.BAD_REQUEST, "业务尽调结论为空");
|
|
|
|
|
}
|
|
|
|
|
projectDueDiligenceService.updateServiceDueDiligence(foundProject);
|
|
|
|
|
scoreService.calculateScoreByModule("projectDueDiligenceBusinessReportScore",2,foundProject.getFlowId());
|
|
|
|
|
scoreService.calculateScoreByModule("projectDueDiligenceBusinessReportScore", 2, foundProject.getFlowId());
|
|
|
|
|
return new ResultEntity(HttpStatus.OK, "业务尽调结论保存成功");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -231,18 +238,37 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
@ApiOperation("财务指标查询")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public ResultEntity<PageInfo<ProFinancialIndexDetail>> selectProFinancialIndexDetailList(@ApiParam("节点id的集合List") @RequestBody List<String> proFinancialIndexIdList,
|
|
|
|
|
@ApiParam("流程ID") @RequestParam String flowId,
|
|
|
|
|
@ApiParam("条数") @RequestParam Integer size,
|
|
|
|
|
@ApiParam("页数") @RequestParam Integer index) {
|
|
|
|
|
@ApiParam("流程ID") @RequestParam String flowId,
|
|
|
|
|
@ApiParam("条数") @RequestParam Integer size,
|
|
|
|
|
@ApiParam("页数") @RequestParam Integer index) {
|
|
|
|
|
PageInfo<ProFinancialIndexDetail> pageInfo = projectDueDiligenceService.selectProFinancialIndexDetailList(proFinancialIndexIdList, flowId, size, index);
|
|
|
|
|
return new ResultEntity(HttpStatus.OK, "财务指标查询成功", pageInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("selectFinancialIndexDetailListHistory")
|
|
|
|
|
@ApiOperation("财务指标历史查询")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public ResultEntity<List<String>> selectFinancialIndexDetailListHistory(@ApiParam("流程ID") @RequestParam String flowId) {
|
|
|
|
|
List<String> ids=new ArrayList<>();
|
|
|
|
|
ProFinancialIndexDetailUserExample example = new ProFinancialIndexDetailUserExample();
|
|
|
|
|
ProFinancialIndexDetailUserExample.Criteria criteria = example.createCriteria();
|
|
|
|
|
criteria.andFlowIdEqualTo(flowId).andLastYearValueNotEqualTo("0");
|
|
|
|
|
List<ProFinancialIndexDetailUser> proFinancialIndexDetailUsers = proFinancialIndexDetailUserMapper.selectByExample(example);
|
|
|
|
|
if(proFinancialIndexDetailUsers.isEmpty()){
|
|
|
|
|
return new ResultEntity(HttpStatus.OK, "财务指标历史查询为空", ids);
|
|
|
|
|
}else {
|
|
|
|
|
for (int i = 0; i < proFinancialIndexDetailUsers.size(); i++) {
|
|
|
|
|
ids.add(proFinancialIndexDetailUsers.get(i).getFinancialIndexId());
|
|
|
|
|
}
|
|
|
|
|
return new ResultEntity(HttpStatus.OK, "财务指标历史查询成功", ids);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("insertProFinancialIndexDetailUserList")
|
|
|
|
|
@ApiOperation("财务指标保存")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public ResultEntity insertProFinancialIndexDetailUserList(@ApiParam("保存的对象") @RequestBody List<ProFinancialIndexDetail> proFinancialIndexDetailList,
|
|
|
|
|
@ApiParam("流程ID") @RequestParam String flowId) {
|
|
|
|
|
@ApiParam("流程ID") @RequestParam String flowId) {
|
|
|
|
|
ResultEntity resultEntity = projectDueDiligenceService.insertProFinancialIndexDetailUserList(proFinancialIndexDetailList, flowId);
|
|
|
|
|
return resultEntity;
|
|
|
|
|
}
|
|
|
|
@ -251,9 +277,9 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
@ApiOperation("财务报表查询")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public ResultEntity<PageInfo<ProFinancialStatementDetail>> selectProFinancialStatementDetailList(@ApiParam("节点id的集合List") @RequestBody List<String> proFinancialStatementIdList,
|
|
|
|
|
@ApiParam("流程ID") @RequestParam String flowId,
|
|
|
|
|
@ApiParam("条数") @RequestParam Integer size,
|
|
|
|
|
@ApiParam("页数") @RequestParam Integer index) {
|
|
|
|
|
@ApiParam("流程ID") @RequestParam String flowId,
|
|
|
|
|
@ApiParam("条数") @RequestParam Integer size,
|
|
|
|
|
@ApiParam("页数") @RequestParam Integer index) {
|
|
|
|
|
PageInfo<ProFinancialStatementDetail> pageInfo = projectDueDiligenceService.selectProFinancialStatementDetailList(proFinancialStatementIdList, flowId, size, index);
|
|
|
|
|
return new ResultEntity(HttpStatus.OK, "财务报表查询成功", pageInfo);
|
|
|
|
|
}
|
|
|
|
@ -262,8 +288,8 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
@ApiOperation("财务指标选取导出")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public void exportProFinancialIndexDetailList(@ApiParam("HttpServletResponse") HttpServletResponse response,
|
|
|
|
|
@ApiParam("节点id的集合List") @RequestParam List<String> proFinancialIndexIdList,
|
|
|
|
|
@ApiParam("流程ID") @RequestParam String flowId) {
|
|
|
|
|
@ApiParam("节点id的集合List") @RequestParam List<String> proFinancialIndexIdList,
|
|
|
|
|
@ApiParam("流程ID") @RequestParam String flowId) {
|
|
|
|
|
//导出的表名
|
|
|
|
|
String title = IdUtil.simpleUUID();
|
|
|
|
|
//表中第一行表头字段
|
|
|
|
@ -320,7 +346,10 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
return new ResultEntity(HttpStatus.BAD_REQUEST, "财务尽调结论为空");
|
|
|
|
|
}
|
|
|
|
|
projectDueDiligenceService.updateServiceDueDiligence(foundProject);
|
|
|
|
|
scoreService.calculateScoreByModule("projectDueDiligenceFinanceReportScore",2,foundProject.getFlowId());
|
|
|
|
|
scoreService.calculateScoreByModule("projectDueDiligenceFinanceReportScore", 2, foundProject.getFlowId());
|
|
|
|
|
PerformanceScore performanceScore = scoreService.getByFlowId(foundProject.getFlowId());
|
|
|
|
|
performanceScore.setProjectDueDiligenceTime(new Date());
|
|
|
|
|
performanceScoreMapper.updateByPrimaryKey(performanceScore);
|
|
|
|
|
return new ResultEntity(HttpStatus.OK, "财务尽调结论保存成功");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -341,8 +370,8 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
@ApiOperation("财务尽调生成报告")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public void exportFinanceDueDiligencePDF(HttpServletResponse response,
|
|
|
|
|
@ApiParam("流程ID") @RequestParam String flowId) throws IOException, DocumentException {
|
|
|
|
|
String projectPoolName=getProjectPoolNameByFlowId(flowId); //公司名称
|
|
|
|
|
@ApiParam("流程ID") @RequestParam String flowId) throws IOException, DocumentException {
|
|
|
|
|
String projectPoolName = getProjectPoolNameByFlowId(flowId); //公司名称
|
|
|
|
|
|
|
|
|
|
Document document = new Document();
|
|
|
|
|
// 创建 PdfWriter 对象 第一个参数是对文档对象的引用,第二个参数是文件的实际名称,在该名称中还会给出其输出路径。
|
|
|
|
@ -351,12 +380,12 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
PdfWriter writer = PdfWriter.getInstance(document, response.getOutputStream());
|
|
|
|
|
writer.setPageEvent(new HeaderAndFooterEvent());
|
|
|
|
|
document.open();
|
|
|
|
|
HeaderAndFooterEvent.tpl=writer.getDirectContent().createTemplate(500,500);
|
|
|
|
|
HeaderAndFooterEvent.tpl = writer.getDirectContent().createTemplate(500, 500);
|
|
|
|
|
HeaderAndFooterEvent.PAGE_NUMBER = true;//实现页眉跟页脚
|
|
|
|
|
HeaderAndFooterEvent.HeaderLeft = "";//左上角
|
|
|
|
|
HeaderAndFooterEvent.HeaderRight = "";//右上角
|
|
|
|
|
HeaderAndFooterEvent.FooterLeft = "";//左下角
|
|
|
|
|
HeaderAndFooterEvent.FooterRight= "深圳市天择教育科技有限公司";//右下角
|
|
|
|
|
HeaderAndFooterEvent.FooterRight = "深圳市天择教育科技有限公司";//右下角
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "宋体", 25, Font.BOLD);
|
|
|
|
|
//添加一个空段落来占位,五个参数分别为:内容,对齐方式(1为居中,0为居左,2为居右),段后空行数,段前空行数,行间距
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph(" ", 1, 200, 0, 1.5f));
|
|
|
|
@ -431,28 +460,28 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("工商信息:", 0, 1.5f));//工商信息
|
|
|
|
|
ProBusinessInfoShareholder proBusinessInfoShareholder = projectDueDiligenceService.getBusinessInfoShareholderListByFlowId(flowId).get(0);
|
|
|
|
|
ProBusinessInfo proBusinessInfo = projectDueDiligenceService.getBusinessInfoList(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap=new TreeMap<>();
|
|
|
|
|
treeMap.put("企业名称",projectPoolName);
|
|
|
|
|
treeMap.put("法定代表人",proBusinessInfoShareholder.getLegalPerson());
|
|
|
|
|
treeMap.put("股东",proBusinessInfoShareholder.getShareholder1());
|
|
|
|
|
treeMap.put("持股比例",proBusinessInfoShareholder.getValue1());
|
|
|
|
|
treeMap.put("注册资本",proBusinessInfo.getRegisteredCapital());
|
|
|
|
|
treeMap.put("经营状态",proBusinessInfo.getOperatingState());
|
|
|
|
|
treeMap.put("统一社会信用代码",proBusinessInfo.getCreditCode());
|
|
|
|
|
treeMap.put("纳税人识别号",proBusinessInfo.getIdentificationNumber());
|
|
|
|
|
treeMap.put("营业期限",proBusinessInfo.getBusinessTerm());
|
|
|
|
|
treeMap.put("实缴资本",proBusinessInfo.getPaidinCapital());
|
|
|
|
|
treeMap.put("参保人数",proBusinessInfo.getInsuranceNum());
|
|
|
|
|
treeMap.put("成立日期",proBusinessInfo.getCreateDate());
|
|
|
|
|
treeMap.put("工商注册号",proBusinessInfo.getRegistrationNum());
|
|
|
|
|
treeMap.put("组织机构代码",proBusinessInfo.getOrgaStruCode());
|
|
|
|
|
treeMap.put("公司类型",proBusinessInfo.getCompanyType());
|
|
|
|
|
treeMap.put("行业",proBusinessInfo.getIndustry());
|
|
|
|
|
treeMap.put("核准日期",proBusinessInfo.getApprovalDate());
|
|
|
|
|
treeMap.put("人员规模",proBusinessInfo.getStaffSize());
|
|
|
|
|
treeMap.put("登记机关",proBusinessInfo.getRegistrar());
|
|
|
|
|
treeMap.put("注册地址",proBusinessInfo.getRegisteredAddress());
|
|
|
|
|
treeMap.put("经营范围",proBusinessInfo.getBusinessScope());
|
|
|
|
|
TreeMap<String, String> treeMap = new TreeMap<>();
|
|
|
|
|
treeMap.put("企业名称", projectPoolName);
|
|
|
|
|
treeMap.put("法定代表人", proBusinessInfoShareholder.getLegalPerson());
|
|
|
|
|
treeMap.put("股东", proBusinessInfoShareholder.getShareholder1());
|
|
|
|
|
treeMap.put("持股比例", proBusinessInfoShareholder.getValue1());
|
|
|
|
|
treeMap.put("注册资本", proBusinessInfo.getRegisteredCapital());
|
|
|
|
|
treeMap.put("经营状态", proBusinessInfo.getOperatingState());
|
|
|
|
|
treeMap.put("统一社会信用代码", proBusinessInfo.getCreditCode());
|
|
|
|
|
treeMap.put("纳税人识别号", proBusinessInfo.getIdentificationNumber());
|
|
|
|
|
treeMap.put("营业期限", proBusinessInfo.getBusinessTerm());
|
|
|
|
|
treeMap.put("实缴资本", proBusinessInfo.getPaidinCapital());
|
|
|
|
|
treeMap.put("参保人数", proBusinessInfo.getInsuranceNum());
|
|
|
|
|
treeMap.put("成立日期", proBusinessInfo.getCreateDate());
|
|
|
|
|
treeMap.put("工商注册号", proBusinessInfo.getRegistrationNum());
|
|
|
|
|
treeMap.put("组织机构代码", proBusinessInfo.getOrgaStruCode());
|
|
|
|
|
treeMap.put("公司类型", proBusinessInfo.getCompanyType());
|
|
|
|
|
treeMap.put("行业", proBusinessInfo.getIndustry());
|
|
|
|
|
treeMap.put("核准日期", proBusinessInfo.getApprovalDate());
|
|
|
|
|
treeMap.put("人员规模", proBusinessInfo.getStaffSize());
|
|
|
|
|
treeMap.put("登记机关", proBusinessInfo.getRegistrar());
|
|
|
|
|
treeMap.put("注册地址", proBusinessInfo.getRegisteredAddress());
|
|
|
|
|
treeMap.put("经营范围", proBusinessInfo.getBusinessScope());
|
|
|
|
|
PdfPTable table = returnPdfPTable(treeMap);
|
|
|
|
|
document.add(table);
|
|
|
|
|
|
|
|
|
@ -463,12 +492,12 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("司法风险:", 0, 1.5f));
|
|
|
|
|
ProJudicialRisk proJudicialRisk = projectDueDiligenceService.getProJudicialRiskListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap2=new TreeMap<>();
|
|
|
|
|
treeMap2.put("开庭日期",proJudicialRisk.getLawfulDay());
|
|
|
|
|
treeMap2.put("案号",proJudicialRisk.getCaseCode());
|
|
|
|
|
treeMap2.put("案由",proJudicialRisk.getCause());
|
|
|
|
|
treeMap2.put("公诉人/原告",proJudicialRisk.getPlaintiff());
|
|
|
|
|
treeMap2.put("被告人",proJudicialRisk.getDefendant());
|
|
|
|
|
TreeMap<String, String> treeMap2 = new TreeMap<>();
|
|
|
|
|
treeMap2.put("开庭日期", proJudicialRisk.getLawfulDay());
|
|
|
|
|
treeMap2.put("案号", proJudicialRisk.getCaseCode());
|
|
|
|
|
treeMap2.put("案由", proJudicialRisk.getCause());
|
|
|
|
|
treeMap2.put("公诉人/原告", proJudicialRisk.getPlaintiff());
|
|
|
|
|
treeMap2.put("被告人", proJudicialRisk.getDefendant());
|
|
|
|
|
PdfPTable table2 = returnPdfPTable(treeMap2);
|
|
|
|
|
document.add(table2);
|
|
|
|
|
|
|
|
|
@ -479,13 +508,13 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("经营风险:", 0, 1.5f));
|
|
|
|
|
ProBusinessRisk proBusinessRisk = projectDueDiligenceService.getProBusinessRiskListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap3=new TreeMap<>();
|
|
|
|
|
treeMap3.put("列入日期 ",proBusinessRisk.getIncludedDate());
|
|
|
|
|
treeMap3.put("列入经营异常名录原因",proBusinessRisk.getIncludedCause());
|
|
|
|
|
treeMap3.put("列入机关 ",proBusinessRisk.getIncludedOrganization());
|
|
|
|
|
treeMap3.put("移出日期",proBusinessRisk.getRemovedDate());
|
|
|
|
|
treeMap3.put("移出经营异常名录原因",proBusinessRisk.getRemovedCause());
|
|
|
|
|
treeMap3.put("移出决定机关 ",proBusinessRisk.getRemovedOrganization());
|
|
|
|
|
TreeMap<String, String> treeMap3 = new TreeMap<>();
|
|
|
|
|
treeMap3.put("列入日期 ", proBusinessRisk.getIncludedDate());
|
|
|
|
|
treeMap3.put("列入经营异常名录原因", proBusinessRisk.getIncludedCause());
|
|
|
|
|
treeMap3.put("列入机关 ", proBusinessRisk.getIncludedOrganization());
|
|
|
|
|
treeMap3.put("移出日期", proBusinessRisk.getRemovedDate());
|
|
|
|
|
treeMap3.put("移出经营异常名录原因", proBusinessRisk.getRemovedCause());
|
|
|
|
|
treeMap3.put("移出决定机关 ", proBusinessRisk.getRemovedOrganization());
|
|
|
|
|
PdfPTable table3 = returnPdfPTable(treeMap3);
|
|
|
|
|
document.add(table3);
|
|
|
|
|
|
|
|
|
@ -496,39 +525,38 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("核心团队:", 0, 1.5f));
|
|
|
|
|
ProCoreTeam proCoreTeam = projectDueDiligenceService.getProCoreTeamListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap4=new TreeMap<>();
|
|
|
|
|
treeMap4.put("姓名",proCoreTeam.getName());
|
|
|
|
|
treeMap4.put("职位",proCoreTeam.getDuty());
|
|
|
|
|
treeMap4.put("简介",proCoreTeam.getIntroduction());
|
|
|
|
|
TreeMap<String, String> treeMap4 = new TreeMap<>();
|
|
|
|
|
treeMap4.put("姓名", proCoreTeam.getName());
|
|
|
|
|
treeMap4.put("职位", proCoreTeam.getDuty());
|
|
|
|
|
treeMap4.put("简介", proCoreTeam.getIntroduction());
|
|
|
|
|
PdfPTable table4 = returnPdfPTable(treeMap4);
|
|
|
|
|
document.add(table4);
|
|
|
|
|
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("核心业务:", 0, 1.5f));
|
|
|
|
|
ProCoreBusiness proCoreBusiness = projectDueDiligenceService.getProCoreBusinessListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap42=new TreeMap<>();
|
|
|
|
|
treeMap42.put("产品名称",proCoreBusiness.getProductnameName());
|
|
|
|
|
treeMap42.put("行业",proCoreBusiness.getIndustry());
|
|
|
|
|
treeMap42.put("产品介绍",proCoreBusiness.getProductIntroduction());
|
|
|
|
|
TreeMap<String, String> treeMap42 = new TreeMap<>();
|
|
|
|
|
treeMap42.put("产品名称", proCoreBusiness.getProductnameName());
|
|
|
|
|
treeMap42.put("行业", proCoreBusiness.getIndustry());
|
|
|
|
|
treeMap42.put("产品介绍", proCoreBusiness.getProductIntroduction());
|
|
|
|
|
PdfPTable table42 = returnPdfPTable(treeMap42);
|
|
|
|
|
document.add(table42);
|
|
|
|
|
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("相关竞品:", 0, 1.5f));
|
|
|
|
|
ProCoreCompPro proCoreCompPro = projectDueDiligenceService.getProCoreCompProListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap43=new TreeMap<>();
|
|
|
|
|
treeMap43.put("竞品名称",proCoreCompPro.getCompProName());
|
|
|
|
|
treeMap43.put("地区",proCoreCompPro.getIndustry());
|
|
|
|
|
treeMap43.put("当前融资轮次",proCoreCompPro.getArea());
|
|
|
|
|
treeMap43.put("行业",proCoreCompPro.getIndustry());
|
|
|
|
|
treeMap43.put("业务",proCoreCompPro.getBusiness());
|
|
|
|
|
treeMap43.put("成立时间",proCoreCompPro.getCreateDate());
|
|
|
|
|
treeMap43.put("估值",proCoreCompPro.getValuation());
|
|
|
|
|
TreeMap<String, String> treeMap43 = new TreeMap<>();
|
|
|
|
|
treeMap43.put("竞品名称", proCoreCompPro.getCompProName());
|
|
|
|
|
treeMap43.put("地区", proCoreCompPro.getIndustry());
|
|
|
|
|
treeMap43.put("当前融资轮次", proCoreCompPro.getArea());
|
|
|
|
|
treeMap43.put("行业", proCoreCompPro.getIndustry());
|
|
|
|
|
treeMap43.put("业务", proCoreCompPro.getBusiness());
|
|
|
|
|
treeMap43.put("成立时间", proCoreCompPro.getCreateDate());
|
|
|
|
|
treeMap43.put("估值", proCoreCompPro.getValuation());
|
|
|
|
|
PdfPTable table43 = returnPdfPTable(treeMap43);
|
|
|
|
|
document.add(table43);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 16, Font.BOLD);
|
|
|
|
|
Paragraph p15 = HeaderAndFooterEvent.AddParagraph("五、经营状况", 0, 1.5f);
|
|
|
|
|
document.add(p15);
|
|
|
|
@ -536,44 +564,44 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("公司招聘:", 0, 1.5f));
|
|
|
|
|
ProManaSituRecruit proManaSituRecruit = projectDueDiligenceService.getProManaSituRecruitListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap51=new TreeMap<>();
|
|
|
|
|
treeMap51.put("发布日期",proManaSituRecruit.getReleaseDate());
|
|
|
|
|
treeMap51.put("招聘职位",proManaSituRecruit.getDuty());
|
|
|
|
|
treeMap51.put("月薪",proManaSituRecruit.getSalary());
|
|
|
|
|
treeMap51.put("学历",proManaSituRecruit.getDegrees());
|
|
|
|
|
treeMap51.put("工作经验",proManaSituRecruit.getExperience());
|
|
|
|
|
treeMap51.put("地区",proManaSituRecruit.getArea());
|
|
|
|
|
TreeMap<String, String> treeMap51 = new TreeMap<>();
|
|
|
|
|
treeMap51.put("发布日期", proManaSituRecruit.getReleaseDate());
|
|
|
|
|
treeMap51.put("招聘职位", proManaSituRecruit.getDuty());
|
|
|
|
|
treeMap51.put("月薪", proManaSituRecruit.getSalary());
|
|
|
|
|
treeMap51.put("学历", proManaSituRecruit.getDegrees());
|
|
|
|
|
treeMap51.put("工作经验", proManaSituRecruit.getExperience());
|
|
|
|
|
treeMap51.put("地区", proManaSituRecruit.getArea());
|
|
|
|
|
PdfPTable table51 = returnPdfPTable(treeMap51);
|
|
|
|
|
document.add(table51);
|
|
|
|
|
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("抽查检查:", 0, 1.5f));
|
|
|
|
|
ProManaSituCheck proManaSituCheck = projectDueDiligenceService.getProManaSituCheckListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap52=new TreeMap<>();
|
|
|
|
|
treeMap52.put("日期",proManaSituCheck.getCheckDate());
|
|
|
|
|
treeMap52.put("类型",proManaSituCheck.getCheckType());
|
|
|
|
|
treeMap52.put("结果",proManaSituCheck.getConsequence());
|
|
|
|
|
treeMap52.put("检查实施机关",proManaSituCheck.getOrganization());
|
|
|
|
|
TreeMap<String, String> treeMap52 = new TreeMap<>();
|
|
|
|
|
treeMap52.put("日期", proManaSituCheck.getCheckDate());
|
|
|
|
|
treeMap52.put("类型", proManaSituCheck.getCheckType());
|
|
|
|
|
treeMap52.put("结果", proManaSituCheck.getConsequence());
|
|
|
|
|
treeMap52.put("检查实施机关", proManaSituCheck.getOrganization());
|
|
|
|
|
PdfPTable table52 = returnPdfPTable(treeMap52);
|
|
|
|
|
document.add(table52);
|
|
|
|
|
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("行政许可:", 0, 1.5f));
|
|
|
|
|
ProManaSituLicense proManaSituLicense = projectDueDiligenceService.getProManaSituLicenseListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap53=new TreeMap<>();
|
|
|
|
|
treeMap53.put("行政许可文书号",proManaSituLicense.getWrittenDecisionNum());
|
|
|
|
|
treeMap53.put("许可决定机关",proManaSituLicense.getOrganization());
|
|
|
|
|
treeMap53.put("许可决定日期",proManaSituLicense.getLicenseDate());
|
|
|
|
|
TreeMap<String, String> treeMap53 = new TreeMap<>();
|
|
|
|
|
treeMap53.put("行政许可文书号", proManaSituLicense.getWrittenDecisionNum());
|
|
|
|
|
treeMap53.put("许可决定机关", proManaSituLicense.getOrganization());
|
|
|
|
|
treeMap53.put("许可决定日期", proManaSituLicense.getLicenseDate());
|
|
|
|
|
PdfPTable table53 = returnPdfPTable(treeMap53);
|
|
|
|
|
document.add(table53);
|
|
|
|
|
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("招投标:", 0, 1.5f));
|
|
|
|
|
ProManaSituTenderingBidding proManaSituTenderingBidding = projectDueDiligenceService.getProManaSituTenderingBiddingListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap54=new TreeMap<>();
|
|
|
|
|
treeMap54.put("发布日期",proManaSituTenderingBidding.getReleaseDate());
|
|
|
|
|
treeMap54.put("标题",proManaSituTenderingBidding.getTitle());
|
|
|
|
|
treeMap54.put("采购人",proManaSituTenderingBidding.getPurchaser());
|
|
|
|
|
TreeMap<String, String> treeMap54 = new TreeMap<>();
|
|
|
|
|
treeMap54.put("发布日期", proManaSituTenderingBidding.getReleaseDate());
|
|
|
|
|
treeMap54.put("标题", proManaSituTenderingBidding.getTitle());
|
|
|
|
|
treeMap54.put("采购人", proManaSituTenderingBidding.getPurchaser());
|
|
|
|
|
PdfPTable table54 = returnPdfPTable(treeMap54);
|
|
|
|
|
document.add(table54);
|
|
|
|
|
|
|
|
|
@ -584,23 +612,23 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("专利信息:", 0, 1.5f));
|
|
|
|
|
ProIntelPropertyPatentinfo proIntelPropertyPatentinfo = projectDueDiligenceService.getProIntelPropertyPatentInfoListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap61=new TreeMap<>();
|
|
|
|
|
treeMap61.put("申请公布日",proIntelPropertyPatentinfo.getPublishDate());
|
|
|
|
|
treeMap61.put("专利名称",proIntelPropertyPatentinfo.getPatentName());
|
|
|
|
|
treeMap61.put("申请号",proIntelPropertyPatentinfo.getApplicationNum());
|
|
|
|
|
treeMap61.put("申请公布号",proIntelPropertyPatentinfo.getApplicationPubNum());
|
|
|
|
|
treeMap61.put("专利类型",proIntelPropertyPatentinfo.getPatentType());
|
|
|
|
|
TreeMap<String, String> treeMap61 = new TreeMap<>();
|
|
|
|
|
treeMap61.put("申请公布日", proIntelPropertyPatentinfo.getPublishDate());
|
|
|
|
|
treeMap61.put("专利名称", proIntelPropertyPatentinfo.getPatentName());
|
|
|
|
|
treeMap61.put("申请号", proIntelPropertyPatentinfo.getApplicationNum());
|
|
|
|
|
treeMap61.put("申请公布号", proIntelPropertyPatentinfo.getApplicationPubNum());
|
|
|
|
|
treeMap61.put("专利类型", proIntelPropertyPatentinfo.getPatentType());
|
|
|
|
|
PdfPTable table61 = returnPdfPTable(treeMap61);
|
|
|
|
|
document.add(table61);
|
|
|
|
|
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("网站备案:", 0, 1.5f));
|
|
|
|
|
ProIntelPropertyWebsiteRecord proIntelPropertyWebsiteRecord = projectDueDiligenceService.getProIntelPropertyWebsiteRecordListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap62=new TreeMap<>();
|
|
|
|
|
treeMap62.put("审核日期",proIntelPropertyWebsiteRecord.getReviewDate());
|
|
|
|
|
treeMap62.put("网站名称",proIntelPropertyWebsiteRecord.getWebsiteName());
|
|
|
|
|
treeMap62.put("IP地址",proIntelPropertyWebsiteRecord.getIpAddress());
|
|
|
|
|
treeMap62.put("域名信息",proIntelPropertyWebsiteRecord.getDomainNameInfo());
|
|
|
|
|
TreeMap<String, String> treeMap62 = new TreeMap<>();
|
|
|
|
|
treeMap62.put("审核日期", proIntelPropertyWebsiteRecord.getReviewDate());
|
|
|
|
|
treeMap62.put("网站名称", proIntelPropertyWebsiteRecord.getWebsiteName());
|
|
|
|
|
treeMap62.put("IP地址", proIntelPropertyWebsiteRecord.getIpAddress());
|
|
|
|
|
treeMap62.put("域名信息", proIntelPropertyWebsiteRecord.getDomainNameInfo());
|
|
|
|
|
PdfPTable table62 = returnPdfPTable(treeMap62);
|
|
|
|
|
document.add(table62);
|
|
|
|
|
|
|
|
|
@ -611,13 +639,13 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 14, Font.BOLD);
|
|
|
|
|
document.add(HeaderAndFooterEvent.AddParagraph("行政处罚:", 0, 1.5f));
|
|
|
|
|
ProAdminiPenalty proAdminiPenalty = projectDueDiligenceService.getProAdminiPenaltyListByFlowId(flowId).get(0);
|
|
|
|
|
TreeMap<String,String> treeMap7=new TreeMap<>();
|
|
|
|
|
treeMap7.put("公司名称",projectPoolName);
|
|
|
|
|
treeMap7.put("决定日期",proAdminiPenalty.getDecisionDate());
|
|
|
|
|
treeMap7.put("决定书文号",proAdminiPenalty.getWrittenDecisionNum());
|
|
|
|
|
treeMap7.put("处罚事由",proAdminiPenalty.getPunishmentCause());
|
|
|
|
|
treeMap7.put("处罚结果",proAdminiPenalty.getPunishmentResult());
|
|
|
|
|
treeMap7.put("处罚机关",proAdminiPenalty.getPunishmentOrganization());
|
|
|
|
|
TreeMap<String, String> treeMap7 = new TreeMap<>();
|
|
|
|
|
treeMap7.put("公司名称", projectPoolName);
|
|
|
|
|
treeMap7.put("决定日期", proAdminiPenalty.getDecisionDate());
|
|
|
|
|
treeMap7.put("决定书文号", proAdminiPenalty.getWrittenDecisionNum());
|
|
|
|
|
treeMap7.put("处罚事由", proAdminiPenalty.getPunishmentCause());
|
|
|
|
|
treeMap7.put("处罚结果", proAdminiPenalty.getPunishmentResult());
|
|
|
|
|
treeMap7.put("处罚机关", proAdminiPenalty.getPunishmentOrganization());
|
|
|
|
|
PdfPTable table7 = returnPdfPTable(treeMap7);
|
|
|
|
|
document.add(table7);
|
|
|
|
|
|
|
|
|
@ -636,7 +664,7 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
|
|
|
|
|
PdfPTable table8 = new PdfPTable(4);
|
|
|
|
|
table8.setWidthPercentage(100);//设置表格宽度占用百分比
|
|
|
|
|
List<String> headList1=new ArrayList<>();
|
|
|
|
|
List<String> headList1 = new ArrayList<>();
|
|
|
|
|
headList1.add("项目");
|
|
|
|
|
headList1.add("2022-12-31");
|
|
|
|
|
headList1.add("2021-12-31");
|
|
|
|
@ -644,12 +672,12 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
PdfPTable table8return = setPdfPTableHead(table8, headList1);
|
|
|
|
|
for (int i = 0; i < financialIndexDetailList.size(); i++) {
|
|
|
|
|
ProFinancialIndexDetail proFinancialIndexDetail = financialIndexDetailList.get(i);
|
|
|
|
|
List<String> headList2=new ArrayList<>();
|
|
|
|
|
List<String> headList2 = new ArrayList<>();
|
|
|
|
|
headList2.add(proFinancialIndexDetail.getName());
|
|
|
|
|
headList2.add(proFinancialIndexDetail.getLastYearValue());
|
|
|
|
|
headList2.add(proFinancialIndexDetail.getLastTowYearValue());
|
|
|
|
|
headList2.add(proFinancialIndexDetail.getLastThreeYearValue());
|
|
|
|
|
table8return=setPdfPTableHead(table8return, headList2);
|
|
|
|
|
table8return = setPdfPTableHead(table8return, headList2);
|
|
|
|
|
}
|
|
|
|
|
document.add(table8return);
|
|
|
|
|
|
|
|
|
@ -673,12 +701,12 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
PdfPTable table82return = setPdfPTableHead(table82, headList1);
|
|
|
|
|
for (int i = 0; i < financialStatementDetailList.size(); i++) {
|
|
|
|
|
ProFinancialStatementDetail proFinancialStatementDetail = financialStatementDetailList.get(i);
|
|
|
|
|
List<String> headList82=new ArrayList<>();
|
|
|
|
|
List<String> headList82 = new ArrayList<>();
|
|
|
|
|
headList82.add(proFinancialStatementDetail.getName());
|
|
|
|
|
headList82.add(proFinancialStatementDetail.getLastYearValue());
|
|
|
|
|
headList82.add(proFinancialStatementDetail.getLastTowYearValue());
|
|
|
|
|
headList82.add(proFinancialStatementDetail.getLastThreeYearValue());
|
|
|
|
|
table82return=setPdfPTableHead(table82return, headList82);
|
|
|
|
|
table82return = setPdfPTableHead(table82return, headList82);
|
|
|
|
|
}
|
|
|
|
|
document.add(table82return);
|
|
|
|
|
|
|
|
|
@ -704,12 +732,12 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
PdfPTable table83return = setPdfPTableHead(table83, headList1);
|
|
|
|
|
for (int i = 0; i < financialStatementDetailList83.size(); i++) {
|
|
|
|
|
ProFinancialStatementDetail proFinancialStatementDetail = financialStatementDetailList83.get(i);
|
|
|
|
|
List<String> headList83=new ArrayList<>();
|
|
|
|
|
List<String> headList83 = new ArrayList<>();
|
|
|
|
|
headList83.add(proFinancialStatementDetail.getName());
|
|
|
|
|
headList83.add(proFinancialStatementDetail.getLastYearValue());
|
|
|
|
|
headList83.add(proFinancialStatementDetail.getLastTowYearValue());
|
|
|
|
|
headList83.add(proFinancialStatementDetail.getLastThreeYearValue());
|
|
|
|
|
table83return=setPdfPTableHead(table83return, headList83);
|
|
|
|
|
table83return = setPdfPTableHead(table83return, headList83);
|
|
|
|
|
}
|
|
|
|
|
document.add(table83return);
|
|
|
|
|
|
|
|
|
@ -735,20 +763,20 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
PdfPTable table84return = setPdfPTableHead(table84, headList1);
|
|
|
|
|
for (int i = 0; i < financialStatementDetailList84.size(); i++) {
|
|
|
|
|
ProFinancialStatementDetail proFinancialStatementDetail = financialStatementDetailList84.get(i);
|
|
|
|
|
List<String> headList84=new ArrayList<>();
|
|
|
|
|
List<String> headList84 = new ArrayList<>();
|
|
|
|
|
headList84.add(proFinancialStatementDetail.getName());
|
|
|
|
|
headList84.add(proFinancialStatementDetail.getLastYearValue());
|
|
|
|
|
headList84.add(proFinancialStatementDetail.getLastTowYearValue());
|
|
|
|
|
headList84.add(proFinancialStatementDetail.getLastThreeYearValue());
|
|
|
|
|
table84return=setPdfPTableHead(table84return, headList84);
|
|
|
|
|
table84return = setPdfPTableHead(table84return, headList84);
|
|
|
|
|
}
|
|
|
|
|
document.add(table84return);
|
|
|
|
|
|
|
|
|
|
document.close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public PdfPTable returnPdfPTable(TreeMap<String,String> treeMap){
|
|
|
|
|
PdfPTable table =new PdfPTable(2); //两列
|
|
|
|
|
public PdfPTable returnPdfPTable(TreeMap<String, String> treeMap) {
|
|
|
|
|
PdfPTable table = new PdfPTable(2); //两列
|
|
|
|
|
table.setWidthPercentage(100);//设置表格宽度占用百分比
|
|
|
|
|
for (Map.Entry<String, String> entry : treeMap.entrySet()) {
|
|
|
|
|
String key = entry.getKey();
|
|
|
|
@ -767,7 +795,7 @@ public class ProjectDueDiligenceController {
|
|
|
|
|
return table;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public PdfPTable setPdfPTableHead(PdfPTable table,List<String> list){
|
|
|
|
|
public PdfPTable setPdfPTableHead(PdfPTable table, List<String> list) {
|
|
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
|
|
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 12, Font.NORMAL);
|
|
|
|
|
PdfPCell cell_data1 = new PdfPCell(HeaderAndFooterEvent.AddParagraph(list.get(i), 0, 1.5f));
|
|
|
|
|