huangjiajun 1 month ago
parent
commit
33a0c8c895
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/db/dbs_map.go

+ 2
- 2
app/db/dbs_map.go View File

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


Loading…
Cancel
Save