Browse Source

Merge branch '20230223_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20230223_xt_api_new_branch

陈少旭 9 months ago
parent
commit
2fac438049

BIN
XT_New.exe View File


+ 14 - 12
controllers/base_api_controller.go View File

@@ -72,9 +72,10 @@ func (this *BaseAuthAPIController) Prepare() {
72 72
 	this.BaseAPIController.Prepare()
73 73
 	if this.GetAdminUserInfo() == nil {
74 74
 		var userAdmin models.AdminUser
75
-		userAdmin.Id = 16919
76
-		userAdmin.Mobile = "15717313968"
77
-		userAdmin.Id = 10489 //4,809
75
+		userAdmin.Id = 1448
76
+		userAdmin.Mobile = "13318599895"
77
+
78
+		userAdmin.Id = 1 //4,809
78 79
 		userAdmin.Mobile = "12222222222"
79 80
 		userAdmin.IsSuperAdmin = true
80 81
 		userAdmin.Status = 1
@@ -82,7 +83,7 @@ func (this *BaseAuthAPIController) Prepare() {
82 83
 		userAdmin.ModifyTime = 1530786071
83 84
 		var subscibe models.ServeSubscibe
84 85
 		subscibe.ID = 11
85
-		subscibe.OrgId = 10510 //机构id 10344
86
+		subscibe.OrgId = 10480 //机构id
86 87
 		subscibe.PeriodStart = 1547447814
87 88
 		subscibe.PeriodEnd = 1550039814
88 89
 		subscibe.State = 1
@@ -92,8 +93,8 @@ func (this *BaseAuthAPIController) Prepare() {
92 93
 		subscibes := make(map[int64]*models.ServeSubscibe, 0)
93 94
 		subscibes[4] = &subscibe
94 95
 		var adminUserInfo service.AdminUserInfo
95
-		adminUserInfo.CurrentOrgId = 10510 //机构id小英9675或4
96
-		adminUserInfo.CurrentAppId = 11211 //4
96
+		adminUserInfo.CurrentOrgId = 10480 //机构id小英9675或4
97
+		adminUserInfo.CurrentAppId = 14    //4
97 98
 		adminUserInfo.AdminUser = &userAdmin
98 99
 		adminUserInfo.Subscibes = subscibes
99 100
 		this.SetSession("admin_user_info", &adminUserInfo)
@@ -317,9 +318,10 @@ func (this *BaseServeAPIController) Prepare() {
317 318
 	this.BaseAPIController.Prepare()
318 319
 	if this.GetAdminUserInfo() == nil {
319 320
 		var userAdmin models.AdminUser
320
-		userAdmin.Id = 16919
321
-		userAdmin.Mobile = "15717313968"
322
-		userAdmin.Id = 16919 //4,809
321
+		userAdmin.Id = 1448
322
+		userAdmin.Mobile = "13318599895"
323
+
324
+		userAdmin.Id = 1 //4,809
323 325
 		userAdmin.Mobile = "12222222222"
324 326
 		userAdmin.IsSuperAdmin = false
325 327
 		userAdmin.Status = 1
@@ -327,7 +329,7 @@ func (this *BaseServeAPIController) Prepare() {
327 329
 		userAdmin.ModifyTime = 1530786071
328 330
 		var subscibe models.ServeSubscibe
329 331
 		subscibe.ID = 11
330
-		subscibe.OrgId = 10510 //机构id小英10344或4或10666
332
+		subscibe.OrgId = 10480 //机构id小英9675或4
331 333
 		subscibe.PeriodStart = 1538035409
332 334
 		subscibe.PeriodEnd = 1569571409
333 335
 		subscibe.State = 1
@@ -337,8 +339,8 @@ func (this *BaseServeAPIController) Prepare() {
337 339
 		subscibes := make(map[int64]*models.ServeSubscibe, 0)
338 340
 		subscibes[4] = &subscibe
339 341
 		var adminUserInfo service.AdminUserInfo
340
-		adminUserInfo.CurrentOrgId = 10510 //机构id小英10344或4或10666
341
-		adminUserInfo.CurrentAppId = 11211 //4
342
+		adminUserInfo.CurrentOrgId = 10480 //机构id小英9675或4
343
+		adminUserInfo.CurrentAppId = 14    //4
342 344
 		adminUserInfo.AdminUser = &userAdmin
343 345
 		adminUserInfo.Subscibes = subscibes
344 346
 		this.SetSession("admin_user_info", &adminUserInfo)

+ 0 - 1
controllers/dialysis_record_api_controller.go View File

@@ -86,7 +86,6 @@ func (this *DialysisRecordAPIController) GetSchedules() {
86 86
 	if orgID == 9671 || orgID == 9675 || orgID == 10164 || orgID == 9679 {
87 87
 		redis.Set(key, scheduals_json_str, time.Second*60)
88 88
 	}
89
-	fmt.Println("len2o2o2o2o2", len(scheduals_json_str))
90 89
 
91 90
 	if len(scheduals_json_str) == 0 { //没有到缓存数据,从数据库中获取数据,进行缓存到redis
92 91
 

File diff suppressed because it is too large
+ 11335 - 0
controllers/his_api_controller.go.3084552755


+ 1 - 1
controllers/new_mobile_api_controllers/staff_schedule_api_controller.go View File

@@ -429,7 +429,7 @@ func (this *StaffScheduleApiController) GetAllZonePb() {
429 429
 	}
430 430
 
431 431
 	//查询排班里面的空透析器
432
-	if orgid == 10375 || orgid == 10510 || orgid == 9538 {
432
+	if orgid == 10375 || orgid == 10510 || orgid == 9538 || orgid == 10610 {
433 433
 
434 434
 		schedulesFive, _ := service.GetMobileScheduleListByScheduleDateOne(orgid, startTime)
435 435
 

+ 10 - 0
controllers/stock_in_api_controller.go View File

@@ -8029,12 +8029,22 @@ func (this *StockManagerApiController) GetInvetoryWarehouseInfoList() {
8029 8029
 	storehouse_id, _ := this.GetInt64("storehouse_id")
8030 8030
 	orgId := this.GetAdminUserInfo().CurrentOrgId
8031 8031
 	list, _ := service.GetInvetoryWarehouseInfoList(orgId, storehouse_id)
8032
+	var info []*models.WarehousingInfo
8033
+	if orgId == 10571 {
8034
+		for _, item := range list {
8035
+			if strings.ContainsAny(item.GoodInfo.GoodStatus, "收费") {
8036
+				info = append(info, item)
8037
+			}
8038
+		}
8039
+	}
8040
+
8032 8041
 	manufacturerList, _ := service.GetAllManufacturerList(orgId)
8033 8042
 	dealerList, _ := service.GetAllDealerList(orgId)
8034 8043
 	this.ServeSuccessJSON(map[string]interface{}{
8035 8044
 		"list":             list,
8036 8045
 		"manufacturerList": manufacturerList,
8037 8046
 		"dealerList":       dealerList,
8047
+		"info":             info,
8038 8048
 	})
8039 8049
 }
8040 8050
 

BIN
service/2.pdf View File


BIN
service/9.pdf View File