| | |
| | | @Autowired |
| | | UserPositionMapper userPositionMapper; |
| | | |
| | | @Autowired |
| | | TransactionLogService transactionLogService; |
| | | |
| | | private static final ThreadLocal<Boolean> orderCreated = ThreadLocal.withInitial(() -> false); |
| | | private final Lock lock = new ReentrantLock(); |
| | | |
| | |
| | | userPendingorderService.updateById(userPendingorder); |
| | | iUserAssetsServices.availablebalanceChange(userPendingorder.getStockGid().equals("ST") ? userPendingorder.getStockGid() : "USD", |
| | | userPendingorder.getUserId(), |
| | | EUserAssets.CLOSE_POSITION_RETURN_SECURITY_DEPOSIT, |
| | | EUserAssets.THE_DEPOSIT_WILL_BE_RETURNED_IF_THE_ORDER_IS_CANCELLED, |
| | | userPendingorder.getOrderTotalPrice(), "", ""); |
| | | return ServerResponse.createBySuccess("撤销挂单成功",request); |
| | | } |
| | |
| | | return iApplyLeverServices.applyLever(applyLever,request); |
| | | } |
| | | |
| | | |
| | | @RequestMapping({"flowLog.do"}) |
| | | @ResponseBody |
| | | public ServerResponse flowLog(@RequestParam(value = "page", defaultValue = "1") int page, |
| | | @RequestParam(value = "pageSize", defaultValue = "100") int pageSize,HttpServletRequest request) { |
| | | return transactionLogService.flowLog(page,pageSize,request); |
| | | } |
| | | } |