修正bug

This commit is contained in:
hoteas 2022-10-21 04:28:51 +08:00
parent b680112fdb
commit 541c82410e
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ var TptProject = Proj{
continue
}
if (column["list"] == nil || column.GetBool("list")) && column.GetString("link") != "" {
if (column["info"] == nil || column.GetBool("info")) && column.GetString("link") != "" {
seStr := "id," + column.GetString("value")
if that.MakeCodeRouter[hotimeName].TableColumns[column.GetString("link")]["phone"] != nil {
seStr = seStr + ",phone"

View File

@ -208,7 +208,7 @@ func (that *MakeCode) Db2JSON(db *db.HoTimeDB, config Map) {
for _, ColumnName := range that.RuleConfig {
if (ColumnName.GetBool("strict") && coloum.GetString("name") == ColumnName.GetString("name")) ||
(!ColumnName.GetBool("strict") && strings.Contains(coloum.GetString("name"), ColumnName.GetString("name"))) ||
(info.GetString("name")+"."+coloum.GetString("name") == ColumnName.GetString("name")) {
(v.GetString("name")+"."+coloum.GetString("name") == ColumnName.GetString("name")) {
//全部都不需要则不加入
if ColumnName.GetBool("edit") == false && ColumnName.GetBool("list") == false && ColumnName.GetBool("info") == false {
coloum["notUse"] = true