1
This commit is contained in:
+2
-2
@@ -114,11 +114,11 @@ func (r *HospitalDao) GetHospitalPageSearch(req requests.GetHospitalPage, page,
|
||||
query = query.Where("province_id = ?", req.ProvinceId)
|
||||
}
|
||||
|
||||
if req.CityId != 0 {
|
||||
if req.CityId != nil {
|
||||
query = query.Where("city_id = ?", req.CityId)
|
||||
}
|
||||
|
||||
if req.CountyId != 0 {
|
||||
if req.CountyId != nil {
|
||||
query = query.Where("county_id = ?", req.CountyId)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user