Selaa lähdekoodia

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

csx 3 vuotta sitten
vanhempi
commit
608546b5a3
3 muutettua tiedostoa jossa 13 lisäystä ja 13 poistoa
  1. 6 6
      conf/app.conf
  2. 4 4
      controllers/sg/his_api_controller.go
  3. 3 3
      service/gdyb_service.go

+ 6 - 6
conf/app.conf Näytä tiedosto

@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 10265
48
+org_id = 9504
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com
@@ -54,13 +54,13 @@ front_end_domain = "https://xt.kuyicloud.com/#"
54 54
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
55 55
 #url = "http://192.168.1.88:6666/szsi-portal/transData"
56 56
 #gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
57
-#gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
57
+gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
58 58
 #内蒙古
59
-gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60
-gdyb_paasid = "sg03_prd"
59
+#gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60
+#gdyb_paasid = "sg03_prd"
61 61
 #gdyb_paasid = "jm_sc_yjyy"
62
-#gdyb_paasid = "zh_prd_yjyy"
63
-#gdyb_paasid = "sz_prd_yjyy"
62
+#gdyb_paasid="zh_prd_yjyy"
63
+gdyb_paasid = "sz_prd_yjyy"
64 64
 #gdyb_paasid = "zq_prd_yjyy"
65 65
 
66 66
 

+ 4 - 4
controllers/sg/his_api_controller.go Näytä tiedosto

@@ -3511,7 +3511,7 @@ func (c *HisApiController) GetUploadInfo() {
3511 3511
 				} else {
3512 3512
 
3513 3513
 					if miConfig.Code == "H15049901371" {
3514
-						result, request_log := service.Gdyb2204(his.PsnNo, his.Number, prescriptions, chrg_bchno, miConfig.OrgName, roles.UserName, strconv.FormatInt(patientPrescription.Departments, 10), miConfig.Code, department.Number, strconv.FormatInt(roles.AdminUserId, 10), his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, strconv.FormatInt(his.BalanceAccountsType, 10))
3514
+						result, request_log := service.Gdyb2204(his.PsnNo, his.Number, prescriptions, chrg_bchno, miConfig.OrgName, roles.UserName, strconv.FormatInt(patientPrescription.Departments, 10), miConfig.Code, department.Number, strconv.FormatInt(roles.AdminUserId, 10), his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, strconv.FormatInt(his.BalanceAccountsType, 10), patientPrescription.DoctorId)
3515 3515
 						var dat map[string]interface{}
3516 3516
 						if err := json.Unmarshal([]byte(result), &dat); err == nil {
3517 3517
 							fmt.Println(dat)
@@ -3536,7 +3536,7 @@ func (c *HisApiController) GetUploadInfo() {
3536 3536
 						res.Infcode = infocode
3537 3537
 
3538 3538
 					} else {
3539
-						result, request_log := service.Gdyb2204(his.PsnNo, his.Number, prescriptions, chrg_bchno, miConfig.OrgName, roles.UserName, strconv.FormatInt(patientPrescription.Departments, 10), miConfig.Code, department.Number, strconv.FormatInt(roles.AdminUserId, 10), miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, strconv.FormatInt(his.BalanceAccountsType, 10))
3539
+						result, request_log := service.Gdyb2204(his.PsnNo, his.Number, prescriptions, chrg_bchno, miConfig.OrgName, roles.UserName, strconv.FormatInt(patientPrescription.Departments, 10), miConfig.Code, department.Number, strconv.FormatInt(roles.AdminUserId, 10), miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, strconv.FormatInt(his.BalanceAccountsType, 10), patientPrescription.DoctorId)
3540 3540
 						var dat map[string]interface{}
3541 3541
 						if err := json.Unmarshal([]byte(result), &dat); err == nil {
3542 3542
 							fmt.Println(dat)
@@ -5082,7 +5082,7 @@ func (c *HisApiController) GetPreUploadInfo() {
5082 5082
 			} else {
5083 5083
 
5084 5084
 				if miConfig.Code == "H15049901371" {
5085
-					result, request_log := service.Gdyb2204(his.PsnNo, his.Number, prescriptions, chrg_bchno, miConfig.OrgName, roles.UserName, data["dept"].(string), data["fixmedins_code"].(string), data["dept_code"].(string), data["doctor_id"].(string), his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, data["balance_accounts_type"].(string))
5085
+					result, request_log := service.Gdyb2204(his.PsnNo, his.Number, prescriptions, chrg_bchno, miConfig.OrgName, roles.UserName, data["dept"].(string), data["fixmedins_code"].(string), data["dept_code"].(string), data["doctor_id"].(string), his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, data["balance_accounts_type"].(string), patientPrescription.DoctorId)
5086 5086
 					var dat map[string]interface{}
5087 5087
 					if err := json.Unmarshal([]byte(result), &dat); err == nil {
5088 5088
 						fmt.Println(dat)
@@ -5108,7 +5108,7 @@ func (c *HisApiController) GetPreUploadInfo() {
5108 5108
 					res.Infcode = infocode
5109 5109
 
5110 5110
 				} else {
5111
-					result, request_log := service.Gdyb2204(his.PsnNo, his.Number, prescriptions, chrg_bchno, miConfig.OrgName, roles.UserName, data["dept"].(string), data["fixmedins_code"].(string), data["dept_code"].(string), data["doctor_id"].(string), his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, data["balance_accounts_type"].(string))
5111
+					result, request_log := service.Gdyb2204(his.PsnNo, his.Number, prescriptions, chrg_bchno, miConfig.OrgName, roles.UserName, data["dept"].(string), data["fixmedins_code"].(string), data["dept_code"].(string), data["doctor_id"].(string), his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, data["balance_accounts_type"].(string), patientPrescription.DoctorId)
5112 5112
 					var dat map[string]interface{}
5113 5113
 					if err := json.Unmarshal([]byte(result), &dat); err == nil {
5114 5114
 						fmt.Println(dat)

+ 3 - 3
service/gdyb_service.go Näytä tiedosto

@@ -831,7 +831,7 @@ type Result struct {
831 831
 }
832 832
 
833 833
 //  门诊费用明细信息上传
834
-func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescription, 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, balance_accounts_type string) (string, string) {
834
+func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescription, 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, balance_accounts_type string, new_doctor_id int64) (string, string) {
835 835
 	// 生成签名
836 836
 	nonce := GetRandomString(32)
837 837
 	timestamp := time.Now().Unix()
@@ -844,14 +844,14 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
844 844
 	var customs []*Custom
845 845
 
846 846
 	for _, item := range hisPrescription {
847
-		role, _ := GetAdminUserInfoByID(item.UserOrgId, item.Creator)
847
+		role, _ := GetAdminUserInfoByID(item.UserOrgId, new_doctor_id)
848 848
 
849 849
 		if item.Type == 1 { //药品
850 850
 			for _, subItem := range item.HisDoctorAdviceInfo {
851 851
 				if len(subItem.BaseDrugLib.MedicalInsuranceNumber) > 0 {
852 852
 					//var randNum int
853 853
 					//randNum = rand.Intn(10000) + 1000
854
-					role, _ := GetAdminUserInfoByID(item.UserOrgId, item.Creator)
854
+					role, _ := GetAdminUserInfoByID(item.UserOrgId, new_doctor_id)
855 855
 					cus := &Custom{
856 856
 						DetItemFeeSumamt: fmt.Sprintf("%.4f", subItem.Price*subItem.PrescribingNumber),
857 857
 						Cut:              fmt.Sprintf("%.4f", subItem.PrescribingNumber),