修改实务认知得分和智能评分规则

master
xiaoCJ 9 months ago
parent ea306e52f9
commit 1c9d03ee29

@ -74,11 +74,13 @@ public class ProfitManagementServiceImpl implements ProfitManagementService {
profitManagementMapper.updateByPrimaryKey(profitManagement);
if (!(userMarketValue.compareTo(marketValue) == 0)) {
performanceScoreService.calculateScoreByModule("profitManagementMarketValueScore", 0, profitManagement.getFlowId());
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "市值计算错误!", marketValue);
} else {
performanceScoreService.calculateScoreByModule("profitManagementMarketValueScore", 2, profitManagement.getFlowId());
}
if (!(userFundEarnings.compareTo(fundEarnings) == 0)) {
performanceScoreService.calculateScoreByModule("profitManagementMarketValueScore", 0, profitManagement.getFlowId());
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "收益计算错误!", fundEarnings);
} else {
performanceScoreService.calculateScoreByModule("profitManagementFundScore", 2, profitManagement.getFlowId());

Loading…
Cancel
Save