diff --git a/src/main/java/com/sztzjy/fund_investment/service/serviceImpl/ProfitManagementServiceImpl.java b/src/main/java/com/sztzjy/fund_investment/service/serviceImpl/ProfitManagementServiceImpl.java index b180981..14b8a6a 100644 --- a/src/main/java/com/sztzjy/fund_investment/service/serviceImpl/ProfitManagementServiceImpl.java +++ b/src/main/java/com/sztzjy/fund_investment/service/serviceImpl/ProfitManagementServiceImpl.java @@ -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());