陈少旭 пре 1 година
родитељ
комит
9824fdd8bd
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      controllers/sg/his_api_controller.go

+ 6 - 1
controllers/sg/his_api_controller.go Прегледај датотеку

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")