| | |
| | | package com.yami.trading.admin.controller.future; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.yami.trading.admin.facade.PermissionFacade; |
| | | import com.yami.trading.common.domain.Result; |
| | | |
| | |
| | | @ApiOperation(value = "盈利还是亏损") |
| | | @GetMapping("orderProfitLoss.action") |
| | | public Result<String> orderProfitLoss(@RequestParam String orderNo, @RequestParam String profitLoss) { |
| | | futuresOrderService.saveOrderPorfitOrLoss(orderNo, profitLoss, SecurityUtils.getSysUser().getUsername()); |
| | | return Result.ok("操作成过"); |
| | | String msg = futuresOrderService.saveOrderPorfitOrLoss(orderNo, profitLoss, SecurityUtils.getSysUser().getUsername()); |
| | | if (StrUtil.isNotBlank(msg)) { |
| | | return Result.failed(msg); |
| | | } |
| | | return Result.ok("操作成功"); |
| | | } |
| | | |
| | | /** |
| | | * 修改订单方向 buy=买涨 sell=买跌 |
| | | */ |
| | | @ApiOperation(value = "修改交割订单方向") |
| | | @GetMapping("orderDirection.action") |
| | | public Result<String> orderDirection(@RequestParam String orderNo, @RequestParam String direction) { |
| | | String msg = futuresOrderService.saveOrderDirection(orderNo, direction, SecurityUtils.getSysUser().getUsername()); |
| | | if (StrUtil.isNotBlank(msg)) { |
| | | return Result.failed(msg); |
| | | } |
| | | return Result.ok("操作成功"); |
| | | } |
| | | } |