|
@@ -415,7 +415,7 @@ func GetEdbInfoByIdList(edbInfoIdList []int) (items []*EdbInfo, err error) {
|
|
|
|
|
|
func GetEdbInfoBySourceAndTerminalCode(source int, terminalCode string) (item *EdbInfo, err error) {
|
|
|
o := global.DbMap[utils.DbNameIndex]
|
|
|
- sql := ` SELECT * FROM edb_info WHERE source = ? AND terminal_code = ? and frequency = '日度' and no_update = 0 limit 1 `
|
|
|
+ sql := ` SELECT * FROM edb_info WHERE source = ? and sub_source = 0 and terminal_code = ? and frequency = '日度' and no_update = 0 limit 1 `
|
|
|
err = o.Raw(sql, source, terminalCode).First(&item).Error
|
|
|
return
|
|
|
}
|