ソースを参照

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

csx 2 年 前
コミット
d257d4e485
共有2 個のファイルを変更した10 個の追加10 個の削除を含む
  1. 3 3
      controllers/zh/zh_his_api_controller.go
  2. 7 7
      main.go

+ 3 - 3
controllers/zh/zh_his_api_controller.go ファイルの表示

@@ -505,7 +505,7 @@ func (c *ZHHisApiController) GetZHPatientInfo() {
505 505
 			//请求内网数据
506 506
 			api := "http://172.16.13.254:9532/" + "nmyb/1101?cert_no=" + patient.IdCardNo +
507 507
 				"&org_name=" + miConfig.OrgName + "&doctor=" + role.UserName + "&fixmedins_code=" + miConfig.Code +
508
-				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&card_sn=" + "" + "&certificates=" + strconv.FormatInt(certificates, 10) + "&name=" + patient.Name
508
+				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(2, 10) + "&card_sn=" + "" + "&certificates=" + strconv.FormatInt(1, 10) + "&name=" + patient.Name
509 509
 
510 510
 			resp, requestErr := http.Get(api)
511 511
 			if requestErr != nil {
@@ -535,7 +535,7 @@ func (c *ZHHisApiController) GetZHPatientInfo() {
535 535
 			saveLog(result_log, request_log, "1101", "人员基本信息获取")
536 536
 
537 537
 		} else {
538
-			result, request_log, result_log = service.ZHGdyb1101(patient.IdCardNo, miConfig.OrgName, role.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, "", certificates, name)
538
+			result, request_log, result_log = service.ZHGdyb1101(patient.IdCardNo, miConfig.OrgName, role.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, 2, "", 1, patient.Name)
539 539
 			saveLog(result_log, request_log, "1101", "人员基本信息获取")
540 540
 
541 541
 		}
@@ -2267,7 +2267,7 @@ func (c *ZHHisApiController) ZHRefund() {
2267 2267
 		}
2268 2268
 
2269 2269
 		if res.Infcode == 0 {
2270
-			err := service.UpdataOrderStatusThree(order_id, order.Number, adminUser.CurrentOrgId, src_resquest, result)
2270
+			err := service.UpdataOrderStatusThree(order_id, order.Number, adminUser.CurrentOrgId, "", result)
2271 2271
 			//不同地区退费流程不一样,肇庆那边退费就包括撤销出院,内蒙古退费不包括撤销明细,所以下面需要根据不同情况进行判断
2272 2272
 			if miConfig.UserOrgId == 10215 {
2273 2273
 				record.OutHospitalStatus = 0

+ 7 - 7
main.go ファイルの表示

@@ -5,7 +5,7 @@ import (
5 5
 	"fmt"
6 6
 	"gdyb/models"
7 7
 	_ "gdyb/routers"
8
-	//"gdyb/service"
8
+	"gdyb/service"
9 9
 	"github.com/astaxie/beego"
10 10
 	"github.com/qiniu/api.v7/auth/qbox"
11 11
 	"github.com/qiniu/api.v7/storage"
@@ -15,12 +15,12 @@ import (
15 15
 )
16 16
 
17 17
 func init() {
18
-	//service.ConnectDB()
19
-	//org_id, _ := beego.AppConfig.Int64("org_id")
20
-	//
21
-	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
22
-	//CreateLog(miConfig)
23
-	//UploadLog(miConfig)
18
+	service.ConnectDB()
19
+	org_id, _ := beego.AppConfig.Int64("org_id")
20
+
21
+	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
22
+	CreateLog(miConfig)
23
+	UploadLog(miConfig)
24 24
 
25 25
 	//UploadSettleList(org_id)
26 26
 }