Browse Source

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

csx 1 year ago
parent
commit
a415aab84b
1 changed files with 19 additions and 1 deletions
  1. 19 1
      controllers/sg/his_api_controller.go

+ 19 - 1
controllers/sg/his_api_controller.go View File

@@ -6287,6 +6287,16 @@ type ResultFour10265 struct {
6287 6287
 	Signtype    string `json:"signtype"`
6288 6288
 	WarnMsg     string `json:"warn_msg"`
6289 6289
 }
6290
+type ResultMemo struct {
6291
+	InsuAdmdvs string `json:"insuAdmdvs"`
6292
+}
6293
+
6294
+//[{"begntime":"2022-01-01 00:00:00","endtime":"2022-12-31 00:00:00","memo":"{\"matIdetCode\":\"20\",\"insuAdmdvs\":\"350481\"}","psn_idet_type":"23","psn_type_lv":null}]
6295
+type ResultIDInfo struct {
6296
+	Begntime string     `json:"begntime"`
6297
+	Endtime  string     `json:"endtime"`
6298
+	Memo     ResultMemo `json:"memo"`
6299
+}
6290 6300
 
6291 6301
 type ResultFive struct {
6292 6302
 	Balc                   float64 `json:"balc"`
@@ -7506,7 +7516,15 @@ func (c *HisApiController) GetRegisterInfo() {
7506 7516
 				insuplc_admdvs_temp = insuplc_admdvs
7507 7517
 
7508 7518
 			}
7509
-
7519
+			if miConfig.MdtrtareaAdmvs == "350500" {
7520
+				var rf []*ResultIDInfo
7521
+				json.Unmarshal([]byte(idetinfoStr), &rf)
7522
+				if len(rf) > 0 {
7523
+					if len(rf[0].Memo.InsuAdmdvs) > 0 {
7524
+						insuplc_admdvs_temp = rf[0].Memo.InsuAdmdvs
7525
+					}
7526
+				}
7527
+			}
7510 7528
 			if miConfig.MdtrtareaAdmvs == "421300" {
7511 7529
 				hb_doctor_info, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, patientPrescription.DoctorId)
7512 7530