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