询价发行--添加分数

master
@t2652009480 1 year ago
parent 9224112302
commit 02bd62c03d

@ -44,8 +44,6 @@ public class InquiryIssuanceController {
PerformanceScoreMapper performanceScoreMapper; PerformanceScoreMapper performanceScoreMapper;
@Resource @Resource
PerformanceScoreService performanceScoreService; PerformanceScoreService performanceScoreService;
@Resource
IssuanceParameterInput issuanceParameterInput;
@AnonymousAccess @AnonymousAccess
@GetMapping("/queryInquiryInvestors") @GetMapping("/queryInquiryInvestors")
@ApiOperation("询价投资者查看") @ApiOperation("询价投资者查看")
@ -109,9 +107,16 @@ public class InquiryIssuanceController {
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
//写入分数
performanceScoreService.calculateScoreByModule("pricingIssuanceEnteringScore", 1, issuanceParameterInput.getFlowId());
} }
@AnonymousAccess
@GetMapping("/confirmScoring")
@ApiOperation("询价投资者确定-转到下一个流程并计分")
public ResultEntity confirmScoring(@ApiParam("流程ID") String flowId){
inquiryIssuanceService.confirmScoring(flowId);
return new ResultEntity<>(HttpStatus.OK);
}
@AnonymousAccess @AnonymousAccess
@GetMapping("/queryInitiatePreliminaryInquiry") @GetMapping("/queryInitiatePreliminaryInquiry")
@ApiOperation("启动初步询价查看") @ApiOperation("启动初步询价查看")
@ -200,8 +205,6 @@ public class InquiryIssuanceController {
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
//写入分数
performanceScoreService.calculateScoreByModule("pricingIssuanceEnteringScore", 2, issuanceParameterInput.getFlowId());
} }
@AnonymousAccess @AnonymousAccess
@ -244,8 +247,6 @@ public class InquiryIssuanceController {
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
//写入分数
performanceScoreService.calculateScoreByModule("pricingIssuanceEnteringScore", 1, issuanceParameterInput.getFlowId());
} }
@AnonymousAccess @AnonymousAccess

@ -44,4 +44,6 @@ public interface InquiryIssuanceService {
QuotationDTO viewQuotation(String flowId); QuotationDTO viewQuotation(String flowId);
List<QuotationDTO> viewHistoricalQuotation(String flowId); List<QuotationDTO> viewHistoricalQuotation(String flowId);
void confirmScoring(String flowId);
} }

@ -42,6 +42,7 @@ public class InquiryIssuanceServiceImpl implements InquiryIssuanceService {
PerformanceScoreService performanceScoreService; PerformanceScoreService performanceScoreService;
@Resource @Resource
PerformanceScoreMapper performanceScoreMapper; PerformanceScoreMapper performanceScoreMapper;
@Override @Override
public PageInfo<AllotmentObjectDTO> queryInquiryInvestors(String flowId, Integer size, Integer index) { public PageInfo<AllotmentObjectDTO> queryInquiryInvestors(String flowId, Integer size, Integer index) {
//开启分页 //开启分页
@ -350,7 +351,7 @@ public class InquiryIssuanceServiceImpl implements InquiryIssuanceService {
List<PerformanceScore> performanceScores = performanceScoreMapper.selectByExample(performanceScoreExample); List<PerformanceScore> performanceScores = performanceScoreMapper.selectByExample(performanceScoreExample);
if(performanceScores.size()>0){ if(performanceScores.size()>0){
if(performanceScores.get(0).getInitPricingIssuanceScore()==null){ if(performanceScores.get(0).getInitPricingIssuanceScore()==null){
performanceScoreService.calculateScoreByModule("init_pricing_issuance_score",3,inquiryParticipation.getFlowId()); performanceScoreService.calculateScoreByModule("initPricingIssuanceScore",2,inquiryParticipation.getFlowId());
} }
} }
} }
@ -454,6 +455,8 @@ public class InquiryIssuanceServiceImpl implements InquiryIssuanceService {
if(inquiryParticipations.size()>0){ if(inquiryParticipations.size()>0){
InquiryParticipation inquiryParticipation = inquiryParticipations.get(0); InquiryParticipation inquiryParticipation = inquiryParticipations.get(0);
QuotationDTO quotationDTO = convertUtil.entityToDTO(inquiryParticipation, QuotationDTO.class); QuotationDTO quotationDTO = convertUtil.entityToDTO(inquiryParticipation, QuotationDTO.class);
//写入分数
performanceScoreService.calculateScoreByModule("pricingIssuanceEnteringScore", 1, flowId);
return quotationDTO; return quotationDTO;
}else { }else {
throw new RuntimeException("请按流程操作"); throw new RuntimeException("请按流程操作");
@ -468,4 +471,10 @@ public class InquiryIssuanceServiceImpl implements InquiryIssuanceService {
List<QuotationDTO> quotationDTOS = convertUtil.entityToDTOList(inquiryParticipations, QuotationDTO.class); List<QuotationDTO> quotationDTOS = convertUtil.entityToDTOList(inquiryParticipations, QuotationDTO.class);
return quotationDTOS; return quotationDTOS;
} }
@Override
public void confirmScoring(String flowId) {
//写入分数
performanceScoreService.calculateScoreByModule("pricingIssuanceConfirmScore", 1, flowId);
}
} }

Loading…
Cancel
Save