xyxie 1 年之前
父節點
當前提交
8389e8852f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/crm/chart_permission.go

+ 1 - 1
services/crm/chart_permission.go

@@ -153,7 +153,7 @@ func EditChartPermission(req crm.PermissionEditReq) (err error, errMsg string) {
 	item.ParentId = req.ParentId
 	item.ClassifyName = parentPermissionName
 	item.LastUpdatedTime = time.Now()
-	err = item.Update([]string{"PermissionName", "Enabled", "IsPublic", "ClassifyName", "LastUpdatedTime"})
+	err = item.Update([]string{"PermissionName", "Enabled", "IsPublic", "ParentId", "ClassifyName", "LastUpdatedTime"})
 	if err != nil {
 		errMsg = "更新失败"
 		err = fmt.Errorf("更新品种失败, Err: " + err.Error())