소스 검색

提交代码

陈少旭 1 년 전
부모
커밋
5180bae95c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      service/statistis_qc_service.go

+ 1 - 1
service/statistis_qc_service.go 파일 보기

@@ -643,7 +643,7 @@ func GetPrescriptionByAnticoagulant(page int64, limit int64, orgid int64, antico
643 643
 
644 644
 func GetPrescriptionByDialyzer(page int64, limit int64, orgid int64, dialyzer string, start_time int64, end_time int64) (solution []*models.DialysisPrescription, total int64, err error) {
645 645
 
646
-	db := XTReadDB().Model(&models.DialysisPrescription{}).Where("status = 1")
646
+	db := XTReadDB().Model(&models.DialysisPrescription{}).Preload("QCPatients", "status = 1 and user_org_id = ?", orgid).Where("status = 1")
647 647
 	if len(dialyzer) > 0 {
648 648
 		db = db.Where("dialysis_dialyszers = ?", dialyzer)
649 649
 	}