|
@@ -154,6 +154,11 @@ func (p *ProductController) ProductList(productType string, permissionIds string
|
|
|
PageSize: p.PageInfo.PageSize,
|
|
|
}
|
|
|
list, err := productService.GetProductListByProductType(productType, permissionIdList, userInfo.Id)
|
|
|
+ if err != nil {
|
|
|
+ p.FailedResult("分页查询产品列表失败", result)
|
|
|
+ err = exception.NewWithException(exception.GetProductListFailed, err.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
if p.PageInfo.LatestId == 0 {
|
|
|
p.PageInfo.LatestId = pageRes.LatestId
|
|
|
p.PageInfo.Total = pageRes.Total
|