Browse Source

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

csx 1 year 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,7 +3299,7 @@ func (c *HisApiController) GetBatchSettleList() {
3299 3299
 		roles, _ := service.GetDoctorListTwo(c.GetAdminUserInfo().CurrentOrgId)
3300 3300
 		his, _ := service.GetHisPatientByNumber(order.MdtrtId)
3301 3301
 		admin, _ := service.GetAdminUserByUserID(roles[0].AdminUserId)
3302
-		curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, 2495)
3302
+		curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, 2273)
3303 3303
 		depart, _ := service.GetDepartMentDetail(curRoles.DepartmentId)
3304 3304
 		miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
3305 3305
 

+ 10 - 8
main.go View File

@@ -2,6 +2,8 @@ package main
2 2
 
3 3
 import (
4 4
 	"context"
5
+	"gdyb/service"
6
+
5 7
 	//"context"
6 8
 	"fmt"
7 9
 	"gdyb/models"
@@ -29,14 +31,14 @@ import (
29 31
 )
30 32
 
31 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 43
 func main() {
42 44
 	beego.Run()