Explorar el Código

修改添加列bug

huangyh hace 6 años
padre
commit
a2c4a9984c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      controllers/partial/SystemController.go

+ 1 - 1
controllers/partial/SystemController.go

@@ -2477,7 +2477,7 @@ func System_AddTableColUser(c *entitys.CtrlContext) {
 	// 如果存在,更新,不存在插入
 	if exit {
 		tabelColUser.Value = paramObj0.Value
-		_, err = c.Db.Update(&tabelColUser)
+		_, err = c.Db.ID(tabelColUser.Id).Cols("value").Update(&tabelColUser)
 		if err == nil {
 			c.Ctx.JSON(200, sysmodel.SysReturn{200, "", nil})
 		} else {