Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 years ago
parent
commit
c7a845705e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/zh_his_service.go

+ 1 - 1
service/zh_his_service.go View File

@@ -983,7 +983,7 @@ func UpDateOrderInfoStatus(patient_id int64, record_date int64, org_id int64) (e
983 983
 }
984 984
 
985 985
 func UpDatePrescriptionOrderStatusTwo(patient_id int64, record_date int64, org_id int64) (err error) {
986
-	err = writeDb.Model(&models.HisPrescription{}).Where("user_org_id = ? AND status = 1 AND record_date = ? AND patient_id = ? AND p_type = 1", org_id, record_date, record_date, patient_id).Updates(map[string]interface{}{"order_status": 1}).Error
986
+	err = writeDb.Model(&models.HisPrescription{}).Where("user_org_id = ? AND status = 1 AND record_date = ? AND patient_id = ? AND p_type = 1", org_id, record_date, patient_id).Updates(map[string]interface{}{"order_status": 1}).Error
987 987
 	return
988 988
 }
989 989