소스 검색

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

csx 4 년 전
부모
커밋
bb0a2678ee
2개의 변경된 파일10개의 추가작업 그리고 8개의 파일을 삭제
  1. 2 2
      conf/app.conf
  2. 8 6
      controllers/sz/sz_his_api_controller.go

+ 2 - 2
conf/app.conf 파일 보기

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

+ 8 - 6
controllers/sz/sz_his_api_controller.go 파일 보기

807
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeIDCartNo)
807
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeIDCartNo)
808
 		return
808
 		return
809
 	}
809
 	}
810
+	doctorInfo, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, doctor)
811
+	doctorDepartment, _ := service.GetDepartMentDetail(department)
810
 
812
 
811
 	adminRole, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, admin_user_id)
813
 	adminRole, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, admin_user_id)
812
 	his, _ := service.GetHisPatientInfo(adminInfo.CurrentOrgId, patient_id, theTime.Unix())
814
 	his, _ := service.GetHisPatientInfo(adminInfo.CurrentOrgId, patient_id, theTime.Unix())
848
 
850
 
849
 	if his.ID == 0 {
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
 		if adminRole.ID == 0 {
855
 		if adminRole.ID == 0 {
854
 
856
 
855
-			doctor_name = "管理员"
856
-			doctor_code = "01"
857
+			opera_name = "管理员"
858
+			opera_code = "01"
857
 
859
 
858
 		} else {
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
 		month := time.Unix(1557042972, 0).Format("1")
865
 		month := time.Unix(1557042972, 0).Format("1")