|
|
@ -127,28 +127,53 @@ public class ContractInvestmentController {
|
|
|
|
@GetMapping("/getInvestIntentionDetailedInfo")
|
|
|
|
@GetMapping("/getInvestIntentionDetailedInfo")
|
|
|
|
@ApiOperation("投资意向书甲乙双方详细信息")
|
|
|
|
@ApiOperation("投资意向书甲乙双方详细信息")
|
|
|
|
public ResultEntity<InvestIntentionDetailedDto> getInvestIntentionDetailedInfo(@ApiParam("流程ID") @RequestParam String flowId) {
|
|
|
|
public ResultEntity<InvestIntentionDetailedDto> getInvestIntentionDetailedInfo(@ApiParam("流程ID") @RequestParam String flowId) {
|
|
|
|
//获取乙方数据
|
|
|
|
//获取乙方法定代表
|
|
|
|
|
|
|
|
|
|
|
|
List<ProBusinessInfoShareholder> list = projectDueDiligenceService.getBusinessInfoShareholderListByFlowId(flowId);
|
|
|
|
List<ProBusinessInfoShareholder> list = projectDueDiligenceService.getBusinessInfoShareholderListByFlowId(flowId);
|
|
|
|
|
|
|
|
List<ProBusinessInfo> businessInfoList = projectDueDiligenceService.getBusinessInfoList(flowId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InvestIntentionDetailedDto intentionDetailedDto = InvestIntentionDetailedDto.builder().
|
|
|
|
|
|
|
|
contactPersonB(list.get(0).getLegalPerson()).
|
|
|
|
|
|
|
|
addressB(businessInfoList.get(0).getRegisteredAddress())
|
|
|
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
|
|
|
|
// InvestIntentionDetailedDto intentionDetailedDto = InvestIntentionDetailedDto.builder().
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, intentionDetailedDto);
|
|
|
|
// contactPersonB(list.get(0).getLegalPerson()).
|
|
|
|
|
|
|
|
// addressB()
|
|
|
|
|
|
|
|
// .build();
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// return new ResultEntity<>(HttpStatus.OK, intentionDetailedDto);
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
|
|
|
@GetMapping("/sealA")
|
|
|
|
|
|
|
|
@ApiOperation("生成甲方公章")
|
|
|
|
|
|
|
|
public ResponseEntity<byte[]> getSealImageA(@ApiParam("流程ID") @RequestParam String flowId) throws Exception {
|
|
|
|
|
|
|
|
String s = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//生成公章
|
|
|
|
|
|
|
|
s = sealUtil.genertSealA("天泽股权投资基金");
|
|
|
|
|
|
|
|
// FileInputStream fileInputStream = new FileInputStream(filePath+"/seal/"+ s +".png");
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// MultipartFile multipartFile = new MockMultipartFile(
|
|
|
|
|
|
|
|
// "example.png", // 文件名
|
|
|
|
|
|
|
|
// s + ".png", // 原始文件名
|
|
|
|
|
|
|
|
// "png", // 文件类型
|
|
|
|
|
|
|
|
// fileInputStream
|
|
|
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
// String upload = fileUtil.upload(multipartFile);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 模拟加载公章图片的数据(假设在硬盘上的某个路径下)
|
|
|
|
|
|
|
|
String imagePath = filePath + "/seal/" + s + ".png"; // 替换为你的实际路径
|
|
|
|
|
|
|
|
byte[] sealBytes = Files.readAllBytes(Paths.get(imagePath));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 构建HTTP响应,设置Content-Type为image/png
|
|
|
|
|
|
|
|
return ResponseEntity.ok()
|
|
|
|
|
|
|
|
.contentType(MediaType.IMAGE_PNG)
|
|
|
|
|
|
|
|
.body(sealBytes);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AnonymousAccess
|
|
|
|
@AnonymousAccess
|
|
|
|
@GetMapping("/seal")
|
|
|
|
@GetMapping("/sealB")
|
|
|
|
@ApiOperation("生成乙方公章")
|
|
|
|
@ApiOperation("生成乙方公章")
|
|
|
|
public ResponseEntity<byte[]> getSealImage(@ApiParam("流程ID") @RequestParam String flowId) throws Exception {
|
|
|
|
public ResponseEntity<byte[]> getSealImage(@ApiParam("流程ID") @RequestParam String flowId) throws Exception {
|
|
|
|
String s = null;
|
|
|
|
String s = null;
|
|
|
@ -167,7 +192,7 @@ public class ContractInvestmentController {
|
|
|
|
//项目估值
|
|
|
|
//项目估值
|
|
|
|
ProjectPool projectPool = projectPools.get(0);
|
|
|
|
ProjectPool projectPool = projectPools.get(0);
|
|
|
|
//生成公章
|
|
|
|
//生成公章
|
|
|
|
s = sealUtil.genertSeal(projectPool.getCompanyName());
|
|
|
|
s = sealUtil.genertSealB(projectPool.getCompanyName());
|
|
|
|
// FileInputStream fileInputStream = new FileInputStream(filePath+"/seal/"+ s +".png");
|
|
|
|
// FileInputStream fileInputStream = new FileInputStream(filePath+"/seal/"+ s +".png");
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// MultipartFile multipartFile = new MockMultipartFile(
|
|
|
|
// MultipartFile multipartFile = new MockMultipartFile(
|
|
|
@ -189,7 +214,6 @@ public class ContractInvestmentController {
|
|
|
|
return ResponseEntity.ok()
|
|
|
|
return ResponseEntity.ok()
|
|
|
|
.contentType(MediaType.IMAGE_PNG)
|
|
|
|
.contentType(MediaType.IMAGE_PNG)
|
|
|
|
.body(sealBytes);
|
|
|
|
.body(sealBytes);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|