- fix bug in ReorderCategories
This commit is contained in:
@@ -93,7 +93,11 @@ func (p *PurchaseHandler) ReorderCategories(db *dao.DaoDB, parentCatID int, user
|
||||
parentJDID = cat.JdID
|
||||
}
|
||||
var cats []*model.SkuCategory
|
||||
if err = dao.GetRows(db, &cats, "SELECT * FROM sku_category WHERE parent_id = ? ORDER BY seq", parentCatID); err == nil {
|
||||
if err = dao.GetRows(db, &cats, `
|
||||
SELECT *
|
||||
FROM sku_category
|
||||
WHERE parent_id = ? AND deleted_at = ?
|
||||
ORDER BY seq`, parentCatID, utils.DefaultTimeValue); err == nil {
|
||||
jdCatIDs := make([]int64, len(cats))
|
||||
for k, v := range cats {
|
||||
jdCatIDs[k] = v.JdID
|
||||
|
||||
Reference in New Issue
Block a user