|
@@ -15,6 +15,8 @@ import com.qs.mp.admin.domain.param.TicketParam;
|
|
|
import com.qs.mp.admin.domain.vo.*;
|
|
|
import com.qs.mp.admin.service.*;
|
|
|
import com.qs.mp.channel.domain.Channel;
|
|
|
+import com.qs.mp.channel.domain.ChannelOrderDetail;
|
|
|
+import com.qs.mp.channel.service.IChannelOrderDetailService;
|
|
|
import com.qs.mp.channel.service.IChannelService;
|
|
|
import com.qs.mp.common.core.domain.AjaxResult;
|
|
|
import com.qs.mp.common.core.page.TableDataInfo;
|
|
@@ -99,6 +101,9 @@ public class UserTicketController extends BaseApiController {
|
|
|
@Autowired
|
|
|
private IChannelService channelService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IChannelOrderDetailService channelOrderDetailService;
|
|
|
+
|
|
|
@PostMapping("/isJump")
|
|
|
@ApiOperation("是否跳转")
|
|
|
public AjaxResult isJump() {
|
|
@@ -419,6 +424,9 @@ public class UserTicketController extends BaseApiController {
|
|
|
return AjaxResult.error(ErrorCodeEnum.ERROR_CODE_1023);
|
|
|
}
|
|
|
|
|
|
+ ChannelOrderDetail channelOrderDetail = channelOrderDetailService.getOne(
|
|
|
+ new LambdaQueryWrapper<ChannelOrderDetail>().eq(ChannelOrderDetail::getPkgId, ticketPackage.getPkgId()));
|
|
|
+
|
|
|
TicketVO ticketVO = new TicketVO();
|
|
|
ticketVO.setPrizeList(ticketAwardsPrizeService.listPrizeVO(ticket.getBoxId()));
|
|
|
ticketVO.setTicketId(ticket.getTicketId());
|
|
@@ -430,6 +438,9 @@ public class UserTicketController extends BaseApiController {
|
|
|
ticketVO.setPlainLuckyNum(ticket.getPlainLuckyNum());
|
|
|
ticketVO.setStatus(ticket.getStatus().getValue());
|
|
|
ticketVO.setPicUrl(ticketBox.getPicUrl());
|
|
|
+ if (channelOrderDetail != null) {
|
|
|
+ ticketVO.setChannelId(channelOrderDetail.getChannelId());
|
|
|
+ }
|
|
|
|
|
|
// 设置奖项名
|
|
|
if (Objects.nonNull(ticket.getPlainLuckyNum())) {
|