This commit is contained in:
laodaming
2023-06-09 12:07:54 +08:00
parent 78e5b2cc59
commit 2a18f0c21a
19 changed files with 573 additions and 16 deletions

View File

@@ -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")