|
@@ -137,7 +137,13 @@ func RefreshDataFromPb(wg *sync.WaitGroup) (err error) {
|
|
|
}()
|
|
|
var condition string
|
|
|
var pars []interface{}
|
|
|
- condition += " AND source=? AND frequency in ('日度','周度') "
|
|
|
+ var frequencyStr string
|
|
|
+ if utils.PbRefreshFrequency == "" {
|
|
|
+ frequencyStr = "'日度','周度'"
|
|
|
+ } else {
|
|
|
+ frequencyStr = utils.PbRefreshFrequency
|
|
|
+ }
|
|
|
+ condition += " AND source=? AND frequency in (" + frequencyStr + ") "
|
|
|
pars = append(pars, utils.DATA_SOURCE_PB)
|
|
|
|
|
|
items, err := data_manage.GetEdbInfoByCondition(condition, pars, 0)
|