瀏覽代碼

提交代码

陈少旭 1 年之前
父節點
當前提交
bec650732e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/patient_service.go

+ 1 - 1
service/patient_service.go 查看文件

@@ -1664,7 +1664,7 @@ func MobileGetMonitorsWithPatient(orgID int64, keyword string, page int) ([]*mod
1664 1664
 }
1665 1665
 
1666 1666
 func GetPatientByKeyWord(orgID int64, keywords string) (patient []*models.Patients, err error) {
1667
-	db := readDb.Model(&models.Patients{}).Where("user_org_id=? and status=1", orgID)
1667
+	db := readDb.Model(&models.Patients{}).Where("user_org_id=? and status=1 and  lapseto = 1", orgID)
1668 1668
 
1669 1669
 	if len(keywords) > 0 {
1670 1670
 		likekey := "%" + keywords + "%"