| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.text.DecimalFormat; |
| | | import java.util.*; |
| | | |
| | | /** |
| | |
| | | List<String> pay_type = new LinkedList<String>(); |
| | | String[] types = mso.get("pay_type").toString().split(","); |
| | | for (String type : types) { |
| | | C2cPaymentMethodConfig method =c2cPaymentMethodConfigService.get(type.trim()); |
| | | C2cPaymentMethodConfig method =c2cPaymentMethodConfigService.getById(type.trim()); |
| | | if (null != method) { |
| | | C2cTranslate trans = c2cTranslateService.get(method.getMethodName(), language); |
| | | if (null != trans) { |
| | |
| | | if (null == c2cParty) { |
| | | throw new YamiShopBindException("承兑商的用户信息不存在"); |
| | | } |
| | | DecimalFormat df = new DecimalFormat("0.00"); |
| | | |
| | | |
| | | Map<String, String> data = new HashMap<String, String>(); |
| | | data.put("id", c2cAdvert.getUuid().toString()); |
| | | data.put("direction", c2cAdvert.getDirection()); |
| | |
| | | data.put("pay_rate", String.valueOf(c2cAdvert.getPayRate())); |
| | | data.put("pay_type", c2cAdvert.getPayType()); |
| | | data.put("symbol_value", String.valueOf(c2cAdvert.getSymbolValue())); |
| | | data.put("coin_amount", String.valueOf(c2cAdvert.getCoinAmount())); |
| | | data.put("coin_amount", df.format(c2cAdvert.getCoinAmount())); |
| | | data.put("investment_min", String.valueOf(c2cAdvert.getInvestmentMin())); |
| | | data.put("investment_max", String.valueOf(c2cAdvert.getInvestmentMax())); |
| | | data.put("investment_max", df.format(c2cAdvert.getInvestmentMax())); |
| | | data.put("deposit", String.valueOf(c2cAdvert.getDeposit())); |
| | | data.put("deposit_open", String.valueOf(c2cAdvert.getDepositOpen())); |
| | | data.put("on_sale", String.valueOf(c2cAdvert.getOnSale())); |