feat:完善入驻信息管理

This commit is contained in:
henry
2021-12-03 14:18:06 +08:00
parent 25ac50bb51
commit 851a2c1784
44 changed files with 192 additions and 190 deletions

View File

@ -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))
// 用户经纪人入驻信息

View File

@ -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))
// 过滤用户其他公司入驻信息

View File

@ -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()

View File

@ -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()

View File

@ -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()