UserDetails user = UserDetails.findCurrentUser();
Investment investment = Investment.findInvestment(investmentId);
InvestmentPrice price = InvestmentPrice.findInvestmentPrice(priceId);
if (price == null) {
price = new InvestmentPrice();
investment.addPrice(price);
}
if ((investment != null) && investment.belongsTo(user) && price.belongsTo(investment)) {
price.setPrice(amount);
price.setUpdateTime(operationDate);
if (price.getId() != null) {