|
@@ -3432,10 +3432,10 @@ func (c *HisApiController) Refund() {
|
3432
|
3432
|
|
3433
|
3433
|
func (c *HisApiController) RefundNumber() {
|
3434
|
3434
|
record_time := c.GetString("record_time")
|
3435
|
|
- patient_id, _ := c.GetInt64("patient_id")
|
|
3435
|
+ //patient_id, _ := c.GetInt64("patient_id")
|
3436
|
3436
|
admin_user_id, _ := c.GetInt64("admin_user_id")
|
3437
|
3437
|
|
3438
|
|
- //his_patient_id, _ := c.GetInt64("id")
|
|
3438
|
+ his_patient_id, _ := c.GetInt64("id")
|
3439
|
3439
|
|
3440
|
3440
|
timeLayout := "2006-01-02"
|
3441
|
3441
|
loc, _ := time.LoadLocation("Local")
|
|
@@ -3447,9 +3447,9 @@ func (c *HisApiController) RefundNumber() {
|
3447
|
3447
|
return
|
3448
|
3448
|
}
|
3449
|
3449
|
recordDateTime := theTime.Unix()
|
3450
|
|
- his, _ := service.GetVMHisPatientInfo(adminUser.CurrentOrgId, patient_id, recordDateTime)
|
|
3450
|
+ //his, _ := service.GetVMHisPatientInfo(adminUser.CurrentOrgId, patient_id, recordDateTime)
|
3451
|
3451
|
|
3452
|
|
- //his, _ := service.GetNewHisPatientRecord(adminUser.CurrentOrgId, patient_id)
|
|
3452
|
+ his, _ := service.GetNewHisPatientRecord(adminUser.CurrentOrgId, his_patient_id)
|
3453
|
3453
|
//patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, patient_id, recordDateTime)
|
3454
|
3454
|
//order, _ := service.GetHisOrderByID(order_id)
|
3455
|
3455
|
miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
|
|
@@ -3492,7 +3492,7 @@ func (c *HisApiController) RefundNumber() {
|
3492
|
3492
|
|
3493
|
3493
|
if res2.Infcode == 0 {
|
3494
|
3494
|
//err := service.UpdataOrderStatus(order_id, number, adminUser.CurrentOrgId)
|
3495
|
|
- service.UpdataRegStatus(patient_id, recordDateTime, adminUser.CurrentOrgId)
|
|
3495
|
+ service.UpdataRegStatusTwo(his_patient_id, recordDateTime, adminUser.CurrentOrgId)
|
3496
|
3496
|
|
3497
|
3497
|
//err := service.UpdataRegStatus2()
|
3498
|
3498
|
|