diff --git a/api/dao/User.go b/api/dao/User.go index a02b0d5..ebdd44a 100644 --- a/api/dao/User.go +++ b/api/dao/User.go @@ -186,8 +186,11 @@ func (r *UserDao) GetUserPageSearch(req requests.GetUserPage, page, pageSize int if req.IsInfoComplete != nil { subQuery := global.Db.Model(&model.UserInfo{}). Where("user_info.user_id = user.user_id"). - Where("user_info.nation_id is not NULL"). - Where("user_info.disease_class_id is not NULL").Select("1") + Where("user_info.height != '' "). + Where("user_info.weight != '' "). + Where("user_info.is_family_history is not NULL"). + Where("user_info.province_id is not NULL"). + Select("1") query = query.Where("EXISTS (?)", subQuery) }