Pārlūkot izejas kodu

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

csx 2 gadus atpakaļ
vecāks
revīzija
8f7f31914d
2 mainītis faili ar 21 papildinājumiem un 1 dzēšanām
  1. 5 0
      conf/app.conf
  2. 16 1
      controllers/zh/zh_his_api_controller.go

+ 5 - 0
conf/app.conf Parādīt failu

57
 # gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
57
 # gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
58
 #内蒙古
58
 #内蒙古
59
 gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
59
 gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60
+#韶关
60
 # gdyb_paasid = "sg03_prd"
61
 # gdyb_paasid = "sg03_prd"
62
+#江门
61
 #gdyb_paasid = "jm_sc_yjyy"
63
 #gdyb_paasid = "jm_sc_yjyy"
64
+#珠海
62
 # gdyb_paasid="zh_prd_yrojyy"
65
 # gdyb_paasid="zh_prd_yrojyy"
66
+#深圳
63
 # gdyb_paasid = "sz_prd_yjyy"
67
 # gdyb_paasid = "sz_prd_yjyy"
68
+#肇庆
64
 # gdyb_paasid = "zq_prd_yjyy"
69
 # gdyb_paasid = "zq_prd_yjyy"
65
 
70
 
66
 
71
 

+ 16 - 1
controllers/zh/zh_his_api_controller.go Parādīt failu

1190
 			}
1190
 			}
1191
 		}
1191
 		}
1192
 	}
1192
 	}
1193
-	allTotal := fmt.Sprintf("%.2f", total)
1193
+	//allTotal := fmt.Sprintf("%.2f", total)
1194
+
1195
+	var allTotal string
1196
+	if record.OutHospitalStatus == 0 && order.ID == 0 {
1197
+		orders, _ := service.GetHisOrderInfoByNumberFour(record.Number)
1198
+		var total float64
1199
+		for _, item := range orders {
1200
+			total = total + item.DetItemFeeSumamt
1201
+		}
1202
+		allTotal = fmt.Sprintf("%.4f", total)
1203
+
1204
+	} else {
1205
+
1206
+		allTotal = fmt.Sprintf("%.4f", order.MedfeeSumamt)
1207
+
1208
+	}
1194
 	result, src_resquest = service.ZHGdyb2304(record.PsnNo, record.Number, chrg_bchno, cert_no, record.InsutypeType, allTotal, miConfig.OrgName, roles.UserName, miConfig.Code, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, "0", record.IdCardType, 0, 0, 0, 0, record.Certificates)
1209
 	result, src_resquest = service.ZHGdyb2304(record.PsnNo, record.Number, chrg_bchno, cert_no, record.InsutypeType, allTotal, miConfig.OrgName, roles.UserName, miConfig.Code, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, "0", record.IdCardType, 0, 0, 0, 0, record.Certificates)
1195
 	//saveLog()
1210
 	//saveLog()
1196
 	saveLog(result, src_resquest, "2304", "住院结算")
1211
 	saveLog(result, src_resquest, "2304", "住院结算")