2
This commit is contained in:
@@ -264,7 +264,7 @@ func (r *PharmacyService) GetPharmacy(pharmacyId int64) (*dto.PharmacyDto, error
|
||||
// GetPharmacyDoctorPage 获取药房绑定的医生列表-分页
|
||||
func (r *PharmacyService) GetPharmacyDoctorPage(req requests.GetPharmacyDoctorPage) (map[string]interface{}, error) {
|
||||
pharmacyId, err := strconv.ParseInt(req.PharmacyId, 10, 64)
|
||||
if err != nil || pharmacyId == 0 {
|
||||
if err != nil || pharmacyId < 0 {
|
||||
return nil, errors.New("药房id无效")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user