feat:完善信息
This commit is contained in:
@ -35,7 +35,7 @@ var examineHandle = map[int]func(id, tenantID uint64) (*ExamineManageInfo, error
|
||||
func checkManage(IModel model2.IModel, id uint64) error {
|
||||
IModel.SetID(id)
|
||||
|
||||
if isExist, err := model2.FirstField(IModel, []string{"id", "tenant_id", "examine_status"}); err != nil {
|
||||
if isExist, err := model2.First(IModel); err != nil {
|
||||
return err
|
||||
} else if !isExist {
|
||||
return errors.New("操作错误,数据信息不存在")
|
||||
@ -231,6 +231,7 @@ func (c *Examine) Launch(id uint64, identity, status int, remark string, params
|
||||
}
|
||||
// 存放es中
|
||||
(&ESParams{
|
||||
ID: data.IModel.GetID(),
|
||||
Identity: identity, Name: data.Name, Keywords: data.Keywords,
|
||||
Industrys: data.Industrys, Researchs: data.Researchs,
|
||||
}).Set()
|
||||
|
Reference in New Issue
Block a user