|
|
|
@ -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());
|
|
|
|
|