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

Commit 4e23bb64 authored by 姜秀龙's avatar 姜秀龙

sqb sku只展示关联的

parent 155ea2c4
......@@ -76,8 +76,13 @@ public class GoblinFrontController {
@GetMapping("getGoodsDetail")
@ApiOperation("获得商品详情")
public ResponseDto<GoblinFrontGoodDetailVo> getGoodsDetail(@RequestParam(name = "spuId", required = true) String spuId) throws ParseException {
GoblinFrontGoodDetailVo vo = goblinFrontService.getGoodsDetail(spuId);
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", required = false, dataType = "String", name = "performancesId", value = "演出ID,可选;收钱吧商品(spuType=33)时传入则仅返回该演出已关联的 SKU")
})
public ResponseDto<GoblinFrontGoodDetailVo> getGoodsDetail(
@RequestParam(name = "spuId", required = true) String spuId,
@RequestParam(name = "performancesId", required = false) String performancesId) throws ParseException {
GoblinFrontGoodDetailVo vo = goblinFrontService.getGoodsDetail(spuId, performancesId);
if(vo==null){
return ResponseDto.failure("商品不存在");
}
......
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