| | |
| | | return ServerResponse.createByErrorMsg("The pending order failed because the purchased quantity was greater than" + siteSetting |
| | | .getBuyMaxNum() + "stocks",request); |
| | | } |
| | | UserPendingorder userPendingorder = userPendingorderMapper.selectOne(new QueryWrapper<UserPendingorder>().eq("user_id", user.getId()).eq("stock_id", stockId).eq("status", 0)); |
| | | if (userPendingorder != null) { |
| | | String lang = request.getHeader("lang"); |
| | | if(lang.equals("ja")){ |
| | | String msg = "繰り返しの送信はご遠慮ください"; |
| | | return ServerResponse.createByErrorMsg(msg); |
| | | }else{ |
| | | return ServerResponse.createByErrorMsg("Please do not repeat the order",request); |
| | | } |
| | | } |
| | | // UserPendingorder userPendingorder = userPendingorderMapper.selectOne(new QueryWrapper<UserPendingorder>().eq("user_id", user.getId()).eq("stock_id", stockId).eq("status", 0)); |
| | | // if (userPendingorder != null) { |
| | | // String lang = request.getHeader("lang"); |
| | | // if(lang.equals("ja")){ |
| | | // String msg = "繰り返しの送信はご遠慮ください"; |
| | | // return ServerResponse.createByErrorMsg(msg); |
| | | // }else{ |
| | | // return ServerResponse.createByErrorMsg("Please do not repeat the order",request); |
| | | // } |
| | | // } |
| | | |
| | | userPendingorder = new UserPendingorder(); |
| | | UserPendingorder userPendingorder = new UserPendingorder(); |
| | | userPendingorder.setUserId(user.getId()); |
| | | userPendingorder.setStockId(stockId); |
| | | userPendingorder.setBuyNum(buyNum); |