This commit is contained in:
2024-07-25 09:22:18 +08:00
parent f03c276746
commit 6b4e8545b3
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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)
}