| | |
| | | .eq(HappyActivityOrderItem::getState, StateUpDownEnum.DOWN.getCode()) |
| | | .last("limit 1") |
| | | ); |
| | | if(happyActivityOrderItem != null){ |
| | | if(happyActivityOrderItem == null){ |
| | | throw new FebsException("票号异常!"); |
| | | } |
| | | |
| | | if(StateUpDownEnum.UP.getCode() == happyActivityOrderItem.getState()){ |
| | | throw new FebsException("该票号已核销!"); |
| | | throw new FebsException("票号已核销!"); |
| | | } |
| | | |
| | | HappyActivity happyActivity = this.baseMapper.selectById(happyActivityOrderItem.getActivityId()); |
| | |
| | | apiCheckOrderVo.setState(happyActivityOrderItem.getState()); |
| | | |
| | | return new FebsResponse().success().data(apiCheckOrderVo); |
| | | } |
| | | |
| | | return new FebsResponse().fail().message("核销失败!"); |
| | | } |
| | | |
| | | @Override |