From 3a9719d7fde1be015f95a81686ce0f6c74d06db4 Mon Sep 17 00:00:00 2001 From: wanghb <17803890193@163.com> Date: Mon, 18 Dec 2023 16:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=A2=E4=BB=B7=E5=8F=91?= =?UTF-8?q?=E8=A1=8C=E5=AE=8C=E6=88=90=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ContractInvestmentController.java | 17 ++++++++++++----- .../ContractInvestmentServiceImpl.java | 5 +++++ 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/sztzjy/fund_investment/controller/ContractInvestmentController.java b/src/main/java/com/sztzjy/fund_investment/controller/ContractInvestmentController.java index c6302d9..7955ffa 100644 --- a/src/main/java/com/sztzjy/fund_investment/controller/ContractInvestmentController.java +++ b/src/main/java/com/sztzjy/fund_investment/controller/ContractInvestmentController.java @@ -10,10 +10,7 @@ import com.sztzjy.fund_investment.entity.*; import com.sztzjy.fund_investment.entity.dto.InvestIntentionDetailedDto; import com.sztzjy.fund_investment.entity.dto.InvestmentAgreementDto; import com.sztzjy.fund_investment.entity.dto.ReportUploadDto; -import com.sztzjy.fund_investment.mapper.FoundProjectMapper; -import com.sztzjy.fund_investment.mapper.IssuanceInfoMapper; -import com.sztzjy.fund_investment.mapper.ProfitManagementMapper; -import com.sztzjy.fund_investment.mapper.ProjectPoolMapper; +import com.sztzjy.fund_investment.mapper.*; import com.sztzjy.fund_investment.service.ContractInvestmentService; import com.sztzjy.fund_investment.service.ISysProjectDueDiligenceService; import com.sztzjy.fund_investment.service.PerformanceScoreService; @@ -42,9 +39,11 @@ import java.math.RoundingMode; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; +import java.util.Date; import java.util.List; import java.util.Random; + /** * @author 17803 * @date 2023-12-05 8:40 @@ -85,6 +84,9 @@ public class ContractInvestmentController { @Autowired private PerformanceScoreService performanceScoreService; + @Autowired + private PerformanceScoreMapper performanceScoreMapper; + /** * 上传尽调报告 @@ -325,6 +327,11 @@ public class ContractInvestmentController { //返回公章并加分 performanceScoreService.calculateScoreByModule("investmentSigningScore", 2, flowId); + //完成操作 + PerformanceScore performanceScore = performanceScoreService.getByFlowId(flowId); + performanceScore.setInvestmentSigningTime(new Date()); + performanceScoreMapper.updateByPrimaryKey(performanceScore); + // 构建HTTP响应,设置Content-Type为image/png return ResponseEntity.ok() .contentType(MediaType.IMAGE_PNG) @@ -412,7 +419,7 @@ public class ContractInvestmentController { @AnonymousAccess @GetMapping("/preliminaryOffline") - @ApiOperation("网下初步配售发行价格发行总量") + @ApiOperation("网下初步配售发行价格和发行总量") public ResultEntity preliminaryOffline(@ApiParam("流程ID") @RequestParam String flowId) { preliminaryOfflineDto info = contractInvestmentService.preliminaryOffline(flowId); diff --git a/src/main/java/com/sztzjy/fund_investment/service/serviceImpl/ContractInvestmentServiceImpl.java b/src/main/java/com/sztzjy/fund_investment/service/serviceImpl/ContractInvestmentServiceImpl.java index ae5c329..01b20eb 100644 --- a/src/main/java/com/sztzjy/fund_investment/service/serviceImpl/ContractInvestmentServiceImpl.java +++ b/src/main/java/com/sztzjy/fund_investment/service/serviceImpl/ContractInvestmentServiceImpl.java @@ -419,6 +419,11 @@ public class ContractInvestmentServiceImpl implements ContractInvestmentService //询价结果查询及发行参数录入2分 performanceScoreService.calculateScoreByModule("pricingIssuanceEnteringScore", 2, issuanceParameterInput.getFlowId()); + PerformanceScore performanceScore = performanceScoreService.getByFlowId(issuanceParameterInput.getFlowId()); + //询价发行完成时间 + performanceScore.setPricingIssuanceTime(new Date()); + performanceScoreMapper.updateByPrimaryKey(performanceScore); + return new ResultEntity<>(HttpStatus.OK,s,"添加成功"); } //第一次录入和估值做计算