Browse Source

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

csx 4 years ago
parent
commit
cfb45e184d

+ 4 - 8
conf/app.conf View File

@@ -148,29 +148,25 @@ readmysqlhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
148 148
 readmysqlport = 3306
149 149
 readmysqluser = root
150 150
 readmysqlpass = 1Q2W3e4r!@#$
151
-//readmysqlname = test_xt
152
-readmysqlname = sgj_xt
151
+readmysqlname = test_xt
153 152
 
154 153
 writemysqlhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
155 154
 writemysqlport = 3306
156 155
 writemysqluser = root
157 156
 writemysqlpass = 1Q2W3e4r!@#$
158
-//writemysqlname = test_xt
159
-writemysqlname = sgj_xt
157
+writemysqlname = test_xt
160 158
 
161 159
 readuserhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
162 160
 readuserport = 3306
163 161
 readuseruser = root
164 162
 readuserpass = 1Q2W3e4r!@#$
165
-//readusername = test_users
166
-readusername = sgj_users
163
+readusername = test_users
167 164
 
168 165
 writeuserhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
169 166
 writeuserport = 3306
170 167
 writeuseruser = root
171 168
 writeuserpass = 1Q2W3e4r!@#$
172
-//writeusername = test_users
173
-writeusername = sgj_users
169
+writeusername = test_users
174 170
 
175 171
 
176 172
 readmiddlehost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com

+ 139 - 106
controllers/gobal_config_api_controller.go View File

@@ -160,89 +160,88 @@ func (c *GobalConfigApiController) PostPrintTemplate() {
160 160
 	return
161 161
 }
162 162
 
163
-//func (c *GobalConfigApiController) PostPrintTemplate() {
164
-//	template_id, _ := c.GetInt64("template_id", 0)
165
-//	adminUserInfo := c.GetAdminUserInfo()
166
-//	org_id := adminUserInfo.CurrentOrgId
167
-//	template := models.GobalTemplate{
168
-//		OrgId:      org_id,
169
-//		TemplateId: template_id,
170
-//		Status:     1,
171
-//		Ctime:      time.Now().Unix(),
172
-//		Mtime:      time.Now().Unix(),
173
-//	}
174
-//
175
-//	errs, templates := service.FindPrintTemplateByOrgId(org_id)
176
-//
177
-//	if errs == gorm.ErrRecordNotFound {
178
-//		err := service.CreatePrintTemplateRecord(&template)
179
-//		if err != nil {
180
-//			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeCreateConfig)
181
-//			return
182
-//		}
183
-//
184
-//		//if err == nil { //处理模版切换,显示配置处理逻辑
185
-//		//	//service.FindAllConfig
186
-//		//	//先将所有数据设置为显示
187
-//		//	updateErr := service.UpdateFiledConfig(adminUserInfo.CurrentOrgId)
188
-//		//	if updateErr == nil {
189
-//		//		//查出该模版对应显示配置字段中所有隐藏的字段
190
-//				_, config := service.FindAllHideFiledConfig(template_id)
191
-//		//
192
-//		//		var fileds []string
193
-//		//		for _, item := range config {
194
-//		//			fileds = append(fileds, item.FiledName)
195
-//		//		}
196
-//		//		service.UpdateShowFieldConfig(adminUserInfo.CurrentOrgId, fileds)
197
-//		//	}
198
-//		//
199
-//		//}
200
-//		//FiledList, _ := service.FindFiledByOrgId(adminUserInfo.CurrentOrgId)
201
-//		c.ServeSuccessJSON(map[string]interface{}{
202
-//			"template_id": template_id,
203
-//			//"fileds":      FiledList,
204
-//		})
205
-//
206
-//	} else if errs == nil {
207
-//		templates := models.GobalTemplate{
208
-//			ID:         templates.ID,
209
-//			OrgId:      org_id,
210
-//			TemplateId: template_id,
211
-//			Status:     1,
212
-//			Ctime:      templates.Ctime,
213
-//			Mtime:      time.Now().Unix(),
214
-//		}
215
-//
216
-//		err := service.UpdatePrintTemplate(&templates)
217
-//		if err != nil {
218
-//			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeCreateConfig)
219
-//			return
220
-//		}
221
-//
222
-//		if err == nil { //处理模版切换,显示配置处理逻辑
223
-//			//service.FindAllConfig
224
-//			//先将所有数据设置为显示
225
-//			updateErr := service.UpdateFiledConfig(adminUserInfo.CurrentOrgId)
226
-//			if updateErr == nil {
227
-//				//查出该模版对应显示配置字段中所有隐藏的字段
228
-//				_, config := service.FindAllHideFiledConfig(template_id)
229
-//				var fileds []string
230
-//				for _, item := range config {
231
-//					fileds = append(fileds, item.FiledName)
232
-//				}
233
-//				service.UpdateShowFieldConfig(adminUserInfo.CurrentOrgId, fileds)
234
-//
235
-//			}
236
-//
237
-//		}
238
-//		FiledList, _ := service.FindFiledByOrgId(adminUserInfo.CurrentOrgId)
239
-//		c.ServeSuccessJSON(map[string]interface{}{
240
-//			"template_id": template_id,
241
-//			"fileds":      FiledList,
242
-//		})
243
-//		return
244
-//	}
245
-//}
163
+func (c *GobalConfigApiController) PostPrintTemplateTwo() {
164
+	template_id, _ := c.GetInt64("template_id", 0)
165
+	adminUserInfo := c.GetAdminUserInfo()
166
+	org_id := adminUserInfo.CurrentOrgId
167
+	template := models.GobalTemplate{
168
+		OrgId:      org_id,
169
+		TemplateId: template_id,
170
+		Status:     1,
171
+		Ctime:      time.Now().Unix(),
172
+		Mtime:      time.Now().Unix(),
173
+	}
174
+
175
+	errs, templates := service.FindPrintTemplateByOrgId(org_id)
176
+
177
+	if errs == gorm.ErrRecordNotFound {
178
+		err := service.CreatePrintTemplateRecord(&template)
179
+		if err != nil {
180
+			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeCreateConfig)
181
+			return
182
+		}
183
+
184
+		if err == nil { //处理模版切换,显示配置处理逻辑
185
+			//service.FindAllConfig
186
+			//先将所有数据设置为显示
187
+			updateErr := service.UpdateFiledConfig(adminUserInfo.CurrentOrgId)
188
+			if updateErr == nil {
189
+				//查出该模版对应显示配置字段中所有隐藏的字段
190
+				_, config := service.FindAllHideFiledConfig(template_id)
191
+
192
+				var fileds []string
193
+				for _, item := range config {
194
+					fileds = append(fileds, item.FiledName)
195
+				}
196
+				service.UpdateShowFieldConfig(adminUserInfo.CurrentOrgId, fileds)
197
+			}
198
+		}
199
+		FiledList, _ := service.FindFiledByOrgId(adminUserInfo.CurrentOrgId)
200
+		c.ServeSuccessJSON(map[string]interface{}{
201
+			"template_id": template_id,
202
+			"fileds":      FiledList,
203
+		})
204
+
205
+	} else if errs == nil {
206
+		templates := models.GobalTemplate{
207
+			ID:         templates.ID,
208
+			OrgId:      org_id,
209
+			TemplateId: template_id,
210
+			Status:     1,
211
+			Ctime:      templates.Ctime,
212
+			Mtime:      time.Now().Unix(),
213
+		}
214
+
215
+		err := service.UpdatePrintTemplate(&templates)
216
+		if err != nil {
217
+			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeCreateConfig)
218
+			return
219
+		}
220
+
221
+		if err == nil { //处理模版切换,显示配置处理逻辑
222
+			//service.FindAllConfig
223
+			//先将所有数据设置为显示
224
+			updateErr := service.UpdateFiledConfig(adminUserInfo.CurrentOrgId)
225
+			if updateErr == nil {
226
+				//查出该模版对应显示配置字段中所有隐藏的字段
227
+				_, config := service.FindAllHideFiledConfig(template_id)
228
+				var fileds []string
229
+				for _, item := range config {
230
+					fileds = append(fileds, item.FiledName)
231
+				}
232
+				service.UpdateShowFieldConfig(adminUserInfo.CurrentOrgId, fileds)
233
+
234
+			}
235
+
236
+		}
237
+		FiledList, _ := service.FindFiledByOrgId(adminUserInfo.CurrentOrgId)
238
+		c.ServeSuccessJSON(map[string]interface{}{
239
+			"template_id": template_id,
240
+			"fileds":      FiledList,
241
+		})
242
+		return
243
+	}
244
+}
246 245
 
247 246
 func (c *GobalConfigApiController) GetPrintTemplate() {
248 247
 	adminUserInfo := c.GetAdminUserInfo()
@@ -1015,7 +1014,12 @@ func (this *GobalConfigApiController) ChangeOrg() {
1015 1014
 			}
1016 1015
 		}
1017 1016
 
1017
+		var didRegistedForSCRM bool = false
1018
+		var didRegistedForCDM bool = false
1019
+		var didRegistedForMall bool = false
1020
+
1018 1021
 		var curAppUrlfors []string
1022
+		var pruviews []*models.Purview
1019 1023
 
1020 1024
 		if len(curAppUrlfors) == 0 {
1021 1025
 			if adminUser.Id == tempOrg.Creator {
@@ -1027,30 +1031,56 @@ func (this *GobalConfigApiController) ChangeOrg() {
1027 1031
 				curAppUrlfors = append(curAppUrlfors, urlfors_scrm...)
1028 1032
 				curAppUrlfors = append(curAppUrlfors, urlfors_cdm...)
1029 1033
 				curAppUrlfors = append(curAppUrlfors, urlfors_mall...)
1034
+
1035
+				didRegistedForSCRM = true
1036
+				didRegistedForCDM = true
1037
+				didRegistedForMall = true
1038
+
1030 1039
 			} else {
1031 1040
 				appRole, _ := service.FindAdminUserIDA(appRole.Id)
1032
-				role_arr := strings.Split(appRole.RoleIds, ",")
1033
-				var ids string
1034
-				for _, role_id := range role_arr {
1035
-					id, _ := strconv.ParseInt(role_id, 10, 64)
1036
-					purview_ids, _ := service.GetRolePurviewIds(id)
1037
-					if len(ids) == 0 {
1038
-						ids = purview_ids
1039
-					} else {
1040
-						ids = ids + "," + purview_ids
1041
+				if appRole.Id > 0 && len(appRole.RoleIds) > 0 {
1042
+					role_arr := strings.Split(appRole.RoleIds, ",")
1043
+					var ids string
1044
+					for _, role_id := range role_arr {
1045
+						id, _ := strconv.ParseInt(role_id, 10, 64)
1046
+						purview_ids, _ := service.GetRolePurviewIds(id)
1047
+						if len(ids) == 0 {
1048
+							ids = purview_ids
1049
+						} else {
1050
+							ids = ids + "," + purview_ids
1051
+						}
1041 1052
 					}
1042
-				}
1053
+					if len(ids) != 0 {
1054
+						pruviews, _ = service.GetPurviewById(ids)
1055
+						for _, item := range pruviews {
1056
+							if item.Module == 3 && item.Parentid > 0 {
1057
+								fmt.Println(item.Urlfor)
1058
+								curAppUrlfors = append(curAppUrlfors, item.Urlfor)
1059
+							}
1060
+						}
1061
+					} else {
1043 1062
 
1044
-				pruviews, _ := service.GetPurviewById(ids)
1045
-				for _, item := range pruviews {
1046
-					if item.Module == 3 && item.Parentid > 0 {
1047
-						fmt.Println(item.Urlfor)
1048
-						curAppUrlfors = append(curAppUrlfors, item.Urlfor)
1063
+						curAppUrlfors = append(curAppUrlfors, "")
1049 1064
 					}
1065
+				} else {
1066
+					curAppUrlfors = append(curAppUrlfors, "")
1067
+
1050 1068
 				}
1051 1069
 			}
1052 1070
 		}
1053 1071
 
1072
+		for _, item := range pruviews {
1073
+			if item.Module == 6 {
1074
+				didRegistedForSCRM = true
1075
+			}
1076
+			if item.Module == 4 {
1077
+				didRegistedForCDM = true
1078
+			}
1079
+			if item.Module == 7 {
1080
+				didRegistedForMall = true
1081
+			}
1082
+		}
1083
+
1054 1084
 		userInfo := map[string]interface{}{
1055 1085
 			"id":         adminUser.Id,
1056 1086
 			"mobile":     adminUser.Mobile,
@@ -1099,14 +1129,17 @@ func (this *GobalConfigApiController) ChangeOrg() {
1099 1129
 		this.SetSession("admin_user_info", adminUserInfo)
1100 1130
 
1101 1131
 		this.ServeSuccessJSON(map[string]interface{}{
1102
-			"user":           userInfo,
1103
-			"org":            org,
1104
-			"urlfors":        curAppUrlfors,
1105
-			"current_org_id": adminUserInfo.CurrentOrgId,
1106
-			"current_app_id": adminUserInfo.CurrentAppId,
1107
-			"subscibe":       subscibe,
1108
-			"template_info":  template_info,
1109
-			"fileds":         FiledList,
1132
+			"user":            userInfo,
1133
+			"org":             org,
1134
+			"urlfors":         curAppUrlfors,
1135
+			"current_org_id":  adminUserInfo.CurrentOrgId,
1136
+			"current_app_id":  adminUserInfo.CurrentAppId,
1137
+			"subscibe":        subscibe,
1138
+			"template_info":   template_info,
1139
+			"fileds":          FiledList,
1140
+			"scrm_role_exist": didRegistedForSCRM,
1141
+			"cdm_role_exist":  didRegistedForCDM,
1142
+			"mall_role_exist": didRegistedForMall,
1110 1143
 		})
1111 1144
 
1112 1145
 	}

+ 2 - 0
controllers/mobile_api_controllers/dialysis_api_controller.go View File

@@ -2248,6 +2248,8 @@ func (c *DialysisAPIController) PostDialysisPrescription() {
2248 2248
 
2249 2249
 		prescription.CreatedTime = dialysisPrescription.CreatedTime
2250 2250
 		prescription.Modifier = adminUserInfo.AdminUser.Id
2251
+		prescription.Creater = dialysisPrescription.Creater
2252
+
2251 2253
 		prescription.PrescriptionDoctor = adminUserInfo.AdminUser.Id
2252 2254
 		prescription.ID = dialysisPrescription.ID
2253 2255
 		err := service.UpDateDialysisPrescription(&prescription)

+ 10 - 10
controllers/new_mobile_api_controllers/role.json View File

@@ -7,8 +7,8 @@
7 7
       "status": 1,
8 8
       "is_system": 1,
9 9
       "number": 9999,
10
-      "purview_ids": "49,71,72,70,74,75,73,127,128,48,52,110,94,111,112,113,114,115,116,117,118,119,129,84,93,121,122,124,125,120,77,78,79,80,76,156,157,158,159,155,82,83,108,149,154,190,81,101,100,102,161,160,162,163,165,170,169,171,172,173,174,177,175,178,180,179,181,186,185,187,188,189,192,81,82,83,104,106,107,108,149,154,190,191",
11
-      "func_ids": "20001,20002,20003,20004,20005,20006,20007,20008,20010,20011,20012,20024,20025,20026,20027,20028,20030,20034,20035,20036,20038,20039,20040,20041,20042,20043,20044,20045,20046,20047,20048,20049,20050,20054"
10
+      "purview_ids": "71,72,70,74,75,73,48,52,110,49,77,78,79,80,197,76,111,112,113,114,115,116,117,118,119,129,84,93,121,122,124,125,120,127,128,201,193,194,196,192,158,157,159,160,161,162,167,166,168,169,170,171,174,173,175,178,177,179,101,100,102",
11
+      "func_ids": "20001,20002,20003,20004,20005,20006,20007,20008,20009,20010,20011,20012,20034,20035,20036,20038,20039,20055,20056,20040,20041,20042,20043,20054,20044,20045,20046,20047,20048,20049,20050,20051,20052,20053,20013,20014,20015,20016,20017,20018,20019,20020,20021,20022,20023,20024,20025,20026,20027,20028,20029,20030"
12 12
     },
13 13
     {
14 14
       "role_name": "医生",
@@ -17,8 +17,8 @@
17 17
       "status": 1,
18 18
       "is_system": 2,
19 19
       "number": 9998,
20
-      "purview_ids": "49,71,72,70,74,75,73,127,128,48,52,110,93,121,122,124,125,120,101,100,102,156,157,158,159,15571,72,70,74,75,73,127,128,48,52,110,93,121,122,124,125,120,101,100,102,156,157,158,159,155",
21
-      "func_ids": "20001,20002,20004,20005,20007,20008,20010,20011,20012,20034,20035,20040,20041,20043,20044,20046,20047,20049,20024,20025,20026,20027,20028,20030"
20
+      "purview_ids": "71,72,70,74,75,73,48,52,110,77,78,79,80,197,76,93,121,122,124,125,120,127,128,193,194,196,192,101,100,102,49",
21
+      "func_ids": "20001,20002,20003,20004,20005,20006,20007,20008,20009,20010,20011,20012,20034,20035,20036,20038,20040,20041,20043,20044,20046,20047,20049,20024,20025,20026,20027,20028,20029,20030"
22 22
 
23 23
 
24 24
     },
@@ -29,8 +29,8 @@
29 29
       "status": 1,
30 30
       "is_system": 3,
31 31
       "number": 9997,
32
-      "purview_ids": "49,74,75,73,48,52,110,93,121,122,124,125,120",
33
-      "func_ids": "20007,20008,20010,20011,20012,20055,20056,20013,20014,20016,20017,20019,20021,20022,20024,20025,20026,20027,20028,20051,20052,20053"
32
+      "purview_ids": "71,72,70,74,75,73,127,128,48,49,52,110,111,112,113,114,115,116,117,118,119,129,84,77,78,79,80,197,76",
33
+      "func_ids": "20007,20008,20009,20010,20011,20051,20053,20013,20014,20016,20017,20019,20021,20022,20024,20025,20026,20027,20028,20029"
34 34
     },
35 35
     {
36 36
       "role_name": "库存",
@@ -39,7 +39,7 @@
39 39
       "status": 1,
40 40
       "is_system": 0,
41 41
       "number": 9996,
42
-      "purview_ids": "94,111,112,113,114,115,116,117,118,119,129,84",
42
+      "purview_ids": "111,112,113,114,115,116,117,118,119,129,84",
43 43
       "func_ids": ""
44 44
 
45 45
 
@@ -51,7 +51,7 @@
51 51
       "status": 1,
52 52
       "is_system": 0,
53 53
       "number": 9995,
54
-      "purview_ids": "161,160,162,163,165,170,169,171,172,173,174,177,175,178,180,179,181,186,185,187,188,189,192",
54
+      "purview_ids": "48,110,158,157,159,160,161,162,167,166,168,169,170,171,174,173,175,178,177,179,201",
55 55
       "func_ids": ""
56 56
 
57 57
 
@@ -63,7 +63,7 @@
63 63
       "status": 1,
64 64
       "is_system": 0,
65 65
       "number": 9994,
66
-      "purview_ids": "77,78,79,80,76,191",
66
+      "purview_ids": "77,78,79,80,197,76",
67 67
       "func_ids": ""
68 68
 
69 69
 
@@ -75,7 +75,7 @@
75 75
       "status": 1,
76 76
       "is_system": 0,
77 77
       "number": 9993,
78
-      "purview_ids": "49,71,72,70,74,75,73,127,128,48,52,110,94,111,112,113,114,115,116,117,118,119,129,84,93,121,122,124,125,120,77,78,79,80,76,156,157,158,159,155,82,83,108,149,154,190,81,101,100,102,161,160,162,163,165,170,169,171,172,173,174,177,175,178,180,179,181,186,185,187,188,189,192",
78
+      "purview_ids": "71,72,70,74,75,73,48,52,110,111,112,113,114,115,116,117,118,119,129,84,93,121,122,124,125,120,77,78,79,80,197,76,101,100,102,127,128,158,157,159,160,161,162,167,166,168,169,170,171,174,173,175,178,177,179,201",
79 79
       "func_ids": ""
80 80
 
81 81
 

+ 6 - 6
controllers/role.json View File

@@ -7,8 +7,8 @@
7 7
       "status": 1,
8 8
       "is_system": 1,
9 9
       "number": 9999,
10
-      "purview_ids": "49,71,72,70,74,75,73,127,128,48,52,110,94,111,112,113,114,115,116,117,118,119,129,84,93,121,122,124,125,120,77,78,79,80,76,156,157,158,159,155,82,83,108,149,154,190,81,101,100,102,161,160,162,163,165,170,169,171,172,173,174,177,175,178,180,179,181,186,185,187,188,189,192,81,82,83,104,106,107,108,149,154,190,191",
11
-      "func_ids": "20001,20002,20003,20004,20005,20006,20007,20008,20010,20011,20012,20024,20025,20026,20027,20028,20030,20034,20035,20036,20038,20039,20040,20041,20042,20043,20044,20045,20046,20047,20048,20049,20050,20054"
10
+      "purview_ids": "71,72,70,74,75,73,48,52,110,49,77,78,79,80,197,76,111,112,113,114,115,116,117,118,119,129,84,93,121,122,124,125,120,127,128,201,193,194,196,192,158,157,159,160,161,162,167,166,168,169,170,171,174,173,175,178,177,179,101,100,102",
11
+      "func_ids": "20001,20002,20003,20004,20005,20006,20007,20008,20009,20010,20011,20012,20034,20035,20036,20038,20039,20055,20056,20040,20041,20042,20043,20054,20044,20045,20046,20047,20048,20049,20050,20051,20052,20053,20013,20014,20015,20016,20017,20018,20019,20020,20021,20022,20023,20024,20025,20026,20027,20028,20029,20030"
12 12
     },
13 13
     {
14 14
       "role_name": "医生",
@@ -17,8 +17,8 @@
17 17
       "status": 1,
18 18
       "is_system": 2,
19 19
       "number": 9998,
20
-      "purview_ids": "49,71,72,70,74,75,73,127,128,48,52,110,93,121,122,124,125,120,101,100,102,156,157,158,159,15571,72,70,74,75,73,127,128,48,52,110,93,121,122,124,125,120,101,100,102,156,157,158,159,155",
21
-      "func_ids": "20001,20002,20004,20005,20007,20008,20010,20011,20012,20034,20035,20040,20041,20043,20044,20046,20047,20049,20024,20025,20026,20027,20028,20030"
20
+      "purview_ids": "71,72,70,74,75,73,48,52,110,77,78,79,80,197,76,93,121,122,124,125,120,127,128,193,194,196,192,101,100,102,49",
21
+      "func_ids": "20001,20002,20003,20004,20005,20006,20007,20008,20009,20010,20011,20012,20034,20035,20036,20038,20040,20041,20043,20044,20046,20047,20049,20024,20025,20026,20027,20028,20029,20030"
22 22
 
23 23
 
24 24
     },
@@ -29,8 +29,8 @@
29 29
       "status": 1,
30 30
       "is_system": 3,
31 31
       "number": 9997,
32
-      "purview_ids": "49,74,75,73,48,52,110,93,121,122,124,125,120",
33
-      "func_ids": "20007,20008,20010,20011,20012,20055,20056,20013,20014,20016,20017,20019,20021,20022,20024,20025,20026,20027,20028,20051,20052,20053"
32
+      "purview_ids": "71,72,70,74,75,73,127,128,48,49,52,110,111,112,113,114,115,116,117,118,119,129,84,77,78,79,80,197,76",
33
+      "func_ids": "20007,20008,20009,20010,20011,20051,20053,20013,20014,20016,20017,20019,20021,20022,20024,20025,20026,20027,20028,20029"
34 34
     }
35 35
   ]
36 36
 }

+ 7 - 0
controllers/verify_login_controller.go View File

@@ -224,6 +224,13 @@ func (this *VerifyUserLoginAPIController) VerifyToken() {
224 224
 				}
225 225
 			}
226 226
 
227
+			if adminUser.Id == curOrg.Creator { //超级管理员
228
+				didRegistedForSCRM = true
229
+				didRegistedForCDM = true
230
+				didRegistedForMall = true
231
+
232
+			}
233
+
227 234
 			subscibe, _ := service.GetOrgSubscibe(adminUserInfo.CurrentOrgId)
228 235
 
229 236
 			this.SetSession("admin_user_info", adminUserInfo)

+ 2 - 0
service/orginfo_service.go View File

@@ -2,6 +2,7 @@ package service
2 2
 
3 3
 import (
4 4
 	"XT_New/models"
5
+	"fmt"
5 6
 	"github.com/jinzhu/gorm"
6 7
 	"strconv"
7 8
 	"time"
@@ -124,6 +125,7 @@ func createOrgApp(tx *gorm.DB, superAdminRole *models.Role, userName string, app
124 125
 			app_id = app.ID
125 126
 
126 127
 		}
128
+		fmt.Println(item.VMOrgApp)
127 129
 
128 130
 		for _, subItem := range item.VMOrgApp {
129 131
 			app := &VMOrgApp{