소스 검색

提交代码

陈少旭 10 달 전
부모
커밋
8eb3ea9fb4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      service/his_summary_service.go

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

@@ -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