|
|
|
@ -194,23 +194,39 @@ public class ContractInvestmentController {
|
|
|
|
|
List<ProBusinessInfoShareholder> list = projectDueDiligenceService.getBusinessInfoShareholderListByFlowId(flowId);
|
|
|
|
|
List<ProBusinessInfo> businessInfoList = projectDueDiligenceService.getBusinessInfoList(flowId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取乙方数据
|
|
|
|
|
FoundProjectExample foundProjectExample = new FoundProjectExample();
|
|
|
|
|
foundProjectExample.createCriteria().andFlowIdEqualTo(flowId);
|
|
|
|
|
List<FoundProject> foundProjects = foundProjectMapper.selectByExample(foundProjectExample);
|
|
|
|
|
|
|
|
|
|
//立项项目ID
|
|
|
|
|
String projectPoolId = foundProjects.get(0).getProjectPoolId();
|
|
|
|
|
|
|
|
|
|
ProjectPoolExample projectPoolExample = new ProjectPoolExample();
|
|
|
|
|
projectPoolExample.createCriteria().andProjectPoolIdEqualTo(projectPoolId);
|
|
|
|
|
List<ProjectPool> projectPools = projectPoolMapper.selectByExample(projectPoolExample);
|
|
|
|
|
|
|
|
|
|
InvestIntentionDetailedDto intentionDetailedDto = InvestIntentionDetailedDto.builder().
|
|
|
|
|
contactPersonB(list.get(0).getLegalPerson()).
|
|
|
|
|
addressB(businessInfoList.get(0).getRegisteredAddress())
|
|
|
|
|
addressB(businessInfoList.get(0).getRegisteredAddress()).companyB(projectPools.get(0).getCompanyName()+"有限公司")
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, intentionDetailedDto);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
@GetMapping("/sealA")
|
|
|
|
|
@ApiOperation("生成甲方公章")
|
|
|
|
|
@ApiOperation("投资意向书:生成甲方公章")
|
|
|
|
|
public ResponseEntity<byte[]> getSealImageA(@ApiParam("流程ID") @RequestParam String flowId) throws Exception {
|
|
|
|
|
String s = null;
|
|
|
|
|
|
|
|
|
|
//生成公章
|
|
|
|
|
s = sealUtil.genertSealA("天泽股权投资基金");
|
|
|
|
|
s = sealUtil.genertSealA("皖西学院基金管理有限公司");
|
|
|
|
|
// FileInputStream fileInputStream = new FileInputStream(filePath+"/seal/"+ s +".png");
|
|
|
|
|
//
|
|
|
|
|
// MultipartFile multipartFile = new MockMultipartFile(
|
|
|
|
@ -234,7 +250,7 @@ public class ContractInvestmentController {
|
|
|
|
|
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
@GetMapping("/sealB")
|
|
|
|
|
@ApiOperation("投资意向书乙方公章和投资协议甲方公章")
|
|
|
|
|
@ApiOperation("投资意向书乙方公章和投资协议甲方公章(同一个接口)")
|
|
|
|
|
public ResponseEntity<byte[]> getSealImage(@ApiParam("流程ID") @RequestParam String flowId) throws Exception {
|
|
|
|
|
String s = null;
|
|
|
|
|
//获取乙方数据
|
|
|
|
|