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