|
@@ -1021,6 +1021,6 @@ func GetHisLabelPrintInfoById(id string) (info HisLabelPrintInfo, err error) {
|
1021
|
1021
|
}
|
1022
|
1022
|
|
1023
|
1023
|
func GetPatientsInfoByIDCardNo(id_card_no string, org_id int64) (info models.Patients, err error) {
|
1024
|
|
- err = readDb.Model(&models.Patients{}).Where("Name = ? AND user_org_id = ?", id_card_no, org_id).First(&info).Error
|
|
1024
|
+ err = readDb.Model(&models.Patients{}).Where("id_card_no = ? AND user_org_id = ?", id_card_no, org_id).First(&info).Error
|
1025
|
1025
|
return
|
1026
|
1026
|
}
|