up
This commit is contained in:
@@ -150,6 +150,11 @@ func UpdateCategory(ctx *jxcontext.Context, categoryID int, payload map[string]i
|
||||
if err = dao.GetEntity(db, cat); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
for k, v := range payload {
|
||||
if v == nil {
|
||||
delete(payload, k)
|
||||
}
|
||||
}
|
||||
valid := dao.StrictMakeMapByStructObject(payload, cat, userName)
|
||||
if len(valid) > 0 {
|
||||
// syncStatus := 0
|
||||
|
||||
Reference in New Issue
Block a user