Browse Source

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

csx 2 years ago
parent
commit
2a0429bfb0
2 changed files with 3 additions and 3 deletions
  1. 2 2
      controllers/nm/nm_controller.go
  2. 1 1
      service/zh_his_service.go

+ 2 - 2
controllers/nm/nm_controller.go View File

220
 	chrg_bchno := respJSON["chrg_bchno"].(string)
220
 	chrg_bchno := respJSON["chrg_bchno"].(string)
221
 	dept := respJSON["dept"].(string)
221
 	dept := respJSON["dept"].(string)
222
 	dept_code := respJSON["dept_code"].(string)
222
 	dept_code := respJSON["dept_code"].(string)
223
-	doctor_code := respJSON["doctor_code"].(string)
223
+	doctor_code := respJSON["doctor_code"].(float64)
224
 	doctor_name := respJSON["doctor_name"].(string)
224
 	doctor_name := respJSON["doctor_name"].(string)
225
 	opertor := respJSON["opertor"].(string)
225
 	opertor := respJSON["opertor"].(string)
226
 
226
 
232
 	med_type := respJSON["med_type"].(string)
232
 	med_type := respJSON["med_type"].(string)
233
 	psn_no := respJSON["psn_no"].(string)
233
 	psn_no := respJSON["psn_no"].(string)
234
 
234
 
235
-	result, requestLog := service.ZHGdyb2301A(psn_no, number, customs, chrg_bchno, org_name, doctor_name, dept, fixmedins_code, dept_code, doctor_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, med_type, opertor)
235
+	result, requestLog := service.ZHGdyb2301A(psn_no, number, customs, chrg_bchno, org_name, doctor_name, dept, fixmedins_code, dept_code, int64(doctor_code), insuplc_admdvs, mdtrtarea_admvs, secret_key, med_type, opertor)
236
 	saveJsLog(result, requestLog, "2301", "上传明细", org_name)
236
 	saveJsLog(result, requestLog, "2301", "上传明细", org_name)
237
 
237
 
238
 	var dat2 map[string]interface{}
238
 	var dat2 map[string]interface{}

+ 1 - 1
service/zh_his_service.go View File

673
 
673
 
674
 }
674
 }
675
 
675
 
676
-func ZHGdyb2301A(psnNo string, mdtrtId string, hisPrescription []*models.NewCustom, chrg_bchno string, org_name string, doctor string, dept string, fixmedins_code string, dept_code string, doctor_id string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, med_type string, opertor string) (string, string) {
676
+func ZHGdyb2301A(psnNo string, mdtrtId string, hisPrescription []*models.NewCustom, chrg_bchno string, org_name string, doctor string, dept string, fixmedins_code string, dept_code string, doctor_id int64, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, med_type string, opertor string) (string, string) {
677
 	// 生成签名
677
 	// 生成签名
678
 	nonce := GetRandomString(32)
678
 	nonce := GetRandomString(32)
679
 	timestamp := time.Now().Unix()
679
 	timestamp := time.Now().Unix()