瀏覽代碼

体积小

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

+ 2 - 1
service/xcx_mobile_api_service.go 查看文件

@@ -271,7 +271,8 @@ func GetDoctorAdviceGroup(patient_id int64, startime int64, endtime int64) (advi
271 271
 }
272 272
 
273 273
 func GetHisDoctorAdviceGroup(patient_id int64, startime int64, endtime int64) (advice []*models.XcxHisDoctorAdviceInfo, err error) {
274
-
274
+	err = XTReadDB().Where("patient_id = ? and advice_date >=? and advice_date<=? and status = 1", patient_id, startime, endtime).Group("advice_date").Find(&advice).Error
275
+	return advice, err
275 276
 }
276 277
 
277 278
 func GetDoctorAdvice(patient_id int64, startime int64, endtime int64) (advice []*models.XcxDoctorAdvice, err error) {