|
@@ -110,23 +110,23 @@ public class UserTicketController extends BaseApiController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 查看盲票详情
|
|
|
- */
|
|
|
- @PostMapping("/mall/ticket/detail")
|
|
|
- @ApiOperation(value = "查看盲票详情", notes = "根据盲票组ID,获取盲票信息")
|
|
|
- @ApiResponses(
|
|
|
- @ApiResponse(code = 200, message = "成功", response = TicketBoxVO.class)
|
|
|
- )
|
|
|
- public AjaxResult getInfo(@RequestBody TicketBoxParam param) {
|
|
|
- if (StringUtils.isBlank(param.getBoxId())) {
|
|
|
- return AjaxResult.error("参数异常,盲票组ID缺失");
|
|
|
- }
|
|
|
- TicketBox ticketBox = ticketBoxService.getById(param.getBoxId());
|
|
|
- TicketBoxVO ticketBoxVO = mapperFacade.map(ticketBox, TicketBoxVO.class);
|
|
|
- // 设置奖项标签信息
|
|
|
- List<TicketAwardsLabelVO> ticketAwardsLabelVOS = new ArrayList<>();
|
|
|
- for (AwardsLabelEnum awardsLabelEnum : AwardsLabelEnum.values()) {
|
|
|
+ /**
|
|
|
+ * 查看盲票详情
|
|
|
+ */
|
|
|
+ @PostMapping("/mall/ticket/detail")
|
|
|
+ @ApiOperation(value = "查看盲票详情", notes = "根据盲票组ID,获取盲票信息")
|
|
|
+ @ApiResponses(
|
|
|
+ @ApiResponse(code = 200, message = "成功", response = TicketBoxVO.class)
|
|
|
+ )
|
|
|
+ public AjaxResult getInfo(@RequestBody TicketBoxParam param) {
|
|
|
+ if (StringUtils.isBlank(param.getBoxId())) {
|
|
|
+ return AjaxResult.error("参数异常,盲票组ID缺失");
|
|
|
+ }
|
|
|
+ TicketBox ticketBox = ticketBoxService.getById(param.getBoxId());
|
|
|
+ TicketBoxVO ticketBoxVO = mapperFacade.map(ticketBox, TicketBoxVO.class);
|
|
|
+ // 设置奖项标签信息
|
|
|
+ List<TicketAwardsLabelVO> ticketAwardsLabelVOS = new ArrayList<>();
|
|
|
+ for (AwardsLabelEnum awardsLabelEnum : AwardsLabelEnum.values()) {
|
|
|
TicketAwardsLabelVO ticketAwardsLabelVO = new TicketAwardsLabelVO();
|
|
|
ticketAwardsLabelVO.setLabelTitle(awardsLabelEnum.getValue());
|
|
|
ticketAwardsLabelVO.setPicUrl(awardsLabelEnum.getPicUrl());
|