2
This commit is contained in:
parent
abfd7bd5cd
commit
d25d4a3c3f
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user