From 33a0c8c8953fa877a2444770d7cecce355fbd2f7 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 14 Sep 2024 10:46:14 +0800 Subject: [PATCH] 1 --- app/db/dbs_map.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/db/dbs_map.go b/app/db/dbs_map.go index 9043ca0..47e6cd5 100644 --- a/app/db/dbs_map.go +++ b/app/db/dbs_map.go @@ -93,7 +93,7 @@ func GetAllDatabaseDev() *[]model.DbMapping { if cfg.Local { // 本地调试 加快速度 //fmt.Println("notice:LOCAL TEST, only masterId:** 123456 ** available!") err = Db.Where("deleted_at != ? AND is_dev = '1' AND db_master_id=?", 1, 123456).Find(&m) - //err = Db.Where(" db_master_id=?", 36274003).Find(&m) + //err = Db.Where(" db_master_id=?", 74856566).Find(&m) } else { err = Db.Where("deleted_at != ? AND is_dev = '1' ", 1).Find(&m) } @@ -147,7 +147,7 @@ func SessionGetDatabaseByMasterID(Db *xorm.Session, id string) (*model.DbMapping func MapCrontabCfg(eg *xorm.Engine) *[]model.SysCfg { var c []model.SysCfg // 数据库查询如果有下划线会认为是一个任意字符 - if err := eg.Where("`key` LIKE 'cron\\_%' AND val != ''").Cols("`key`,`val`").Find(&c); err != nil || len(c) == 0 { + if err := eg.Where("`key` LIKE 'community_team_cron\\_%' AND val != ''").Cols("`key`,`val`").Find(&c); err != nil || len(c) == 0 { logx.Warn(err) return nil }