| | |
| | | public Result<String> addDepositOpen(@RequestParam @NotBlank String orderNo, @RequestParam @NotBlank BigDecimal addDepositOpen) { |
| | | try { |
| | | ContractOrder order = this.contractOrderService.findByOrderNo(orderNo); |
| | | if (order != null && order.getState().equals(ContractOrder.STATE_SUBMITTED)) { |
| | | if (order != null && order.getState().equals(ContractOrder.STATE_SUBMITTED) && order.getLocationType() == 0) { |
| | | contractOrderService.addDepositOpen(order, addDepositOpen); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("追加保证金异常", e); |
| | | throw new YamiShopBindException("追加保证金异常"); |
| | | throw new YamiShopBindException("Failed to add margin"); |
| | | } |
| | | return Result.succeed("success"); |
| | | } |
| | |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("追加保证金异常", e); |
| | | throw new YamiShopBindException("追加保证金异常"); |
| | | throw new YamiShopBindException("Failed to add margin"); |
| | | } |
| | | return Result.succeed("success"); |
| | | } |
| | |
| | | |
| | | 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)); |
| | |
| | | } |
| | | |
| | | 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(); |
| | | |