|
@@ -81,7 +81,28 @@ func HisManagerApiRegistRouters() {
|
81
|
81
|
beego.Router("/api/check3102", &HisApiController{}, "get:Check3102")
|
82
|
82
|
|
83
|
83
|
beego.Router("/90990", &HisApiController{}, "get:CheckCardPWDTwo")
|
84
|
|
- beego.Router("/9001", &HisApiController{}, "get:C")
|
|
84
|
+ beego.Router("/9001", &HisApiController{}, "get:Get9001")
|
|
85
|
+
|
|
86
|
+}
|
|
87
|
+func (c *HisApiController) Get9001() {
|
|
88
|
+ adminUser := c.GetAdminUserInfo()
|
|
89
|
+ miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
|
|
90
|
+ roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, 185)
|
|
91
|
+ result, _ := service.Gdyb9001(miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, 1669)
|
|
92
|
+
|
|
93
|
+ var dat map[string]interface{}
|
|
94
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
95
|
+ fmt.Println(dat)
|
|
96
|
+ } else {
|
|
97
|
+ fmt.Println(err)
|
|
98
|
+ }
|
|
99
|
+ userJSONBytes, _ := json.Marshal(dat)
|
|
100
|
+ var res models.Result9001
|
|
101
|
+ if err := json.Unmarshal(userJSONBytes, &res); err != nil {
|
|
102
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
103
|
+ c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
104
|
+ return
|
|
105
|
+ }
|
85
|
106
|
|
86
|
107
|
}
|
87
|
108
|
func (c *HisApiController) Check3101() {
|
|
@@ -11412,6 +11433,7 @@ func (c *HisApiController) GetAllopatry() {
|
11412
|
11433
|
miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
|
11413
|
11434
|
roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
|
11414
|
11435
|
result, _ := service.Gdyb9001(miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, 1669)
|
|
11436
|
+
|
11415
|
11437
|
var dat map[string]interface{}
|
11416
|
11438
|
if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
11417
|
11439
|
fmt.Println(dat)
|