Administrator
3 days ago da3b1c420009a4d80df3e247015b7c100ea99bc4
src/main/java/cc/mrbird/febs/mall/service/impl/HappyActivityServiceImpl.java
@@ -908,7 +908,7 @@
                .last("limit 1")
        );
        if(happyActivityOrderItem == null){
            throw new FebsException("票号异常!");
            throw new FebsException("票号不存在!");
        }
        HappyActivity happyActivity = this.baseMapper.selectById(happyActivityOrderItem.getActivityId());
@@ -944,7 +944,9 @@
                        .eq(HappyActivityOrderItem::getCode, orderItemCode)
                        .last("limit 1")
        );
        if(happyActivityOrderItem != null){
        if(happyActivityOrderItem == null){
            throw new FebsException("票号不存在!");
        }
            if(StateUpDownEnum.UP.getCode() == happyActivityOrderItem.getState()){
                throw new FebsException("票号已核销!");
            }
@@ -953,7 +955,6 @@
            happyActivityOrderItem.setTransferItemId(memberId);
            happyActivityOrderItemMapper.updateById(happyActivityOrderItem);
            agentProducer.sendCheckActivityItem(happyActivityOrderItem.getOrderId());
        }
        return new FebsResponse().success().message("操作成功");
    }