Forráskód Böngészése

字典获取bug修复

aries.zhang 5 éve
szülő
commit
d704b1348e
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      controllers/partial/SystemController.go

+ 3 - 2
controllers/partial/SystemController.go

@@ -4,12 +4,13 @@ import (
 	"encoding/json"
 	"errors"
 	"fmt"
+	"html/template"
+
 	"git.qianqiusoft.com/qianqiusoft/light-apiengine/entitys"
 	"git.qianqiusoft.com/qianqiusoft/light-apiengine/logs"
 	"git.qianqiusoft.com/qianqiusoft/light-apiengine/models"
 	sysmodel "git.qianqiusoft.com/qianqiusoft/light-apiengine/models"
 	sysutils "git.qianqiusoft.com/qianqiusoft/light-apiengine/utils"
-	"html/template"
 
 	"strconv"
 	"strings"
@@ -2632,7 +2633,7 @@ func System_GetOptionsetByCode(c *entitys.CtrlContext) {
 	code := c.Ctx.Query("code")
 
 	var option sysmodel.SysOptionset
-	exit, err := c.Db.Table(new(sysmodel.SysOptionset)).Where("code = ?", code).Get(&option)
+	exit, err := c.Db.Table(new(sysmodel.SysOptionset)).Where("code=? and del_flag=0", code).Get(&option)
 	if exit && err == nil {
 		c.Ctx.JSON(200, sysmodel.SysReturn{200, "", option})
 	} else {