瀏覽代碼

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

csx 3 年之前
父節點
當前提交
d47a3eb8aa
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 0 1
      controllers/js/jsyb_controller.go
  2. 8 1
      controllers/sg/his_api_controller.go

+ 0 - 1
controllers/js/jsyb_controller.go 查看文件

@@ -330,7 +330,6 @@ func (c *JSybController) PostSeven() {
330 330
 	ak := c.GetString("ak")
331 331
 
332 332
 	result, request_log := service.Jsyb2206(psnNo, mdtrtId, chrgBchno, certNo, insutype, total, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, med_type, id_card_type, 0, 0, 0, 0, certificates, url, ak, verify_number)
333
-	fmt.Println(request_log)
334 333
 
335 334
 	var dat map[string]interface{}
336 335
 	if err := json.Unmarshal([]byte(result), &dat); err == nil {

+ 8 - 1
controllers/sg/his_api_controller.go 查看文件

@@ -5878,13 +5878,20 @@ func (c *HisApiController) GetPreUploadInfo() {
5878 5878
 						psn_info, _ := service.GetPsnByPatientId(his.PatientId)
5879 5879
 						psn_info.VerifyNumber = strings.Replace(psn_info.VerifyNumber, "+", "%2B", -1)
5880 5880
 
5881
+						bas := strings.Split(psn_info.CardInfo, "|")
5882
+
5883
+						if his.IdCardType == 1 {
5884
+							cert_no = bas[2]
5885
+						} else {
5886
+							cert_no = bas[1]
5887
+						}
5881 5888
 						api := "http://192.168.3.111:9532/" + "jsyb/2206?psn_no=" + his.PsnNo + "&mdtrt_id=" +
5882 5889
 							his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
5883 5890
 							"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
5884 5891
 							"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
5885 5892
 							"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
5886 5893
 							"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
5887
-							"&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&verify_number=" + psn_info.VerifyNumber
5894
+							"&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&verify_number=" + psn_info.VerifyNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.ChannelNumber
5888 5895
 						resp, requestErr := http.Get(api)
5889 5896
 						if requestErr != nil {
5890 5897
 							c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)