This commit is contained in:
haomingming
2026-09-07 16:44:34 +08:00
parent 3205005b9a
commit b74a8aa898
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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无效")
}