---快递发货问题和取消面单接口
This commit is contained in:
@@ -206,6 +206,36 @@ public class ShopProductController {
|
||||
}
|
||||
return R.ok().put("result", result);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取关联订单列表
|
||||
* @param productId
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/getGlProductList")
|
||||
public R getGlProductList(@RequestParam int productId) {
|
||||
//获取此商品下的books
|
||||
List<Integer> ids = shopProudictBookService.getBookidsByProductId(productId);
|
||||
|
||||
List<ShopProudictBookEntity> ss = shopProudictBookService.getBaseMapper().selectList(new QueryWrapper<ShopProudictBookEntity>()
|
||||
.eq("del_flag",0)
|
||||
.in("book_id",ids)
|
||||
.groupBy("proudict_id")
|
||||
.having("count(proudict_id) >="+ids.size())
|
||||
);
|
||||
|
||||
List<ShopProductEntity> frag = new ArrayList<>();
|
||||
|
||||
for (ShopProudictBookEntity spbe : ss){
|
||||
ShopProductEntity ca_sp = shopProductService.getById(spbe.getProudictId());
|
||||
frag.add(ca_sp);
|
||||
}
|
||||
|
||||
return R.ok().put("result",frag);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 信息
|
||||
* @param productId
|
||||
|
||||
Reference in New Issue
Block a user