|
@@ -676,6 +676,7 @@ func GetDialysisGatherList(keywords string, limit int64, page int64, partition_i
|
676
|
676
|
return db.Where("user_org_id = ? and status = 1 and assessment_date < ?", orgID, scheduleDate)
|
677
|
677
|
}).
|
678
|
678
|
Preload("XtDoctorAdvice", "status = 1 AND user_org_id = ? and advice_date = ? and advice_type = 1", orgID, scheduleDate).
|
|
679
|
+ Preload("LongDoctorAdvice", "status = 1 AND user_org_id = ? and advice_type =1", orgID).
|
679
|
680
|
Preload("XtDoctorAdviceOne", "status = 1 AND user_org_id = ? and advice_date = ? and (advice_type = 2 or advice_type =3)", orgID, scheduleDate).
|
680
|
681
|
Preload("DeviceNumber.Zone", "status = 1 AND org_id = ?", orgID).Find(&schedule).Error
|
681
|
682
|
} else {
|
|
@@ -686,6 +687,7 @@ func GetDialysisGatherList(keywords string, limit int64, page int64, partition_i
|
686
|
687
|
Preload("XtAssessmentBeforeDislysis", "status = 1 AND user_org_id = ? and assessment_date = ?", orgID, scheduleDate).
|
687
|
688
|
Preload("ReceiveTreatmentAsses", "status = 1 AND user_org_id = ? and record_date = ?", orgID, scheduleDate).
|
688
|
689
|
Preload("XtAssessmentAfterDislysis", "status = 1 AND user_org_id = ? and assessment_date = ?", orgID, scheduleDate).
|
|
690
|
+ Preload("LongDoctorAdvice", "status = 1 AND user_org_id = ? and advice_type =1", orgID).
|
689
|
691
|
Preload("XtDoctorAdvice", "status = 1 AND user_org_id = ? and advice_date = ? and advice_type = 1", orgID, scheduleDate).
|
690
|
692
|
Preload("XtDoctorAdviceOne", "status = 1 AND user_org_id = ? and advice_date = ? and (advice_type = 2 or advice_type =3)", orgID, scheduleDate).
|
691
|
693
|
Preload("LastAfterWeight", func(db *gorm.DB) *gorm.DB {
|