作者 tangxuhui

修复:删除人员时出现的错误

... ... @@ -611,6 +611,7 @@ func DeleteEmployeeData(data DeleteUserData) error {
deleteUserIds = append(deleteUserIds, userId)
}
}
if len(deleteUserIds) > 0 {
_, err = o.QueryTable(&models.User{}).
Filter("id__in", deleteUserIds).
Update(orm.Params{
... ... @@ -621,6 +622,7 @@ func DeleteEmployeeData(data DeleteUserData) error {
log.Error("更新user数据失败:%s", err)
return errors.New("删除user_company数据失败")
}
}
o.Commit()
return nil
}
... ...