Selaa lähdekoodia

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

csx 4 vuotta sitten
vanhempi
commit
88aca17b6e
1 muutettua tiedostoa jossa 12 lisäystä ja 2 poistoa
  1. 12 2
      controllers/sz/sz_his_api_controller.go

+ 12 - 2
controllers/sz/sz_his_api_controller.go Näytä tiedosto

@@ -869,7 +869,7 @@ func (c *SZHisApiController) GetSettleInfo() {
869 869
 						DoctorCode:         doctor_code,
870 870
 						Total:              detItemFeeSumamt,
871 871
 						DoseCode:           "",
872
-						Spec:               "",
872
+						Spec:               "",
873 873
 					}
874 874
 					customs = append(customs, cus)
875 875
 				}
@@ -1523,6 +1523,11 @@ func (c *SZHisApiController) GetSettleAccounts() {
1523 1523
 	var order models.HisOrder
1524 1524
 	order, _ = service.GetHisOrderByID(order_id)
1525 1525
 
1526
+	patient, _ := service.GetPatientByIDTwo(adminUser.CurrentOrgId, patient_id)
1527
+
1528
+	patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, patient_id, recordDateTime)
1529
+	adminRole_two, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, patientPrescription.DoctorId)
1530
+
1526 1531
 	if order.ID == 0 {
1527 1532
 		order, _ = service.GetHisOrderThree(recordDateTime, patient_id, adminUser.CurrentOrgId)
1528 1533
 
@@ -1571,7 +1576,12 @@ func (c *SZHisApiController) GetSettleAccounts() {
1571 1576
 		}
1572 1577
 		if res.Transreturncode == "00000000" {
1573 1578
 			c.ServeSuccessJSON(map[string]interface{}{
1574
-				"result": res,
1579
+				"result":       res,
1580
+				"org_name":     miConfig.OrgName,
1581
+				"org_code":     miConfig.Code,
1582
+				"patient_name": patient.Name,
1583
+				"doctor_code":  adminRole_two.DoctorCode,
1584
+				"doctor_name":  doctor_name,
1575 1585
 			})
1576 1586
 		} else {
1577 1587
 			c.ServeSuccessJSON(map[string]interface{}{