1、swagger接口文档

beetlsql3-dev
陈沅 1 year ago
parent 7415356906
commit e4825e0d5f

@ -711,6 +711,39 @@ public class AccountController {
}
@ApiOperation(value = "修改p2p账户资金-3")
@PostMapping("/updateP2pAccount3.json")
public JsonResult updateP2pAccount3(Long userId,
BigDecimal totalAssets,
BigDecimal availableFunds,
BigDecimal investmentfunds,
BigDecimal cumulativeofReturn,
BigDecimal freezeFunds) {
CoreUser coreUser = userService.findByOldId(userId);
StudentQuery query = new StudentQuery();
query.setUserId(coreUser.getId());
List<Student> valuesByQuery = studentService.getValuesByQuery(query);
if (valuesByQuery != null && valuesByQuery.size() > 0) {
Student student = valuesByQuery.get(0);
StudentAccountAssetAllocation info = studentAccountAssetAllocationService.getByApplicationIdAndStudentId(Long.valueOf(4), student.getStudentId());
StudentAccountP2pSystem p2pSystem = studentAccountP2pSystemService.getValuesByStudentId(student.getStudentId());
info.setAvailableFunds(availableFunds);
info.setTotalAssetsOfSubAccounts(totalAssets);
info.setInvestmentFunds(investmentfunds);
info.setAmountFrozen(freezeFunds);
studentAccountAssetAllocationService.updateTemplate(info);
p2pSystem.setAvailableBalance(availableFunds);
p2pSystem.setTotalAssets(totalAssets);
p2pSystem.setTotalInvestment(investmentfunds);
p2pSystem.setCumulativeIncome(cumulativeofReturn);
p2pSystem.setFrozenFunds(freezeFunds);
studentAccountP2pSystemService.updateTemplate(p2pSystem);
}
return JsonResult.success();
}
@ApiOperation(value = "修改众筹账户资金")
@PostMapping("/updateCrowdAccount.json")
public JsonResult updateCrowdAccount(String username, BigDecimal money, Integer method) {

Loading…
Cancel
Save