Browse Source

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

csx 3 years ago
parent
commit
eeb8994f66
1 changed files with 5 additions and 6 deletions
  1. 5 6
      controllers/sg/his_api_controller.go

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

@@ -1948,9 +1948,8 @@ func (c *HisApiController) GetRegisterInfo() {
1948 1948
 				insutype = "310"
1949 1949
 			}
1950 1950
 
1951
-			//insutype = "390"
1951
+			insutype = "390"
1952 1952
 			var resThree ResultThree
1953
-
1954 1953
 			if miConfig.MdtrtareaAdmvs == "421300" {
1955 1954
 				api := "http://127.0.0.1:9533/" + "hbyb/2201?psn_no=" + res.Output.Baseinfo.PsnNo + "&insutype=" + insutype + "&cert_no=" + res.Output.Baseinfo.Certno + "&ipt_otp_no=" + ipt_otp_no +
1956 1955
 					"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
@@ -1993,13 +1992,13 @@ func (c *HisApiController) GetRegisterInfo() {
1993 1992
 				}
1994 1993
 			}
1995 1994
 
1996
-			if res.Infcode != 0 {
1995
+			if resThree.Infcode != 0 {
1997 1996
 				adminUser := c.GetAdminUserInfo()
1998 1997
 				errlog := &models.HisOrderError{
1999 1998
 					UserOrgId:  adminUser.CurrentOrgId,
2000 1999
 					Ctime:      time.Now().Unix(),
2001 2000
 					Mtime:      time.Now().Unix(),
2002
-					ErrMsg:     res.ErrMsg,
2001
+					ErrMsg:     resThree.ErrMsg,
2003 2002
 					Status:     1,
2004 2003
 					PatientId:  id,
2005 2004
 					RecordTime: recordDateTime,
@@ -2008,7 +2007,7 @@ func (c *HisApiController) GetRegisterInfo() {
2008 2007
 				service.CreateErrMsgLog(errlog)
2009 2008
 				c.ServeSuccessJSON(map[string]interface{}{
2010 2009
 					"failed_code": -10,
2011
-					"msg":         res.ErrMsg,
2010
+					"msg":         resThree.ErrMsg,
2012 2011
 				})
2013 2012
 				return
2014 2013
 			}
@@ -2536,7 +2535,7 @@ func (c *HisApiController) GetUploadInfo() {
2536 2535
 							insutype = "310"
2537 2536
 						}
2538 2537
 
2539
-						//insutype = "390"
2538
+						insutype = "390"
2540 2539
 						if his.IdCardType == 1 {
2541 2540
 							// cert_no = his.MedicalInsuranceNumber
2542 2541
 							cert_no = his.Certno