Browse Source

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

csx 4 years ago
parent
commit
bb0a2678ee
2 changed files with 10 additions and 8 deletions
  1. 2 2
      conf/app.conf
  2. 8 6
      controllers/sz/sz_his_api_controller.go

+ 2 - 2
conf/app.conf View File

@@ -1,6 +1,6 @@
1 1
 appname = 血透
2 2
 httpport = 9532
3
-runmode = dev
3
+runmode = prod
4 4
 
5 5
 #
6 6
 copyrequestbody = true
@@ -44,7 +44,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
44 44
 
45 45
 
46 46
 [prod]
47
-org_id = 9919
47
+org_id = 9504
48 48
 mobile_token_expiration_second = 86400
49 49
 httpdomain = https://api.xt.kuyicloud.com
50 50
 sso_domain = https://sso.kuyicloud.com

+ 8 - 6
controllers/sz/sz_his_api_controller.go View File

@@ -807,6 +807,8 @@ func (c *SZHisApiController) GetRegisterInfo() {
807 807
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeIDCartNo)
808 808
 		return
809 809
 	}
810
+	doctorInfo, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, doctor)
811
+	doctorDepartment, _ := service.GetDepartMentDetail(department)
810 812
 
811 813
 	adminRole, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, admin_user_id)
812 814
 	his, _ := service.GetHisPatientInfo(adminInfo.CurrentOrgId, patient_id, theTime.Unix())
@@ -848,16 +850,16 @@ func (c *SZHisApiController) GetRegisterInfo() {
848 850
 
849 851
 	if his.ID == 0 {
850 852
 
851
-		var doctor_name string
852
-		var doctor_code string
853
+		var opera_name string
854
+		var opera_code string
853 855
 		if adminRole.ID == 0 {
854 856
 
855
-			doctor_name = "管理员"
856
-			doctor_code = "01"
857
+			opera_name = "管理员"
858
+			opera_code = "01"
857 859
 
858 860
 		} else {
859
-			doctor_name = adminRole.UserName
860
-			doctor_code = strconv.FormatInt(admin_user_id, 10)
861
+			opera_name = adminRole.UserName
862
+			opera_code = strconv.FormatInt(admin_user_id, 10)
861 863
 
862 864
 		}
863 865
 		month := time.Unix(1557042972, 0).Format("1")