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) {
price.merge();
} else {