|
@@ -159,9 +159,13 @@ type ResearcherIds struct {
|
|
|
type ResearcherGroup struct {
|
|
|
GroupId int `description:"分组id"`
|
|
|
GroupName string `description:"分组名称"`
|
|
|
- ResearcherList []*Researcher
|
|
|
+ AdminId int `description:"研究员id"`
|
|
|
+ RealName string `description:"研究员名称"`
|
|
|
+ RoleTypeCode string `description:"角色编码"`
|
|
|
+ ResearcherList []*ResearcherGroup
|
|
|
}
|
|
|
|
|
|
+
|
|
|
func GetResearcherGroup() (list []*ResearcherGroup, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := ` SELECT group_id,group_name FROM admin AS a
|
|
@@ -192,7 +196,7 @@ func GetChoiceResearcher(adminIds string) (list []*Researcher, err error) {
|
|
|
}
|
|
|
|
|
|
// GetResearcherV2 获取研究员列表(冻结的也要)
|
|
|
-func GetResearcherV2() (list []*Researcher, err error) {
|
|
|
+func GetResearcherV2() (list []*ResearcherGroup, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := ` SELECT * FROM admin AS a
|
|
|
WHERE a.role_type_code IN('researcher','rai_researcher','ficc_researcher','ficc_admin')
|