csx 2 years ago
parent
commit
4102a482ff
2 changed files with 2 additions and 1 deletions
  1. 1 1
      service/bl_service.go
  2. 1 0
      service/ystx_service.go

+ 1 - 1
service/bl_service.go View File

1021
 }
1021
 }
1022
 
1022
 
1023
 func GetPatientsInfoByIDCardNo(id_card_no string, org_id int64) (info models.Patients, err error) {
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
 	return
1025
 	return
1026
 }
1026
 }

+ 1 - 0
service/ystx_service.go View File

15
 	"io/ioutil"
15
 	"io/ioutil"
16
 	"net/http"
16
 	"net/http"
17
 	"net/url"
17
 	"net/url"
18
+	"os"
18
 	"strconv"
19
 	"strconv"
19
 	"strings"
20
 	"strings"
20
 	"time"
21
 	"time"