管理端获取商品详情接口
This commit is contained in:
@@ -89,6 +89,14 @@ public class PpPackageController {
|
||||
return CzgResult.success(ppPackageService.getPackagePage(reqVo, true));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取套餐详情
|
||||
*/
|
||||
@GetMapping("/detail/{id}")
|
||||
public CzgResult<PpPackageVO> getPackageDetail(@PathVariable Long id, Long shopId) {
|
||||
return CzgResult.success(ppPackageService.getPackageDetail(id, shopId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取套餐推广开关
|
||||
* 0: 关闭 1: 开启
|
||||
|
||||
@@ -8,6 +8,7 @@ import com.czg.market.service.GbWareService;
|
||||
import com.czg.order.dto.GbOrderQueryParam;
|
||||
import com.czg.order.service.GbOrderService;
|
||||
import com.czg.order.vo.GbOrderCountVO;
|
||||
import com.czg.order.vo.GbWareVO;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.sa.StpKit;
|
||||
import com.czg.utils.AssertUtil;
|
||||
@@ -87,4 +88,12 @@ public class GbWareController {
|
||||
AssertUtil.isNull(id, "操作失败,请选择商品");
|
||||
return CzgResult.success(wareService.deleteGbWare(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼团商品详情
|
||||
*/
|
||||
@GetMapping("/ware/detail")
|
||||
public CzgResult<GbWareVO> getWareDetail(@RequestParam Long shopId, @RequestParam Long wareId) {
|
||||
return CzgResult.success(gbOrderService.getWareDetail(shopId, wareId, null));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,7 +151,9 @@ public class GbOrderServiceImpl extends ServiceImpl<GbOrderMapper, GbOrder> impl
|
||||
q.eq(GbOrderDetail::getStatus, "待成团").or(GbOrderDetail::getStatus).eq("退款中");
|
||||
});
|
||||
queryWrapper1.eq(GbOrderDetail::getGroupOrderNo, ing.getGroupOrderNo());
|
||||
if (userId != null) {
|
||||
queryWrapper1.eq(GbOrderDetail::getUserId, userId);
|
||||
}
|
||||
boolean exists = detailService.exists(queryWrapper1);
|
||||
if (exists) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user