|
|
|
@ -148,9 +148,9 @@ public class ContractInvestmentController {
|
|
|
|
|
|
|
|
|
|
profitManagements.forEach(item -> {
|
|
|
|
|
//更新操作
|
|
|
|
|
item.setShareRatio(BigDecimal.valueOf(proportion));
|
|
|
|
|
item.setInvestmentAmount(BigDecimal.valueOf(totalInvest));
|
|
|
|
|
item.setShareCount(BigDecimal.valueOf(totalInvest));
|
|
|
|
|
item.setShareRatio(BigDecimal.valueOf(proportion).setScale(2, RoundingMode.HALF_UP));
|
|
|
|
|
item.setInvestmentAmount(BigDecimal.valueOf(totalInvest).setScale(2, RoundingMode.HALF_UP));
|
|
|
|
|
item.setShareCount(BigDecimal.valueOf(totalInvest).setScale(2, RoundingMode.HALF_UP));
|
|
|
|
|
profitManagementMapper.updateByPrimaryKeySelective(item);
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
@ -160,10 +160,10 @@ public class ContractInvestmentController {
|
|
|
|
|
profitManagement.setId(IdUtil.fastSimpleUUID());
|
|
|
|
|
profitManagement.setFlowId(flowId);
|
|
|
|
|
profitManagement.setMarketTime(date[i]);
|
|
|
|
|
profitManagement.setInvestmentAmount(BigDecimal.valueOf(totalInvest));
|
|
|
|
|
profitManagement.setShareRatio(BigDecimal.valueOf(proportion));
|
|
|
|
|
profitManagement.setTotalEquity(BigDecimal.valueOf(v));
|
|
|
|
|
profitManagement.setShareCount(BigDecimal.valueOf(totalInvest));
|
|
|
|
|
profitManagement.setInvestmentAmount(BigDecimal.valueOf(totalInvest).setScale(2, RoundingMode.HALF_UP));
|
|
|
|
|
profitManagement.setShareRatio(BigDecimal.valueOf(proportion).setScale(2, RoundingMode.HALF_UP));
|
|
|
|
|
profitManagement.setTotalEquity(BigDecimal.valueOf(v).setScale(2, RoundingMode.HALF_UP));
|
|
|
|
|
profitManagement.setShareCount(BigDecimal.valueOf(totalInvest).setScale(2, RoundingMode.HALF_UP));
|
|
|
|
|
|
|
|
|
|
//设置公司名
|
|
|
|
|
profitManagement.setProjectName(companyName + "有限公司");
|
|
|
|
|