Browse Source

库存调拨修改

28169 2 years ago
parent
commit
dbd4407ca9

+ 5 - 0
controllers/mobile_api_controllers/login_api_controller.go View File

6
 	"XT_New/service"
6
 	"XT_New/service"
7
 	"XT_New/utils"
7
 	"XT_New/utils"
8
 	"encoding/json"
8
 	"encoding/json"
9
+	"fmt"
9
 	"io/ioutil"
10
 	"io/ioutil"
10
 	"net/http"
11
 	"net/http"
11
 	"net/url"
12
 	"net/url"
144
 
145
 
145
 		//设置cookie
146
 		//设置cookie
146
 		mobile = mobile + "-" + strconv.FormatInt(org.Id, 10) + "-" + strconv.FormatInt(appRole.Id, 10)
147
 		mobile = mobile + "-" + strconv.FormatInt(org.Id, 10) + "-" + strconv.FormatInt(appRole.Id, 10)
148
+		fmt.Println("mobile-------------------------------------------------------", mobile)
147
 		token := utils.GenerateLoginToken(mobile)
149
 		token := utils.GenerateLoginToken(mobile)
150
+		fmt.Println("token-------------------------------------------------------", token)
148
 		expiration, _ := beego.AppConfig.Int64("mobile_token_expiration_second")
151
 		expiration, _ := beego.AppConfig.Int64("mobile_token_expiration_second")
149
 		this.Ctx.SetCookie("token_cookie", token, expiration, "/")
152
 		this.Ctx.SetCookie("token_cookie", token, expiration, "/")
153
+
154
+		fmt.Println("cookie获取--------------------------------------------------", this.Ctx.GetCookie("token_cookie"))
150
 		var configList interface{}
155
 		var configList interface{}
151
 		var dict_config_list interface{}
156
 		var dict_config_list interface{}
152
 
157
 

+ 2 - 2
controllers/print_data_api_controller.go View File

37
 	idStrs := strings.Split(schIDStr, ",")
37
 	idStrs := strings.Split(schIDStr, ",")
38
 	adminUserInfo := this.GetAdminUserInfo()
38
 	adminUserInfo := this.GetAdminUserInfo()
39
 
39
 
40
-	if this.GetAdminUserInfo().CurrentOrgId == 10016 || this.GetAdminUserInfo().CurrentOrgId == 9882 || this.GetAdminUserInfo().CurrentOrgId == 10138 || this.GetAdminUserInfo().CurrentOrgId == 10278 || this.GetAdminUserInfo().CurrentOrgId == 9841 || this.GetAdminUserInfo().CurrentOrgId == 9845 || this.GetAdminUserInfo().CurrentOrgId == 10081 {
40
+	if this.GetAdminUserInfo().CurrentOrgId == 10016 || this.GetAdminUserInfo().CurrentOrgId == 9882 || this.GetAdminUserInfo().CurrentOrgId == 10138 || this.GetAdminUserInfo().CurrentOrgId == 10278 || this.GetAdminUserInfo().CurrentOrgId == 9841 || this.GetAdminUserInfo().CurrentOrgId == 9845 || this.GetAdminUserInfo().CurrentOrgId == 10081 || this.GetAdminUserInfo().CurrentOrgId == 10215 {
41
 		schedules, getScheduleErr := service.GetSchedulesSeven(adminUserInfo.CurrentOrgId, idStrs)
41
 		schedules, getScheduleErr := service.GetSchedulesSeven(adminUserInfo.CurrentOrgId, idStrs)
42
 		for _, item := range schedules {
42
 		for _, item := range schedules {
43
 
43
 
127
 		})
127
 		})
128
 	}
128
 	}
129
 
129
 
130
-	if this.GetAdminUserInfo().CurrentOrgId != 10016 && this.GetAdminUserInfo().CurrentOrgId != 9882 && this.GetAdminUserInfo().CurrentOrgId != 10138 && this.GetAdminUserInfo().CurrentOrgId != 10278 && this.GetAdminUserInfo().CurrentOrgId != 9841 && this.GetAdminUserInfo().CurrentOrgId != 9845 && this.GetAdminUserInfo().CurrentOrgId != 10081 {
130
+	if this.GetAdminUserInfo().CurrentOrgId != 10016 && this.GetAdminUserInfo().CurrentOrgId != 9882 && this.GetAdminUserInfo().CurrentOrgId != 10138 && this.GetAdminUserInfo().CurrentOrgId != 10278 && this.GetAdminUserInfo().CurrentOrgId != 9841 && this.GetAdminUserInfo().CurrentOrgId != 9845 && this.GetAdminUserInfo().CurrentOrgId != 10081 && this.GetAdminUserInfo().CurrentOrgId != 10215 {
131
 		schedules, getScheduleErr := service.GetSchedules(adminUserInfo.CurrentOrgId, idStrs)
131
 		schedules, getScheduleErr := service.GetSchedules(adminUserInfo.CurrentOrgId, idStrs)
132
 		for _, item := range schedules {
132
 		for _, item := range schedules {
133
 			list, _ := service.GetDialysisOrderCountSeven(item.PatientID, item.ScheduleDate)
133
 			list, _ := service.GetDialysisOrderCountSeven(item.PatientID, item.ScheduleDate)