|
@@ -71,7 +71,7 @@ func HisManagerApiRegistRouters() {
|
71
|
71
|
beego.Router("/api/psn/info", &HisApiController{}, "get:GetPsnNcdsInfo")
|
72
|
72
|
|
73
|
73
|
beego.Router("/api/allopatry/get", &HisApiController{}, "get:GetAllopatry")
|
74
|
|
- beego.Router("/api/comfirmallopatry/post", &HisApiController{}, "post:ComfirmAllopatry")
|
|
74
|
+ //beego.Router("/api/comfirmallopatry/post", &HisApiController{}, "post:ComfirmAllopatry")
|
75
|
75
|
beego.Router("/api/allopatry/refund", &HisApiController{}, "post:RefundAllopatry")
|
76
|
76
|
|
77
|
77
|
}
|
|
@@ -9313,6 +9313,7 @@ func (c *HisApiController) ReversalData() {
|
9313
|
9313
|
fmt.Println(result)
|
9314
|
9314
|
}
|
9315
|
9315
|
}
|
|
9316
|
+
|
9316
|
9317
|
func (c *HisApiController) GetAllopatry() {
|
9317
|
9318
|
year := c.GetString("year")
|
9318
|
9319
|
month := c.GetString("month")
|
|
@@ -9334,38 +9335,40 @@ func (c *HisApiController) GetAllopatry() {
|
9334
|
9335
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
9335
|
9336
|
return
|
9336
|
9337
|
}
|
9337
|
|
- c.ServeSuccessJSON(map[string]interface{}{
|
9338
|
|
- "result": res2,
|
9339
|
|
- })
|
|
9338
|
+ fmt.Println(res2)
|
9340
|
9339
|
|
9341
|
|
-}
|
9342
|
|
-func (c *HisApiController) ComfirmAllopatry() {
|
9343
|
|
- year := c.GetString("year")
|
9344
|
|
- month := c.GetString("month")
|
9345
|
|
- admin_user_id, _ := c.GetInt64("admin_user_id")
|
9346
|
|
- adminUser := c.GetAdminUserInfo()
|
9347
|
|
- miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
|
9348
|
|
- roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
|
9349
|
|
- result, _ := service.Gdyb3261(miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, year, month)
|
9350
|
|
- var dat map[string]interface{}
|
9351
|
|
- if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
9352
|
|
- fmt.Println(dat)
|
9353
|
|
- } else {
|
9354
|
|
- fmt.Println(err)
|
9355
|
|
- }
|
9356
|
|
- userJSONBytes, _ := json.Marshal(dat)
|
9357
|
|
- var res2 models.Result3261
|
9358
|
|
- if err := json.Unmarshal(userJSONBytes, &res2); err != nil {
|
9359
|
|
- utils.ErrorLog("解析失败:%v", err)
|
9360
|
|
- c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
9361
|
|
- return
|
9362
|
|
- }
|
9363
|
|
- c.ServeSuccessJSON(map[string]interface{}{
|
9364
|
|
- "result": res2,
|
9365
|
|
- })
|
|
9340
|
+ result2, _ := service.Gdyb3261(miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, year, month, res2)
|
|
9341
|
+ fmt.Println(result2)
|
9366
|
9342
|
|
9367
|
9343
|
}
|
9368
|
9344
|
|
|
9345
|
+//func (c *HisApiController) ComfirmAllopatry() {
|
|
9346
|
+// year := c.GetString("year")
|
|
9347
|
+// month := c.GetString("month")
|
|
9348
|
+// admin_user_id, _ := c.GetInt64("admin_user_id")
|
|
9349
|
+// adminUser := c.GetAdminUserInfo()
|
|
9350
|
+// miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
|
|
9351
|
+// roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
|
|
9352
|
+// result, _ := service.Gdyb3261(miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, year, month)
|
|
9353
|
+// var dat map[string]interface{}
|
|
9354
|
+// if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
9355
|
+// fmt.Println(dat)
|
|
9356
|
+// } else {
|
|
9357
|
+// fmt.Println(err)
|
|
9358
|
+// }
|
|
9359
|
+// userJSONBytes, _ := json.Marshal(dat)
|
|
9360
|
+// var res2 models.Result3261
|
|
9361
|
+// if err := json.Unmarshal(userJSONBytes, &res2); err != nil {
|
|
9362
|
+// utils.ErrorLog("解析失败:%v", err)
|
|
9363
|
+// c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
9364
|
+// return
|
|
9365
|
+// }
|
|
9366
|
+// c.ServeSuccessJSON(map[string]interface{}{
|
|
9367
|
+// "result": res2,
|
|
9368
|
+// })
|
|
9369
|
+//
|
|
9370
|
+//}
|
|
9371
|
+
|
9369
|
9372
|
func (c *HisApiController) RefundAllopatry() {
|
9370
|
9373
|
//year := c.GetString("year")
|
9371
|
9374
|
//month := c.GetString("month")
|