陈少旭 1 year ago
parent
commit
9824fdd8bd
1 changed files with 6 additions and 1 deletions
  1. 6 1
      controllers/sg/his_api_controller.go

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

15348
 		//	c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
15348
 		//	c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
15349
 		//	return
15349
 		//	return
15350
 		//}
15350
 		//}
15351
-
15351
+		for _, item := range res.Output.Iinfo {
15352
+			if item.PsnInsuStas == "2" {
15353
+				item.Insutype = "300"
15354
+			}
15355
+		}
15352
 		if res.Infcode != 0 {
15356
 		if res.Infcode != 0 {
15353
 			c.ServeSuccessJSON(map[string]interface{}{
15357
 			c.ServeSuccessJSON(map[string]interface{}{
15354
 				"failed_code": -10,
15358
 				"failed_code": -10,
15363
 
15367
 
15364
 	}
15368
 	}
15365
 }
15369
 }
15370
+
15366
 func (c *HisApiController) PsnPutOnRecord() {
15371
 func (c *HisApiController) PsnPutOnRecord() {
15367
 	record_type, _ := c.GetInt64("type")
15372
 	record_type, _ := c.GetInt64("type")
15368
 	patient_id, _ := c.GetInt64("patient_id")
15373
 	patient_id, _ := c.GetInt64("patient_id")