feat:完善入驻信息管理
This commit is contained in:
@ -26,7 +26,7 @@ func (c *Agent) Launch(params *BasicParams, other *config.IdentityForAgent) erro
|
||||
}
|
||||
mManageAgent := model.NewManageAgent()
|
||||
// 查询相应的经纪人入驻信息
|
||||
isExist, err := model2.FirstField(mManageAgent.ManageAgent, []string{"id", "status"},
|
||||
isExist, err := model2.FirstField(mManageAgent.ManageAgent, []string{"id", "examine_status"},
|
||||
model2.NewWhere("id_card", other.IDCard), model2.NewWhere("local", c.local))
|
||||
|
||||
// 用户经纪人入驻信息
|
||||
|
@ -26,7 +26,7 @@ func (c *Company) Launch(params *BasicParams, inviterID uint64, other *config.Id
|
||||
}
|
||||
mManageCompany := model.NewManageCompany()
|
||||
// 查询相应的企业入驻信息
|
||||
isExist, err := model2.FirstField(mManageCompany.ManageCompany, []string{"id", "status"},
|
||||
isExist, err := model2.FirstField(mManageCompany.ManageCompany, []string{"id", "examine_status"},
|
||||
model2.NewWhere("code", params.Code), model2.NewWhere("local", c.local))
|
||||
|
||||
// 过滤用户其他公司入驻信息
|
||||
|
@ -27,7 +27,7 @@ func (c *Expert) Launch(params *BasicParams, other *config.IdentityForExpert) er
|
||||
}
|
||||
mManageExpert := model.NewManageExpert()
|
||||
// 查询相应专家入驻信息
|
||||
isExist, err := model2.FirstField(mManageExpert.ManageExpert, []string{"id", "status"},
|
||||
isExist, err := model2.FirstField(mManageExpert.ManageExpert, []string{"id", "examine_status"},
|
||||
model2.NewWhere("mobile", params.Mobile), model2.NewWhere("local", c.local))
|
||||
|
||||
mUserExpert := model.NewUserExpert()
|
||||
|
@ -26,7 +26,7 @@ func (c *Laboratory) Launch(params *BasicParams, other *config.IdentityForLabora
|
||||
}
|
||||
mManageLaboratory := model.NewManageLaboratory()
|
||||
// 查询相应专家入驻信息
|
||||
isExist, err := model2.FirstField(mManageLaboratory.ManageLaboratory, []string{"id", "status"},
|
||||
isExist, err := model2.FirstField(mManageLaboratory.ManageLaboratory, []string{"id", "examine_status"},
|
||||
model2.NewWhere("code", params.Code), model2.NewWhere("local", c.local))
|
||||
|
||||
mUserLaboratory := model.NewUserLaboratory()
|
||||
|
@ -26,7 +26,7 @@ func (c *Research) Launch(params *BasicParams, other *config.IdentityForResearch
|
||||
}
|
||||
mManageResearch := model.NewManageResearch()
|
||||
// 查询相应专家入驻信息
|
||||
isExist, err := model2.FirstField(mManageResearch.ManageResearch, []string{"id", "status"},
|
||||
isExist, err := model2.FirstField(mManageResearch.ManageResearch, []string{"id", "examine_status"},
|
||||
model2.NewWhere("code", params.Code), model2.NewWhere("local", c.local))
|
||||
|
||||
mUserResearch := model.NewUserResearch()
|
||||
|
Reference in New Issue
Block a user