| | |
| | | String session_token = request.getParameter("session_token"); |
| | | String financeId = request.getParameter("financeId"); |
| | | String amount = request.getParameter("amount"); |
| | | String buyCurrency = request.getParameter("buyCurrency"); |
| | | |
| | | Object object = this.sessionTokenService.cacheGet(session_token); |
| | | this.sessionTokenService.del(session_token); |
| | |
| | | order.setPartyId(partyId); |
| | | order.setFinanceId(financeId); |
| | | order.setAmount(Double.valueOf(amount)); |
| | | order.setBuyCurrency(buyCurrency); |
| | | order.setOrderNo(DateUtil.getToday("yyMMddHHmmss") + RandomUtil.getRandomNum(8)); |
| | | order.setState("1"); |
| | | |
| | |
| | | |
| | | String financeId = request.getParameter("financeId"); |
| | | String amount_temp = request.getParameter("amount"); |
| | | String buyCurrency = request.getParameter("buyCurrency"); |
| | | |
| | | Finance finance = financeService.findById(financeId); |
| | | |
| | |
| | | map.put("profit_may", Arith.mul(amount, Arith.mul(rate, finance.getCycle())) + "~" |
| | | + Arith.mul(amount, Arith.mul(rateMax, finance.getCycle()))); |
| | | map.put("order_no", DateUtil.getToday("yyMMddHHmmss") + RandomUtil.getRandomNum(8)); |
| | | map.put("buyCurrency", finance.getBuyCurrency()); |
| | | map.put("buyCurrency", buyCurrency != null && !buyCurrency.isEmpty() ? buyCurrency : finance.getBuyCurrency()); |
| | | map.put("outputCurrency", finance.getOutputCurrency()); |
| | | |
| | | resultObject.setData(map); |