1
This commit is contained in:
parent
f03c276746
commit
6b4e8545b3
@ -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)
|
||||
}
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ func GetProductDto(m *model.Product) *ProductDto {
|
||||
IsDelete: m.IsDelete,
|
||||
PrescriptionNum: m.PrescriptionNum,
|
||||
ProductName: m.ProductName,
|
||||
CommonName: m.ProductName,
|
||||
CommonName: m.CommonName,
|
||||
ProductPrice: m.ProductPrice,
|
||||
MnemonicCode: m.MnemonicCode,
|
||||
ProductType: m.ProductType,
|
||||
|
||||
@ -27,8 +27,8 @@ type GetHospitalPage struct {
|
||||
HospitalName string `json:"hospital_name" form:"hospital_name" label:"医院名称"`
|
||||
HospitalLevelName string `json:"hospital_level_name" form:"hospital_level_name" label:"医院等级名称"`
|
||||
ProvinceId int `json:"province_id" form:"province_id" label:"省份id"`
|
||||
CityId int `json:"city_id" form:"city_id" label:"城市id"`
|
||||
CountyId int `json:"county_id" form:"county_id" label:"区县id"`
|
||||
CityId *int `json:"city_id" form:"city_id" label:"城市id"`
|
||||
CountyId *int `json:"county_id" form:"county_id" label:"区县id"`
|
||||
}
|
||||
|
||||
// AddHospital 新增医院
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user