cup 2 years ago
parent
commit
919c038bb5

+ 17 - 17
mp-admin/src/main/java/com/qs/mp/web/controller/api/user/UserTicketController.java

@@ -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());

+ 1 - 1
mp-service/src/main/java/com/qs/mp/admin/domain/PrizeRecovery.java

@@ -37,7 +37,7 @@ public class PrizeRecovery implements Serializable {
      * 主键
      */
     @ApiModelProperty("主键")
-    @TableId(value = "id", type = IdType.INPUT)
+    @TableId(value = "id", type = IdType.AUTO)
     private Long id;
 
     /**