记得上下班打卡 | git大法好,push需谨慎

Commit f31ea650 authored by 胡佳晨's avatar 胡佳晨

修改消费

parent 31685685
...@@ -75,7 +75,11 @@ public class GoblinFrontController { ...@@ -75,7 +75,11 @@ public class GoblinFrontController {
@GetMapping("getGoodsDetail") @GetMapping("getGoodsDetail")
@ApiOperation("获得商品详情") @ApiOperation("获得商品详情")
public ResponseDto<GoblinFrontGoodDetailVo> getGoodsDetail(@RequestParam(name = "spuId", required = true) String spuId) throws ParseException { public ResponseDto<GoblinFrontGoodDetailVo> getGoodsDetail(@RequestParam(name = "spuId", required = true) String spuId) throws ParseException {
return ResponseDto.success(goblinFrontService.getGoodsDetail(spuId)); GoblinFrontGoodDetailVo vo = goblinFrontService.getGoodsDetail(spuId);
if(vo==null){
return ResponseDto.failure("商品不存在");
}
return ResponseDto.success(vo);
} }
@GetMapping("getMoudleIndex") @GetMapping("getMoudleIndex")
......
...@@ -331,6 +331,8 @@ public class GoblinFrontServiceImpl implements GoblinFrontService { ...@@ -331,6 +331,8 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
goblinFrontGoodDetailVo.setStoreName(goblinStoreInfoVo.getStoreName()); goblinFrontGoodDetailVo.setStoreName(goblinStoreInfoVo.getStoreName());
} }
goblinFrontGoodDetailVo.setGoblinGoodsSkuInfoVolist(list); goblinFrontGoodDetailVo.setGoblinGoodsSkuInfoVolist(list);
}else{
return null;
} }
ArrayList<String> list=goblinCouponService.getSpuType(spuId,goblinGoodsInfoDetailVo.getStoreId()); ArrayList<String> list=goblinCouponService.getSpuType(spuId,goblinGoodsInfoDetailVo.getStoreId());
goblinFrontGoodDetailVo.setGetSpuType(list); goblinFrontGoodDetailVo.setGetSpuType(list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment