陈少旭 9 months ago
parent
commit
53516b7b42
2 changed files with 4 additions and 0 deletions
  1. 3 0
      controllers/sg/his_api_controller.go
  2. 1 0
      models/his_models.go

+ 3 - 0
controllers/sg/his_api_controller.go View File

@@ -3424,6 +3424,7 @@ func (c *HisApiController) ReadEleToken() {
3424 3424
 						UserOrgId:    c.GetAdminUserInfo().CurrentOrgId,
3425 3425
 						CardInfo:     card_info,
3426 3426
 						VerifyNumber: token,
3427
+						IdCardType:   4,
3427 3428
 					}
3428 3429
 					var rf []*ResultFive
3429 3430
 					json.Unmarshal([]byte(infoStr), &rf)
@@ -5944,6 +5945,7 @@ func (c *HisApiController) ReadCard() {
5944 5945
 							UserOrgId:    c.GetAdminUserInfo().CurrentOrgId,
5945 5946
 							CardInfo:     card_info,
5946 5947
 							VerifyNumber: busi_card_info,
5948
+							IdCardType:   1,
5947 5949
 						}
5948 5950
 						service.CreateHisPsn(psn)
5949 5951
 
@@ -7219,6 +7221,7 @@ func (c *HisApiController) ReadCard() {
7219 7221
 							UserOrgId:    c.GetAdminUserInfo().CurrentOrgId,
7220 7222
 							CardInfo:     card_info,
7221 7223
 							VerifyNumber: token,
7224
+							IdCardType:   4,
7222 7225
 						}
7223 7226
 						var rf []*ResultFive
7224 7227
 						json.Unmarshal([]byte(infoStr), &rf)

+ 1 - 0
models/his_models.go View File

@@ -1349,6 +1349,7 @@ type HisPsn struct {
1349 1349
 	Stage         string  `gorm:"column:stage" json:"stage" form:"stage"`
1350 1350
 	RecordDate    int64   `gorm:"column:record_date" json:"record_date" form:"record_date"`
1351 1351
 	InsuplcAdmdvs string  `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
1352
+	IdCardType    int64   `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
1352 1353
 }
1353 1354
 
1354 1355
 func (HisPsn) TableName() string {