瀏覽代碼

耗材参数

XMLWAN 3 年之前
父節點
當前提交
6ca72d4c21
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/mobile_dialysis_service.go

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

@@ -1972,7 +1972,7 @@ func GetPatientDialysisRecordList(patientid int64, startime int64, endtime int64
1972 1972
 	table := XTReadDB().Table("xt_schedule as s")
1973 1973
 	fmt.Println(table)
1974 1974
 	if patientid > 0 {
1975
-		db = db.Where("x.patient_id")
1975
+		db = db.Where("x.patient_id = ?", patientid)
1976 1976
 	}
1977 1977
 	if startime > 0 {
1978 1978
 		db = db.Where("x.dialysis_date>=?", startime)