|
|
@@ -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 {
|