|
@@ -341,16 +341,17 @@ public class GoodsMgrController extends BaseApiController {
|
|
@ApiResponses(
|
|
@ApiResponses(
|
|
@ApiResponse(code = 200, message = "查询成功", response = TicketBox.class)
|
|
@ApiResponse(code = 200, message = "查询成功", response = TicketBox.class)
|
|
)
|
|
)
|
|
- public AjaxResult detailRelationTicket(@RequestBody JSONObject jsonObject) {
|
|
|
|
|
|
+ public TableDataInfo detailRelationTicket(@RequestBody JSONObject jsonObject) {
|
|
|
|
+ startPage();
|
|
String goodsId = jsonObject.getString("goodsId");
|
|
String goodsId = jsonObject.getString("goodsId");
|
|
if (null == goodsId) {
|
|
if (null == goodsId) {
|
|
- return error(ErrorCodeEnum.ERROR_CODE_1001);
|
|
|
|
|
|
+ return getErrorDataTable("goodsId不存在");
|
|
}
|
|
}
|
|
QueryWrapper<TicketBoxGoodsListVO> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<TicketBoxGoodsListVO> queryWrapper = new QueryWrapper<>();
|
|
queryWrapper.eq("t2.ref_id", goodsId);
|
|
queryWrapper.eq("t2.ref_id", goodsId);
|
|
queryWrapper.orderByAsc("FIELD('on', `status`, 'wait', 'doing', 'done', 'off')");
|
|
queryWrapper.orderByAsc("FIELD('on', `status`, 'wait', 'doing', 'done', 'off')");
|
|
List<TicketBox> ticketBoxList = ticketAwardsPrizeService.listTicketDetailRelGoods(queryWrapper);
|
|
List<TicketBox> ticketBoxList = ticketAwardsPrizeService.listTicketDetailRelGoods(queryWrapper);
|
|
- return AjaxResult.success(ticketBoxList);
|
|
|
|
|
|
+ return getDataTable(ticketBoxList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|