|
@@ -540,7 +540,7 @@ type ResearcherListResp struct {
|
|
|
}
|
|
|
|
|
|
func GetResearcherEntry() (items []*Researcher, err error) {
|
|
|
- sql := ` SELECT admin_id,admin_name,real_name,mobile,0 as target_count FROM admin WHERE role_type=1 `
|
|
|
+ sql := ` SELECT admin_id,admin_name,real_name,mobile,0 as target_count FROM "admin" WHERE role_type=1 `
|
|
|
err = global.DmSQL["edb"].Raw(sql).Find(&items).Error
|
|
|
researchLen := len(items)
|
|
|
for i := 0; i < researchLen; i++ {
|
|
@@ -556,7 +556,7 @@ func GetResearcherEntry() (items []*Researcher, err error) {
|
|
|
}
|
|
|
|
|
|
func GetResearcherEntryByMobile(mobile string) (items []*Researcher, err error) {
|
|
|
- sql := ` SELECT admin_id,admin_name,real_name,mobile,0 as target_count FROM admin WHERE role_type=1 `
|
|
|
+ sql := ` SELECT admin_id,admin_name,real_name,mobile,0 as target_count FROM "admin" WHERE role_type=1 `
|
|
|
if mobile != "" {
|
|
|
sql += ` AND mobile IN(` + mobile + `)`
|
|
|
}
|