|
@@ -6293,9 +6293,9 @@ type ResultMemo struct {
|
6293
|
6293
|
|
6294
|
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
|
6295
|
type ResultIDInfo struct {
|
6296
|
|
- Begntime string `json:"begntime"`
|
6297
|
|
- Endtime string `json:"endtime"`
|
6298
|
|
- Memo ResultMemo `json:"memo"`
|
|
6296
|
+ Begntime string `json:"begntime"`
|
|
6297
|
+ Endtime string `json:"endtime"`
|
|
6298
|
+ Memo string `json:"memo"`
|
6299
|
6299
|
}
|
6300
|
6300
|
|
6301
|
6301
|
type ResultFive struct {
|
|
@@ -7520,8 +7520,15 @@ func (c *HisApiController) GetRegisterInfo() {
|
7520
|
7520
|
var rf []*ResultIDInfo
|
7521
|
7521
|
json.Unmarshal([]byte(idetinfoStr), &rf)
|
7522
|
7522
|
if len(rf) > 0 {
|
7523
|
|
- if len(rf[0].Memo.InsuAdmdvs) > 0 {
|
7524
|
|
- insuplc_admdvs_temp = rf[0].Memo.InsuAdmdvs
|
|
7523
|
+ if len(rf[0].Memo) > 0 {
|
|
7524
|
+ content := rf[0].Memo[1:len(rf[0].Memo)]
|
|
7525
|
+ content2 := content[:len(rf[0].Memo)-1]
|
|
7526
|
+ fmt.Println(content2)
|
|
7527
|
+ var rf2 ResultMemo
|
|
7528
|
+ json.Unmarshal([]byte(content2), &rf2)
|
|
7529
|
+ fmt.Println(rf2)
|
|
7530
|
+ fmt.Println(rf2.InsuAdmdvs)
|
|
7531
|
+
|
7525
|
7532
|
}
|
7526
|
7533
|
}
|
7527
|
7534
|
}
|