Преглед на файлове

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

csx преди 2 години
родител
ревизия
8f7f31914d
променени са 2 файла, в които са добавени 21 реда и са изтрити 1 реда
  1. 5 0
      conf/app.conf
  2. 16 1
      controllers/zh/zh_his_api_controller.go

+ 5 - 0
conf/app.conf Целия файл

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

+ 16 - 1
controllers/zh/zh_his_api_controller.go Целия файл

@@ -1190,7 +1190,22 @@ func (c *ZHHisApiController) GetSettleInfo() {
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 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 1210
 	//saveLog()
1196 1211
 	saveLog(result, src_resquest, "2304", "住院结算")