Browse Source

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

csx 2 years ago
parent
commit
88cc100c93
2 changed files with 3 additions and 3 deletions
  1. 1 1
      controllers/sg/his_api_controller.go
  2. 2 2
      service/gdyb_service.go

+ 1 - 1
controllers/sg/his_api_controller.go View File

@@ -4531,7 +4531,7 @@ func (c *HisApiController) GetRegisterInfo() {
4531 4531
 			var result string
4532 4532
 			var requestLog string
4533 4533
 			if miConfig.UserOrgId == 10138 {
4534
-				result, requestLog = service.Gdyb1101D(patient.IdCardNo, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, "", strconv.FormatInt(certificates, 10), name)
4534
+				result, requestLog = service.Gdyb1101D(patient.IdCardNo, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, "", strconv.FormatInt(certificates, 10), name, record_time)
4535 4535
 			} else {
4536 4536
 				result, requestLog = service.Gdyb1101(patient.IdCardNo, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, "", strconv.FormatInt(certificates, 10), name)
4537 4537
 			}

+ 2 - 2
service/gdyb_service.go View File

@@ -4412,7 +4412,7 @@ func GetMac() string {
4412 4412
 }
4413 4413
 
4414 4414
 // 人员基本信息
4415
-func Gdyb1101D(certNo string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, id_card_type int64, card_sn string, certificates string, psn_name string) (string, string) {
4415
+func Gdyb1101D(certNo string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, id_card_type int64, card_sn string, certificates string, psn_name string, record_date string) (string, string) {
4416 4416
 	//生成签名
4417 4417
 	nonce := GetRandomString(32)
4418 4418
 	timestamp := time.Now().Unix()
@@ -4453,7 +4453,7 @@ func Gdyb1101D(certNo string, org_name string, doctor string, fixmedins_code str
4453 4453
 	}
4454 4454
 
4455 4455
 	inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
4456
-	inputData["begntime"] = ""          // 开始时间
4456
+	inputData["begntime"] = record_date // 开始时间
4457 4457
 	inputData["psn_name"] = psn_name    // 人员姓名
4458 4458
 	input["data"] = inputData
4459 4459
 	inputMessage["input"] = input //交易输入