分类重新排序时没有正确更新JdSyncStatus修复

This commit is contained in:
gazebo
2019-12-02 16:21:59 +08:00
parent 0f636d2274
commit b6659baf72

View File

@@ -208,8 +208,8 @@ func ReorderCategories(ctx *jxcontext.Context, parentID int, categoryIDs []int,
}
for k, v := range categoryIDs {
catsMap[v].Seq = k
catsMap[v].JdSyncStatus |= model.SyncFlagModifiedMask
if _, err = dao.UpdateEntity(db, catsMap[v], "Seq"); err != nil {
catsMap[v].LastOperator = ctx.GetUserName()
if _, err = dao.UpdateEntity(db, catsMap[v]); err != nil {
break
}
}