Browse Source

提交代码

陈少旭 8 months ago
parent
commit
8eb3ea9fb4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/his_summary_service.go

+ 1 - 1
service/his_summary_service.go View File

@@ -297,7 +297,7 @@ func GetHisLastOrder(org_id int64, patient_id int64, start_time int64, end_time
297 297
 
298 298
 	order := models.HisOrder{}
299 299
 
300
-	err := XTReadDB().Where("user_org_id = ? and patient_id = ? and ctime>=? and ctime<=? and fa_piao_number<> ''", org_id, patient_id, start_time, end_time).Last(&order).Error
300
+	err := XTReadDB().Where("user_org_id = ? and patient_id = ? and ctime>=? and ctime<=? and status = 1", org_id, patient_id, start_time, end_time).Last(&order).Error
301 301
 	return order, err
302 302
 }
303 303