新版仿ok交易所-后端
1
zj
9 days ago 579177ac64462d0fec885eb10af3097245134f80
trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiContractOrderController.java
@@ -63,7 +63,7 @@
            t.start();
        } catch (Exception e) {
            log.error("平仓失败", e);
            return Result.failed("平仓失败");
            return Result.failed("Failed to close position");
        }
        return Result.succeed("平仓成功");
@@ -79,7 +79,7 @@
            }
        } catch (Exception e) {
            log.error("追加保证金异常", e);
            throw new YamiShopBindException("追加保证金异常");
            throw new YamiShopBindException("Failed to add margin");
        }
        return Result.succeed("success");
    }
@@ -97,7 +97,7 @@
            }
        } catch (Exception e) {
            log.error("追加保证金异常", e);
            throw new YamiShopBindException("追加保证金异常");
            throw new YamiShopBindException("Failed to add margin");
        }
        return Result.succeed("success");
    }
@@ -117,7 +117,7 @@
        } catch (Exception e) {
            log.error("一键平仓失败", e);
            return Result.failed("一键平仓失败");
            return Result.failed("Failed to close all positions");
        }
        return Result.succeed("一键平仓成功");
@@ -215,7 +215,7 @@
        if (null == order) {
            log.info("contractOrder!get order_no:" + order_no + ", order null");
            throw new YamiShopBindException("订单不存在");
            throw new YamiShopBindException("Order does not exist");
        }
        return Result.ok(this.contractOrderService.bulidOne(order));
@@ -256,10 +256,10 @@
        }
        if (!StringUtils.isInteger(page_no)) {
            throw new YamiShopBindException("页码不是整数");
            throw new YamiShopBindException("Page number must be an integer");
        }
        if (Integer.valueOf(page_no).intValue() <= 0) {
            throw new YamiShopBindException("页码不能小于等于0");
            throw new YamiShopBindException("Page number must be greater than 0");
        }
        String partyId = SecurityUtils.getCurrentUserId();