| | |
| | | // 锁仓截至时间 |
| | | Date resultTime = calendar.getTime(); |
| | | if (!isAdmin) { |
| | | |
| | | if (stockDz.getPeriod() != null && stockDz.getPeriod() > 0) { |
| | | if ((order.getUnLock() == null || order.getUnLock() == 0) && now.getTime() < resultTime.getTime()) { |
| | | if (isETF && (order.getUnLock() == null || order.getUnLock() == 0)) { |
| | | return Result.failed("未到平仓时间"); |
| | | } |
| | | } else { |
| | | if (isETF && (order.getUnLock() == null || order.getUnLock() == 0)) { |
| | | |
| | | if (stockDz.getPeriod() != null && stockDz.getPeriod() > 0) { |
| | | if (now.getTime() < resultTime.getTime()) { |
| | | return Result.failed("未到平仓时间"); |
| | | } |
| | | } |