Browse Source

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

csx 2 years ago
parent
commit
edcbfb3157
2 changed files with 11 additions and 9 deletions
  1. 1 1
      controllers/sg/his_api_controller.go
  2. 10 8
      main.go

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

3299
 		roles, _ := service.GetDoctorListTwo(c.GetAdminUserInfo().CurrentOrgId)
3299
 		roles, _ := service.GetDoctorListTwo(c.GetAdminUserInfo().CurrentOrgId)
3300
 		his, _ := service.GetHisPatientByNumber(order.MdtrtId)
3300
 		his, _ := service.GetHisPatientByNumber(order.MdtrtId)
3301
 		admin, _ := service.GetAdminUserByUserID(roles[0].AdminUserId)
3301
 		admin, _ := service.GetAdminUserByUserID(roles[0].AdminUserId)
3302
-		curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, 2495)
3302
+		curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, 2273)
3303
 		depart, _ := service.GetDepartMentDetail(curRoles.DepartmentId)
3303
 		depart, _ := service.GetDepartMentDetail(curRoles.DepartmentId)
3304
 		miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
3304
 		miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
3305
 
3305
 

+ 10 - 8
main.go View File

2
 
2
 
3
 import (
3
 import (
4
 	"context"
4
 	"context"
5
+	"gdyb/service"
6
+
5
 	//"context"
7
 	//"context"
6
 	"fmt"
8
 	"fmt"
7
 	"gdyb/models"
9
 	"gdyb/models"
29
 )
31
 )
30
 
32
 
31
 func init() {
33
 func init() {
32
-	//service.ConnectDB()
33
-	//org_id, _ := beego.AppConfig.Int64("org_id")
34
-	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
35
-	//CreateLog(miConfig)
36
-	//UploadLog(miConfig)
37
-	//if org_id == 10191 {
38
-	//	service.GetFjAuthorizationInfo(miConfig.Code)
39
-	//}
34
+	service.ConnectDB()
35
+	org_id, _ := beego.AppConfig.Int64("org_id")
36
+	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
37
+	CreateLog(miConfig)
38
+	UploadLog(miConfig)
39
+	if org_id == 10191 {
40
+		service.GetFjAuthorizationInfo(miConfig.Code)
41
+	}
40
 }
42
 }
41
 func main() {
43
 func main() {
42
 	beego.Run()
44
 	beego.Run()