|
|
|
@ -42,6 +42,7 @@ public class InquiryIssuanceServiceImpl implements InquiryIssuanceService {
|
|
|
|
|
PerformanceScoreService performanceScoreService;
|
|
|
|
|
@Resource
|
|
|
|
|
PerformanceScoreMapper performanceScoreMapper;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
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);
|
|
|
|
|
if(performanceScores.size()>0){
|
|
|
|
|
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){
|
|
|
|
|
InquiryParticipation inquiryParticipation = inquiryParticipations.get(0);
|
|
|
|
|
QuotationDTO quotationDTO = convertUtil.entityToDTO(inquiryParticipation, QuotationDTO.class);
|
|
|
|
|
//写入分数
|
|
|
|
|
performanceScoreService.calculateScoreByModule("pricingIssuanceEnteringScore", 1, flowId);
|
|
|
|
|
return quotationDTO;
|
|
|
|
|
}else {
|
|
|
|
|
throw new RuntimeException("请按流程操作");
|
|
|
|
@ -468,4 +471,10 @@ public class InquiryIssuanceServiceImpl implements InquiryIssuanceService {
|
|
|
|
|
List<QuotationDTO> quotationDTOS = convertUtil.entityToDTOList(inquiryParticipations, QuotationDTO.class);
|
|
|
|
|
return quotationDTOS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void confirmScoring(String flowId) {
|
|
|
|
|
//写入分数
|
|
|
|
|
performanceScoreService.calculateScoreByModule("pricingIssuanceConfirmScore", 1, flowId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|