fix
This commit is contained in:
@@ -58,7 +58,7 @@ func (l *GetSizeByProductLogic) GetSizeByProduct() (resp *types.Response) {
|
||||
productIds = append(productIds, fmt.Sprintf("%d", v.Id))
|
||||
}
|
||||
productSizeModel := model.NewFsProductSizeModel(l.svcCtx.MysqlConn)
|
||||
productSizeList, err := productSizeModel.FindAllByProductIds(l.ctx, productIds, 2)
|
||||
productSizeList, err := productSizeModel.GetAllByProductIds(l.ctx, productIds, "sort-desc")
|
||||
if err != nil {
|
||||
logx.Error(err)
|
||||
return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to get product size list")
|
||||
|
||||
Reference in New Issue
Block a user