From 0c980680e46ae0630e565d2c4dcced8b8737842a Mon Sep 17 00:00:00 2001 From: luodangjia <luodangjia> Date: 星期四, 16 一月 2025 15:50:29 +0800 Subject: [PATCH] 12.18 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/SeckillActivityInfoController.java | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/SeckillActivityInfoController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/SeckillActivityInfoController.java index 68af785..92acd9e 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/SeckillActivityInfoController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/SeckillActivityInfoController.java @@ -63,8 +63,7 @@ @ApiOperation(value = "秒杀活动列表",tags = {"小程序-商城-首页","后台管理-活动管理-秒杀活动"}) public R<TableDataInfo> list(Goods goods) { - TableDataInfo<SeckillActivityVO> dataTable = getDataTable(seckillActivityInfoService.listSeckillActivity(goods)); - return R.ok(dataTable); + return R.ok(seckillActivityInfoService.listSeckillActivity(goods)); } /** @@ -90,12 +89,17 @@ } GoodsSeckill goodsSeckill = goodsSeckillService.getOne(new LambdaQueryWrapper<GoodsSeckill>().eq(GoodsSeckill::getSeckillActivityInfoId, one.getId()).eq(GoodsSeckill::getVip, info.getVip())); if(null != goodsSeckill){ - goodsSeckill.setEndTime(one.getEndTime().toEpochSecond(ZoneOffset.UTC) * 1000); + LocalDateTime endTime = one.getEndTime(); +// // 转时间戳 + long timeStamp = endTime.toInstant(ZoneOffset.of("+8")).toEpochMilli(); + goodsSeckill.setEndTime(timeStamp); } return R.ok(goodsSeckill); } + + /** * 获取商品秒杀活动 * @param id -- Gitblit v1.7.1