XMLWAN 4 anni fa
parent
commit
b371934445
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      service/common_service.go

+ 2 - 2
service/common_service.go Vedi File

@@ -3332,7 +3332,7 @@ func GetModeIdCount(startime int64, endtime int64, orgid int64, page int64, limi
3332 3332
 	if endtime > 0 {
3333 3333
 		db = db.Where("o.dialysis_date<=?", endtime)
3334 3334
 	}
3335
-	offset := (page - 1) * limit
3336
-	err = db.Group(" s.patient_id,s.mode_id").Select("s.mode_id,	s.patient_id,	count(o.id) as count").Joins("left join xt_schedule as s on s.patient_id = o.patient_id").Where("s.schedule_date = o.dialysis_date and s.status =1 ").Offset(offset).Limit(limit).Scan(&order).Error
3335
+	//offset := (page - 1) * limit
3336
+	err = db.Group(" s.patient_id,s.mode_id").Select("s.mode_id,	s.patient_id,	count(o.id) as count").Joins("left join xt_schedule as s on s.patient_id = o.patient_id").Where("s.schedule_date = o.dialysis_date and s.status =1 ").Scan(&order).Error
3337 3337
 	return order, err
3338 3338
 }