| | |
| | | if(buyNum<Integer.parseInt(mainBuyConfig.getCValue())){ |
| | | return ServerResponse.createByErrorMsg("最低购买数量"+mainBuyConfig.getCValue(), request); |
| | | }*/ |
| | | //最低购买数量 US 10 其他1000 |
| | | Integer minBuyNum = 10; |
| | | if (!stock.getStockType().equals(EStockType.US.getCode())) { |
| | | //最低购买数量 US 10 印度100 香港台湾1000 |
| | | Integer minBuyNum; |
| | | if (stock.getStockType().equals(EStockType.US.getCode())) { |
| | | minBuyNum = 10; |
| | | } else if (stock.getStockType().equals(EStockType.IN.getCode())) { |
| | | minBuyNum = 100; |
| | | } else { |
| | | minBuyNum = 1000; |
| | | } |
| | | if(buyNum < minBuyNum){ |