初始化项目
This commit is contained in:
31
UI/App_Data/Userinfo/2022-06-21.txt
Normal file
31
UI/App_Data/Userinfo/2022-06-21.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
类型:调试日志 时间:2022/6/21 星期二 11:59:09 内容:{"Id":0,"Uid":"test","Pwd":"698EEF65FEF3C0958DC861FAEBC9A560","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":3,"Desc":"暂无描述","CreateTime":"2022-06-21T11:59:09.6749998+08:00","EndTime":"2022-08-21T11:58:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 11:59:13 内容:{"Id":0,"Uid":"test","Pwd":"6FC36016DB8C4255203D73EEA7E46DEE","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":3,"Desc":"暂无描述","CreateTime":"2022-06-21T11:59:13.4939179+08:00","EndTime":"2022-08-21T11:58:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 11:59:18 内容:{"Id":0,"Uid":"test","Pwd":"24605ED970525CD2CA2AC1A8B1F09EB1","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":3,"Desc":"暂无描述","CreateTime":"2022-06-21T11:59:18.0126213+08:00","EndTime":"2022-08-21T11:58:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 13:48:34 内容:{"Id":0,"Uid":"oyy","Pwd":"98AB462BBA13EC5072D0EAFF398B8073","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T13:46:52.3231638+08:00","EndTime":"2022-08-21T13:46:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 14:13:28 内容:{"Id":0,"Uid":"oyy","Pwd":"8ADE72EB9DB99F264F1FA78F08ACA875","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T14:11:18.4485399+08:00","EndTime":"2022-08-21T14:10:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 14:15:08 内容:{"Id":0,"Uid":"oyy","Pwd":"6C7326D260FB46B6A222D3F6B1BA1700","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T14:15:08.814993+08:00","EndTime":"2022-08-21T14:10:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 14:16:08 内容:{"Id":0,"Uid":"oyb","Pwd":"071851F61822BF10C4F475353503DE3F","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T14:16:08.2773329+08:00","EndTime":"2022-08-21T14:10:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 14:26:45 内容:{"Id":0,"Uid":"oby","Pwd":"AE0D4303482AD846D2CCE7960A5167D8","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T14:26:45.3895427+08:00","EndTime":"2022-08-21T14:26:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 15:20:59 内容:{"Id":0,"Uid":"1234","Pwd":"58BE482CA9AEA1291B0E528254B18EFD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T15:18:11.2058137+08:00","EndTime":"2022-08-21T15:17:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 15:22:11 内容:{"Id":0,"Uid":"1234","Pwd":"79F2E7DDF6799D4F40E6F71FF1BA4EE2","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T15:22:11.2880862+08:00","EndTime":"2022-08-21T15:17:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 15:22:44 内容:{"Id":0,"Uid":"12345","Pwd":"CF26746012C04BFE429F45134CC66EFF","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T15:22:30.7698754+08:00","EndTime":"2022-08-21T15:17:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 15:28:26 内容:{"Id":0,"Uid":"123546","Pwd":"5D8221FB5E5FE48FAFA732C2B7793A90","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T15:28:26.424962+08:00","EndTime":"2022-08-21T15:28:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 15:31:21 内容:{"Id":0,"Uid":"测试","Pwd":"B53925619B455EBC39C22FEA4F3EF857","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T15:31:21.779578+08:00","EndTime":"2022-08-21T15:31:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 17:36:31 内容:{"Id":453,"Uid":"测试","Pwd":"B53925619B455EBC39C22FEA4F3EF857","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无","CreateTime":"2022-06-21T15:31:21.78","EndTime":"2022-08-21T15:31:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 17:36:47 内容:{"Id":453,"Uid":"测试","Pwd":"B53925619B455EBC39C22FEA4F3EF857","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"测试","CreateTime":"2022-06-21T15:31:21.78","EndTime":"2022-08-21T15:31:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:30:13 内容:{"Id":0,"Uid":"12345","Pwd":"3D3D9C63C32AC95E67D9CCA2DA799D07","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:30:10.9351692+08:00","EndTime":"2022-08-21T20:29:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:30:33 内容:{"Id":0,"Uid":"12345","Pwd":"318F9837C79BE908CE0CB3639FD37347","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:30:33.412588+08:00","EndTime":"2022-08-21T20:29:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:30:37 内容:{"Id":0,"Uid":"12345","Pwd":"22DA8B56E5C45C445E52349BDC4F4BB4","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:30:37.5475211+08:00","EndTime":"2022-08-21T20:29:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:30:42 内容:{"Id":0,"Uid":"12345","Pwd":"BB18CD53C9CB3D3AB5B74334DF2FCFD9","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:30:42.3942912+08:00","EndTime":"2022-08-21T20:29:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:30:45 内容:{"Id":0,"Uid":"12345","Pwd":"5F277112203B94A2043FF8C2A0290C55","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:30:45.900357+08:00","EndTime":"2022-08-21T20:29:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:31:37 内容:{"Id":0,"Uid":"12345","Pwd":"1A236FD58C55843BE4D4E78F407548C3","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:31:37.942848+08:00","EndTime":"2022-08-21T20:29:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:33:08 内容:{"Id":0,"Uid":"12345","Pwd":"94C7111171272ED6D8C3BAEE38465405","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:32:34.5810396+08:00","EndTime":"2022-08-21T20:29:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:34:36 内容:{"Id":0,"Uid":"1234678","Pwd":"C71A9CEADAD168AE19644CF0D0138A36","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:34:36.3781086+08:00","EndTime":"2022-08-21T20:29:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:35:17 内容:{"Id":0,"Uid":"1234678","Pwd":"D55484973A67AF8FBF7ECF6C62DA2A30","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:35:07.8095186+08:00","EndTime":"2022-08-21T20:29:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:35:57 内容:{"Id":0,"Uid":"567789","Pwd":"CFA28A2B92631984EEEFA4FAF0404639","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:35:57.3414625+08:00","EndTime":"2022-08-21T20:29:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:38:30 内容:{"Id":0,"Uid":"5467","Pwd":"997CE53515D6F15EA53475B22DF79DD1","PwdSee":"567","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:38:30.2847023+08:00","EndTime":"2022-08-21T20:38:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:38:42 内容:{"Id":0,"Uid":"678","Pwd":"41C368E52BD29325BCDC2030D6E9A975","PwdSee":"567","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:38:42.1361108+08:00","EndTime":"2022-08-21T20:38:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:43:03 内容:{"Id":0,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:43:02.9900648+08:00","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:43:25 内容:{"Id":456,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述456456","CreateTime":"2022-06-21T20:43:03","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:44:32 内容:{"Id":456,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无","CreateTime":"2022-06-21T20:43:03","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/21 星期二 20:45:45 内容:{"Id":456,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":20,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:43:03","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
8
UI/App_Data/Userinfo/2022-06-22.txt
Normal file
8
UI/App_Data/Userinfo/2022-06-22.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
类型:调试日志 时间:2022/6/22 星期三 11:45:54 内容:{"Id":456,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:43:03","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/22 星期三 19:24:41 内容:{"Id":456,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:43:03","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/22 星期三 19:44:44 内容:{"Id":456,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:43:03","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/22 星期三 20:31:33 内容:{"Id":456,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-21T20:43:03","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":1,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/22 星期三 20:32:02 内容:{"Id":456,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂","CreateTime":"2022-06-21T20:43:03","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":1,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/22 星期三 20:33:05 内容:{"Id":456,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂","CreateTime":"2022-06-21T20:43:03","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":1,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/22 星期三 20:33:20 内容:{"Id":456,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂","CreateTime":"2022-06-21T20:43:03","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":1,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/22 星期三 20:35:49 内容:{"Id":456,"Uid":"5546456","Pwd":"47322DB6FE75F6568D8D30295870C6BD","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂","CreateTime":"2022-06-21T20:43:03","EndTime":"2022-08-21T20:42:00","CreatedBy":"by","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":2,"OldId":0,"Autho":0}
|
||||
1
UI/App_Data/Userinfo/2022-06-28.txt
Normal file
1
UI/App_Data/Userinfo/2022-06-28.txt
Normal file
@@ -0,0 +1 @@
|
||||
类型:调试日志 时间:2022/6/28 星期二 17:12:20 内容:{"Id":325,"Uid":"wydj","Pwd":"DC4BB9846C9FD8FC3B0D1C50B4E1E0DF","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":1,"Age":18,"IsValid":0,"Desc":"暂无描述99","CreateTime":"2021-12-27T18:17:16.74","EndTime":"2029-02-27T18:16:00","CreatedBy":"oy","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":1,"OldId":0,"Autho":0}
|
||||
2
UI/App_Data/Userinfo/2022-06-29.txt
Normal file
2
UI/App_Data/Userinfo/2022-06-29.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
类型:调试日志 时间:2022/6/29 星期三 16:32:08 内容:{"Id":0,"Uid":"ouu","Pwd":"15472FD999186A6D522DF9F98645B223","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-29T16:32:00.3042869+08:00","EndTime":"2022-08-29T16:31:00","CreatedBy":"oy","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/29 星期三 16:32:31 内容:{"Id":0,"Uid":"ouu","Pwd":"D39CC9D382D6008478EC0277D01E6974","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-29T16:32:31.3358972+08:00","EndTime":"2022-08-29T16:31:00","CreatedBy":"oy","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
2
UI/App_Data/Userinfo/2022-06-30.txt
Normal file
2
UI/App_Data/Userinfo/2022-06-30.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
类型:调试日志 时间:2022/6/30 星期四 10:01:18 内容:{"Id":0,"Uid":"ceshi","Pwd":"2C71A9B58166833DF86EAC33FEC37F76","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-30T10:01:18.4719865+08:00","EndTime":"2022-08-30T10:01:00","CreatedBy":"oy","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
类型:调试日志 时间:2022/6/30 星期四 10:01:39 内容:{"Id":0,"Uid":"ceshi","Pwd":"9BA128553633C09A3191A650BA90499F","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":0,"Desc":"暂无描述","CreateTime":"2022-06-30T10:01:39.7273688+08:00","EndTime":"2022-08-30T10:01:00","CreatedBy":"oy","HotelID":0,"HotelGroupID":0,"IsImport":0,"Company":0,"OldId":0,"Autho":0}
|
||||
1
UI/App_Data/Userinfo/2023-03-31.txt
Normal file
1
UI/App_Data/Userinfo/2023-03-31.txt
Normal file
@@ -0,0 +1 @@
|
||||
类型:调试日志 时间:2023/3/31 11:51:33 内容:{"Id":0,"Uid":"test1","Pwd":"5DADFBEA43ACD695A26B3D8EA82EDAAB","PwdSee":"test1","HeadImg":"defaultboy.png","Sex":0,"Age":18,"IsValid":3,"Desc":"暂无描述","CreateTime":"2023-03-31T11:51:33.4534344+08:00","EndTime":"2023-05-31T11:51:00","CreatedBy":"oy","HotelID":0,"HotelGroupID":0,"IsImport":0,"Hotel_Count":0,"Hotel_Data":"","Company":0,"OldId":0,"Autho":0}
|
||||
1
UI/App_Data/Userinfo/2023-04-06.txt
Normal file
1
UI/App_Data/Userinfo/2023-04-06.txt
Normal file
File diff suppressed because one or more lines are too long
1
UI/App_Data/Userinfo/2023-10-14.txt
Normal file
1
UI/App_Data/Userinfo/2023-10-14.txt
Normal file
@@ -0,0 +1 @@
|
||||
类型:调试日志 时间:2023/10/14 14:55:05 内容:{"Id":0,"Uid":"testsunjinli1","Pwd":"F2FDA244E94AF6EC82ED5109B6831B1C","PwdSee":"123456","HeadImg":"defaultboy.png","Sex":0,"Age":19,"IsValid":0,"Desc":"暂无描述","CreateTime":"2023-10-14T14:54:06.4483131+08:00","EndTime":"2023-12-14T14:50:00","CreatedBy":"oy","HotelID":0,"HotelGroupID":0,"IsImport":0,"Hotel_Count":0,"Hotel_Data":"","Company":0,"OldId":0,"Autho":0,"SyncTime":"2023-10-14T14:54:06.4483131+08:00"}
|
||||
1
UI/App_Data/Userinfo/2023-11-03.txt
Normal file
1
UI/App_Data/Userinfo/2023-11-03.txt
Normal file
File diff suppressed because one or more lines are too long
24
UI/App_Data/configs/AllAutho.sql
Normal file
24
UI/App_Data/configs/AllAutho.sql
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
DECLARE @Hotel int;
|
||||
--临时表记录下一个插入的酒店信息
|
||||
CREATE TABLE #dtCartCount(Hotels INT);
|
||||
-- 获取所有的用户酒店信息
|
||||
select * into Datainfo from qxifo where [uid] = '{{uid}}'
|
||||
--CREATE TABLE Datainfo select * FROM #TEMP;
|
||||
select @Hotel = count(*) from Datainfo -- where [uid] = {{uid}};
|
||||
print @Hotel
|
||||
while @Hotel >0
|
||||
begin
|
||||
set @Hotel = @Hotel-1
|
||||
INSERT INTO #dtCartCount(Hotels)
|
||||
exec('select top 1 Id from Datainfo where [uid] = {{uid}} and id not in (select top '+ @Hotel +' id from Datainfo where [uid] = {{uid}} )')
|
||||
|
||||
insert UserAuthoes(UserId,AuthorityId,AuthotypeId,HotelId)
|
||||
select '{{uid}}',id ,(case parsename(REPLACE(AuthoStatusTypeId,',','.'),1) when '6' then parsename(REPLACE(AuthoStatusTypeId,',','.'),2) else parsename(REPLACE(AuthoStatusTypeId,',','.'),1) end) as AuthoStatusTypeId ,(SELECT top 1 Hotels FROM #dtCartCount) from Authority where
|
||||
-- id in (select AuthorityId from AppAutho where appid = 1 or (SELECT Count(*) FROM OrgUsers where UserId='{{uid}}' and OrgId=5)>0 )
|
||||
-- and
|
||||
(select count(*) from UserAuthoes where HotelId = (SELECT top 1 Hotels FROM #dtCartCount) and UserAuthoes.AuthorityId = Authority.id and UserAuthoes.userid = '{{uid}}') <= 0
|
||||
delete from #dtCartCount
|
||||
end
|
||||
drop table #dtCartCount
|
||||
drop table Datainfo
|
||||
9
UI/App_Data/configs/AuthoRecord.sql
Normal file
9
UI/App_Data/configs/AuthoRecord.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
create table AuthoRecord
|
||||
(
|
||||
Id int identity(1,1) primary key not null,
|
||||
Userid int not null,
|
||||
AppId int not null,
|
||||
[Count] int not null,
|
||||
CreateTime datetime not null default getdate()
|
||||
|
||||
)
|
||||
57
UI/App_Data/configs/Constraint.sql
Normal file
57
UI/App_Data/configs/Constraint.sql
Normal file
@@ -0,0 +1,57 @@
|
||||
--<EFBFBD>û<EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><EFBFBD>
|
||||
alter table UserInfo add constraint udefaultimg default '0' for sex
|
||||
alter table UserInfo add constraint udefaulHeadImg default 'default.png' for HeadImg
|
||||
alter table UserInfo add constraint udefaultage default '18' for Age
|
||||
alter table UserInfo add constraint udefaultCreateTime default getdate() for CreateTime
|
||||
alter table UserInfo add constraint udefaultIsValid default '0' for IsValid
|
||||
alter table UserInfo add constraint udefaultCreatedBy default 'ϵͳ' for CreatedBy
|
||||
alter table UserInfo add constraint udefaultPwdSee default 'δ֪' for PwdSee
|
||||
alter table UserInfo add constraint udefaultHotelID default '0' for HotelID
|
||||
alter table UserInfo add constraint udefaultIsImport default '0' for IsImport
|
||||
alter table UserInfo add constraint udefaultCompany default '0' for Company
|
||||
alter table UserInfo add constraint udefaultEndTime default Dateadd(month ,2,getdate()) for EndTime
|
||||
--alter table UserInfo add constraint udefaultHotelGroupID default '-1' for HotelGroupID
|
||||
ALTER TABLE UserInfo ALTER COLUMN [HotelGroupID] int NULL;
|
||||
|
||||
--appȨ<EFBFBD>ޱ<EFBFBD>Լ<EFBFBD><EFBFBD>
|
||||
alter table AppAutho add constraint aadefaultCreatedBy default 'ϵͳ' for CreatedBy
|
||||
alter table AppAutho add constraint aadefaultCreateTime default getdate() for CreateTime
|
||||
|
||||
--app<EFBFBD><EFBFBD>Լ<EFBFBD><EFBFBD>ApplicationDomain
|
||||
alter table ApplicationDomain add constraint appdefaultCreateTime default getdate() for CreateTime
|
||||
alter table ApplicationDomain add constraint appdefaultCreatedBy default 'ϵͳ' for CreatedBy
|
||||
alter table ApplicationDomain add constraint appdefaultIsValid default '0' for IsValid
|
||||
|
||||
--Ȩ<EFBFBD>ޱ<EFBFBD>Authority
|
||||
alter table Authority add constraint audefaultCreateTime default getdate() for CreateTime
|
||||
alter table Authority add constraint audefaultCreatedBy default 'ϵͳ' for CreatedBy
|
||||
alter table Authority add constraint audefaultIsValid default '0' for IsValid
|
||||
|
||||
|
||||
-- AuthoStatusType Ȩ<><C8A8>״̬<D7B4><CCAC>
|
||||
alter table AuthoStatusType add constraint astdefaultCreateTime default getdate() for CreateTime
|
||||
alter table AuthoStatusType add constraint astdefaultCreatedBy default 'ϵͳ' for CreatedBy
|
||||
|
||||
--Organization <EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
alter table Organization add constraint orgtdefaultCreateTime default getdate() for CreateTime
|
||||
alter table Organization add constraint orgdefaultCreatedBy default 'ϵͳ' for CreatedBy
|
||||
alter table Organization add constraint orgdefaultIsDefault default '0' for IsDefault
|
||||
alter table Organization add constraint orgdefaultIsValid default '0' for IsValid
|
||||
|
||||
--<EFBFBD>û<EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD>ޱ<EFBFBD> OrgAuthority
|
||||
alter table OrgAuthority add constraint orgatdefaultCreateTime default getdate() for CreateTime
|
||||
alter table OrgAuthority add constraint orgadefaultCreatedBy default 'ϵͳ' for CreatedBy
|
||||
|
||||
--<EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><EFBFBD><EFBFBD> OrgUsers
|
||||
alter table OrgUsers add constraint orgudefaultCreateTime default getdate() for CreateTime
|
||||
alter table OrgUsers add constraint orgudefaultCreatedBy default 'ϵͳ' for CreatedBy
|
||||
|
||||
--<EFBFBD>û<EFBFBD>Ȩ<EFBFBD>ޱ<EFBFBD> UserAuthoes
|
||||
alter table UserAuthoes add constraint uadefaultCreateTime default getdate() for CreateTime
|
||||
alter table UserAuthoes add constraint uadefaultCreatedBy default 'ϵͳ' for CreatedBy
|
||||
|
||||
|
||||
|
||||
-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC>
|
||||
|
||||
alter table Hosts alter column RoomStatusID int null
|
||||
42
UI/App_Data/configs/GSQX.sql
Normal file
42
UI/App_Data/configs/GSQX.sql
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
|
||||
--declare @gs int
|
||||
--exec FindGs '{{UID}}', @gs out
|
||||
--select @gs, case @gs when 1 then 'zh' when 2 then 'jh' else 'blv' end
|
||||
--公司信息查询完毕
|
||||
|
||||
|
||||
|
||||
|
||||
--DROP PROC FindJd
|
||||
--DROP PROC FindGs
|
||||
--SELECT * FROM UserInfo WHERE ID =220
|
||||
--select * from HotelGroups where id = (
|
||||
--select GroupId from Hotels where Hotels.Id = (select HotelID from UserInfo WHERE ID =220))
|
||||
|
||||
----------------------------------------------------------------------------------------------------查询用户 酒店权限信息
|
||||
--查找所有子集
|
||||
declare @param1 int
|
||||
declare @hotel int
|
||||
declare @HotelGroups int
|
||||
select @hotel = HotelID,@HotelGroups = HotelGroupID from UserInfo where id = '{{UID}}'
|
||||
if (@hotel !=0)
|
||||
begin
|
||||
select @HotelGroups =GroupId from Hotels where Hotels.Id = (select HotelID from UserInfo WHERE ID = '{{UID}}')
|
||||
end
|
||||
;
|
||||
with cte(id)
|
||||
as
|
||||
(--父项
|
||||
select id from HotelGroups where parentid = @HotelGroups
|
||||
union all
|
||||
--递归结果集中的下级
|
||||
select t.id from HotelGroups as t
|
||||
inner join cte as c on t.parentid = c.id
|
||||
)
|
||||
|
||||
select id = HotelId,HotelsName = (select Name from Hotels where id = HotelId),sum = count(*)
|
||||
from UserAuthoes where userid = '{{UID}}'
|
||||
and HotelId in (select id from Hotels where GroupId in ( select id from cte))
|
||||
and AuthotypeId !=1
|
||||
group by HotelId
|
||||
27827
UI/App_Data/configs/InitData.sql
Normal file
27827
UI/App_Data/configs/InitData.sql
Normal file
File diff suppressed because it is too large
Load Diff
114
UI/App_Data/configs/ViewInit.sql
Normal file
114
UI/App_Data/configs/ViewInit.sql
Normal file
@@ -0,0 +1,114 @@
|
||||
--ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ
|
||||
if Exists(select top 1 * from sysObjects where Id=OBJECT_ID(N'View_UserInfo') and xtype='U')
|
||||
Drop table View_UserInfo;
|
||||
if Exists(select top 1 * from sysObjects where Id=OBJECT_ID(N'View_UOA') and xtype='U')
|
||||
Drop table View_UOA;
|
||||
if Exists(select top 1 * from sysObjects where Id=OBJECT_ID(N'View_AppAutho') and xtype='U')
|
||||
Drop table View_AppAutho;
|
||||
if Exists(select top 1 * from sysObjects where Id=OBJECT_ID(N'View_UA') and xtype='U')
|
||||
Drop table View_UA;
|
||||
if Exists(SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME ='View_UserInfo')
|
||||
Drop table View_UserInfo;
|
||||
if Exists(SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME =N'View_UOA')
|
||||
Drop table View_UOA;
|
||||
if Exists(SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = N'View_AppAutho')
|
||||
Drop table View_AppAutho;
|
||||
if Exists(SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = N'View_UA')
|
||||
Drop table View_UA;
|
||||
if Exists(SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = N'View_MAClog')
|
||||
Drop table View_UA;
|
||||
--drop view View_UserInfo
|
||||
|
||||
--<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ
|
||||
exec('
|
||||
create view View_UOA
|
||||
as
|
||||
select distinct u.Id,u.Uid ,oa.HotelId,
|
||||
OrgId = o.id,
|
||||
o.OrganizationName,
|
||||
Orgdesc = o.[Desc] ,
|
||||
AppId = app.id,
|
||||
app.AppName,
|
||||
AppDesc = app.[Desc],
|
||||
AuthorityId =a.Id,
|
||||
a.AuthorityName,
|
||||
AuthDesc = a.[Desc] ,
|
||||
oa.AuthotypeId,
|
||||
AstName = ast.Name,
|
||||
AstDesc = ast.[Desc],
|
||||
Sfjc = (select count(*) from UserAuthoes where UserId = u.Id and AuthorityId = a.Id and AuthotypeId = oa.AuthotypeId and HotelId = oa.HotelId)
|
||||
from UserInfo u
|
||||
left join OrgUsers ou
|
||||
on u.id = ou.UserId
|
||||
left join Organization o
|
||||
on ou.OrgId = o.Id
|
||||
left join OrgAuthority oa
|
||||
on o.Id = oa.OrgId
|
||||
left join Authority a
|
||||
on a.Id = oa.AuthorityId
|
||||
left join AppAutho aa
|
||||
on a.Id = aa.AuthorityId
|
||||
left join ApplicationDomain app
|
||||
on aa.AppId = app.Id
|
||||
left join AuthoStatusType ast
|
||||
on oa.AuthotypeId = ast.Id
|
||||
where ou.OrgId is not null
|
||||
and oa.AuthorityId is not null;
|
||||
')
|
||||
exec('
|
||||
create view View_UA
|
||||
as
|
||||
select Id = ui.id ,IsValid = ui.IsValid ,ua.HotelId,
|
||||
Uid ,
|
||||
AppId = app.id,
|
||||
app.AppName,
|
||||
a.AuthorityName,
|
||||
AppDesc = app.[Desc],
|
||||
AuthorityId = a.Id,
|
||||
AuthDesc = a.[Desc] ,
|
||||
ua.AuthotypeId,
|
||||
AstName = ast.Name,
|
||||
AstDesc = ast.[Desc]
|
||||
from UserInfo ui
|
||||
left join
|
||||
UserAuthoes ua
|
||||
on ui.id = ua.UserId
|
||||
left join AppAutho aa
|
||||
on ua.AuthorityId = aa.AuthorityId
|
||||
left join ApplicationDomain app
|
||||
on aa.AppId = app.Id
|
||||
left join Authority a
|
||||
on a.Id = ua.AuthorityId
|
||||
left join AuthoStatusType ast
|
||||
on ua.AuthotypeId = ast.Id
|
||||
where ua.UserId is not null
|
||||
')
|
||||
exec('
|
||||
create view View_AppAutho
|
||||
as
|
||||
select AppId = APP.Id,
|
||||
AppName = app.AppName,
|
||||
AppDesc = app.[Desc],
|
||||
AuthorityId,
|
||||
AuthorityName,
|
||||
IsValid = app.IsValid,
|
||||
AuthorityDesc = auth.[Desc]
|
||||
from ApplicationDomain app left join AppAutho aa on app.Id = aa.AppId left join Authority auth on aa.AuthorityId = auth.id where aa.AuthorityId is not null
|
||||
')
|
||||
exec('create view View_UserInfo
|
||||
as
|
||||
select a.*,d.OrganizationName,c.OrgId,Authoncount = (select count(*) from UserAuthoes where UserAuthoes.UserId = a.Id and UserAuthoes.AuthotypeId!=1) from UserInfo a
|
||||
left join
|
||||
OrgUsers c
|
||||
on c.UserId = a.Id
|
||||
left join
|
||||
Organization d
|
||||
on
|
||||
c.OrgId = d.Id --WHERE a.Id IS NOT NULL and d.Id is not null')
|
||||
exec('create view View_MAClog
|
||||
as
|
||||
SELECT m.Id, m.HotelID, m.MAC, m.userid, m.location, m.Ip, m.ActionId, m.type, m.CreateTime, m.roomNumber, m.Status, u.Uid,
|
||||
ht.Name, ht.Id AS Hotelsid ,m.AppType
|
||||
FROM dbo.MACLogs AS m LEFT OUTER JOIN
|
||||
dbo.Hotels AS ht ON ht.Id = m.HotelID LEFT OUTER JOIN
|
||||
dbo.UserInfo AS u ON u.Id = m.userid')
|
||||
18
UI/App_Data/configs/appSettings.config
Normal file
18
UI/App_Data/configs/appSettings.config
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
<add key="ClientValidationEnabled" value="true" />
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||
<add key="RedisKey" value="authority" />
|
||||
<add key="RedisConn" value="127.0.0.1,defaultDatabase=13,password=123456,connectTimeout=10000,connectRetry=1,syncTimeout=10000,allowAdmin = true" />
|
||||
|
||||
|
||||
<!--<add key="RedisConn" value="127.0.0.1:7555,defaultDatabase=13,password=cw_oy_lsh,connectTimeout=10000,connectRetry=1,syncTimeout=10000,allowAdmin = true" />-->
|
||||
|
||||
<add key="DBName" value="authority" />
|
||||
<add key="Homeurl" value="http://localhost:53536/ImgServer/FileImage?url={{name}}" />
|
||||
<add key="IsSaveImg" value="0" />
|
||||
</appSettings>
|
||||
|
||||
112
UI/App_Data/configs/ccgc.txt
Normal file
112
UI/App_Data/configs/ccgc.txt
Normal file
@@ -0,0 +1,112 @@
|
||||
-- 创建存储过程 会把 tbnameold 的数据 同步到 tbname
|
||||
-- DROP PROCEDURE
|
||||
-- IF
|
||||
-- EXISTS porc_user;
|
||||
-- CREATE PROCEDURE porc_user (IN tbname varchar(20),IN tbnameold varchar(20)) BEGIN
|
||||
-- DECLARE
|
||||
-- error INTEGER DEFAULT 0;
|
||||
-- DECLARE
|
||||
-- CONTINUE HANDLER FOR SQLEXCEPTION
|
||||
-- SET error = 1;-- 初始化事务
|
||||
-- START TRANSACTION;-- 创建事务过程
|
||||
-- SET @sqlStmt = CONCAT('DROP TABLE IF EXISTS ', tbname);
|
||||
-- PREPARE stmt FROM @sqlStmt;
|
||||
-- EXECUTE stmt;
|
||||
-- SELECT @sqlStmt;
|
||||
-- SET @sqlStmt = CONCAT('CREATE TABLE ', tbname,' ( SELECT * FROM ',tbnameold,' )');
|
||||
-- PREPARE stmt FROM @sqlStmt;
|
||||
-- EXECUTE stmt;
|
||||
-- SELECT @sqlStmt;
|
||||
-- select error;
|
||||
-- IF
|
||||
-- error = 1 THEN-- 撤销事务
|
||||
-- ROLLBACK;
|
||||
-- ELSE -- 提交事务
|
||||
-- COMMIT;
|
||||
|
||||
-- END IF;
|
||||
|
||||
-- END;
|
||||
-- CALL porc_user ('hosts','hosts_')
|
||||
|
||||
|
||||
|
||||
DROP PROCEDURE
|
||||
IF
|
||||
EXISTS FindJd;
|
||||
DROP PROCEDURE
|
||||
IF
|
||||
EXISTS FindGs;
|
||||
DROP PROCEDURE
|
||||
IF
|
||||
EXISTS Findgsall;
|
||||
DROP PROCEDURE
|
||||
IF
|
||||
EXISTS hotelinfoall; -- 查询顶级酒店
|
||||
|
||||
|
||||
-- FindJd 查询顶级酒店
|
||||
|
||||
CREATE PROCEDURE FindJd (param1 INT,
|
||||
OUT param2 INT )
|
||||
BEGIN
|
||||
DECLARE parent_id INT DEFAULT 0;
|
||||
SELECT ParentId INTO parent_id FROM HotelGroups WHERE
|
||||
id = param1;
|
||||
IF(parent_id <= 1) THEN
|
||||
SELECT parent_id,param1;
|
||||
SET param2 = param1;
|
||||
ELSE
|
||||
SELECT parent_id,param1;
|
||||
CALL FindJd(parent_id, param2);
|
||||
END IF;
|
||||
END;
|
||||
|
||||
-- SELECT * FROM HotelGroups;
|
||||
|
||||
|
||||
-- go
|
||||
-- 查询某个用户公司
|
||||
create PROCEDURE FindGs(
|
||||
param1 INT,
|
||||
out param2 INT )
|
||||
BEGIN
|
||||
declare import_ int;
|
||||
declare hotel int;
|
||||
declare HotelGroups int;
|
||||
select isimport,HotelID,HotelGroupID,Company INTO import_ , hotel, HotelGroups, param2 from UserInfo where id = param1;
|
||||
if(import_ > 0)
|
||||
THEN
|
||||
if(hotel > 0)
|
||||
THEN
|
||||
select GroupId INTO HotelGroups from Hotels where Id = (select HotelID from UserInfo WHERE ID = param1) ;
|
||||
end if;
|
||||
call FindJd(HotelGroups, param2);
|
||||
end if;
|
||||
end;
|
||||
-- go
|
||||
-- SELECT * FROM UserInfo
|
||||
|
||||
-- exec FindGs 45, @gs out
|
||||
-- 查询所有用户公司信息
|
||||
-- go
|
||||
-- drop proc Findgsall
|
||||
-- 查询所有用户公司
|
||||
create PROCEDURE Findgsall()
|
||||
BEGIN
|
||||
declare param1 int;
|
||||
declare gs int;
|
||||
declare uid int;
|
||||
|
||||
drop TABLE IF EXISTS _gsinfo;
|
||||
select count(*) into param1 from UserInfo ;
|
||||
CREATE TABLE _gsinfo(uid_ INT,gs int,gsname nvarchar(50));
|
||||
while param1 > 0
|
||||
do
|
||||
select id into uid from UserInfo where id not in (select uid_ from _gsinfo) LIMIT 1;
|
||||
CALL FindGs(uid, gs);
|
||||
INSERT INTO _gsinfo select uid,gs,case gs when 2 then '宝来威' when 3 then '住好' else 'blv' end;
|
||||
SET param1 = param1 - 1;
|
||||
end while;
|
||||
select * from _gsinfo;
|
||||
END;
|
||||
125
UI/App_Data/configs/datasql.sql
Normal file
125
UI/App_Data/configs/datasql.sql
Normal file
@@ -0,0 +1,125 @@
|
||||
|
||||
---- sp_addlinkedserver
|
||||
----@server = 'BLW', -- 目标服务器别名
|
||||
----@srvproduct = 'MSSQL', -- 产品名称
|
||||
----@datasrc = 'boonlive-rcu.com' , -- 目标服务器名称
|
||||
----@provider = 'SQLNCLI'
|
||||
----EXEC sp_addlinkedsrvlogin
|
||||
----@rmtsrvname ='BLW' , -- 与以上 @server 同名
|
||||
----@useself = 'false' ,
|
||||
----@locallogin = NULL ,
|
||||
----@rmtuser = 'blw' ,
|
||||
----@rmtpassword = 'blw@123'
|
||||
------查看是否添加成功
|
||||
----EXEC sp_helpserver
|
||||
----USE AuthorityDB
|
||||
---- GO
|
||||
----SELECT * FROM BLW.CRICS.[dbo].[tb_Sys_Hotels]
|
||||
----SELECT * FROM BLW.CRICS.[dbo].[tb_Sys_HotelGroups]
|
||||
|
||||
--if NOT exists (select * from dbo.sysobjects where id = object_id(N'HotelInfoDataUpdata') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
|
||||
------ 删除存储过程
|
||||
----drop procedure HotelInfoDataUpdata
|
||||
----GO
|
||||
--BEGIN
|
||||
|
||||
--EXEC('
|
||||
--create procedure HotelInfoDataUpdata
|
||||
--as
|
||||
--begin tran
|
||||
----清空酒店相关表数据
|
||||
--truncate table HotelGroups
|
||||
--truncate table Hosts
|
||||
--truncate table Hotels
|
||||
--SET IDENTITY_INSERT [HotelGroups] ON
|
||||
--insert into HotelGroups(Id,ParentId,[Name],[CreateTime]) Select ID,ParentId,[Name],GETDATE() from BLW.CRICS.[dbo].[tb_Sys_HotelGroups]
|
||||
----关闭 插入显示值
|
||||
--SET IDENTITY_INSERT [HotelGroups] OFF
|
||||
--SET IDENTITY_INSERT [Hotels] ON
|
||||
--insert into Hotels(Id,IsApprove,Code,GroupId,[Name],[CreateTime],status) Select ID,IsApprove,Code,SysHotelGroupID,[Name],[createddate],status from BLW.CRICS.[dbo].[tb_Sys_Hotels]
|
||||
--SET IDENTITY_INSERT [Hotels] OFF
|
||||
----SET IDENTITY_INSERT [Hosts] ON
|
||||
----insert Hosts(MAC,Id ,RoomStatusID,HotelID,[RoomNumber],[Status],[Desc],[CreateTime]) select MAC,Id,RoomStatusID,HotelID,[RoomNumber],[Status],[remark],[registerdate] from BLW.CRICS.[dbo].tb_Hosts
|
||||
----SET IDENTITY_INSERT [Hosts] OFF
|
||||
--IF @@ERROR <> 0
|
||||
--ROLLBACK TRAN
|
||||
--ELSE
|
||||
--COMMIT TRAN
|
||||
--'
|
||||
--)
|
||||
-- END
|
||||
|
||||
--if NOT exists (select * from dbo.sysobjects where id = object_id(N'UserInfoDataUpdata') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
|
||||
---- 删除存储过程
|
||||
----drop procedure UserInfoDataUpdata
|
||||
----GO
|
||||
|
||||
--BEGIN
|
||||
--EXEC('
|
||||
--create procedure UserInfoDataUpdata
|
||||
--as
|
||||
--begin tran
|
||||
----删除用户信息
|
||||
--delete OrgUsers where userid IN( select id from UserInfo where oldid not in( SELECT id FROM BLW.CRICS.[dbo].[tb_Sys_Users] ) and IsImport = 1 )
|
||||
--delete UserAuthoes where userid IN ( select id from UserInfo where oldid not in( SELECT id FROM BLW.CRICS.[dbo].[tb_Sys_Users] ) and IsImport = 1 )
|
||||
--delete UserInfo where [OldId] NOT IN(SELECT id FROM BLW.CRICS.[dbo].[tb_Sys_Users] ) and IsImport = 1
|
||||
----更新用户信息
|
||||
--UPDATE UserInfo
|
||||
--SET oldid = b.id,
|
||||
--Pwd = b.[password],
|
||||
--[Desc] = ISNULL(b.remark,'''') + ''---巫工导入'',
|
||||
--HotelID = b.HotelID,
|
||||
--HotelGroupID = b.syshotelgroupid ,
|
||||
--CreateTime = b.[createddate]
|
||||
--FROM userinfo a inner join BLW.CRICS.[dbo].[tb_Sys_Users] b on a.Uid = b.account and a.IsImport = 1
|
||||
----导入用户信息
|
||||
--insert into UserInfo(age,oldid ,Uid,Pwd,[Desc],[CreateTime],HeadImg,Sex,IsValid,HotelID,HotelGroupID,IsImport)
|
||||
--Select 18,id,account,[password], ISNULL(remark,'''') + ''---巫工导入'' ,[createddate] ,''defaultboy.png'',0,0,HotelID,syshotelgroupid,1 from BLW.CRICS.[dbo].[tb_Sys_Users]
|
||||
--where account not in (Select Uid from UserInfo)
|
||||
--IF @@ERROR <> 0
|
||||
--ROLLBACK TRAN
|
||||
--ELSE
|
||||
--COMMIT TRAN
|
||||
-- ')
|
||||
-- END
|
||||
----添加到默认用户组
|
||||
--exec HotelInfoDataUpdata
|
||||
--exec UserInfoDataUpdata
|
||||
--insert into OrgUsers (OrgId,UserId,CreateTime,CreatedBy) select 1,Id,GETDATE(),'系统' from UserInfo where id not in (select UserId from OrgUsers)
|
||||
|
||||
|
||||
|
||||
BEGIN TRY
|
||||
begin tran
|
||||
truncate table {{table}}
|
||||
--SET IDENTITY_INSERT [Hotels] ON
|
||||
insert into {{table}} select * from {{table}}New;
|
||||
--SET IDENTITY_INSERT [Hotels] Off
|
||||
COMMIT TRAN
|
||||
END TRY
|
||||
BEGIN CATCH
|
||||
ROLLBACK
|
||||
IF EXISTS(Select 1 From Sysobjects Where Name='asyncerr')
|
||||
begin
|
||||
--DROP table asyncerr
|
||||
insert into asyncerr
|
||||
SELECT ERROR_NUMBER() AS 错误号,
|
||||
ERROR_SEVERITY() AS 错误等级,
|
||||
ERROR_STATE() as 错误状态,
|
||||
DB_ID() as 数据库ID,
|
||||
DB_NAME() as 数据库名称,
|
||||
ERROR_MESSAGE() as 错误信息,
|
||||
getdate() as 时间
|
||||
end
|
||||
else
|
||||
begin
|
||||
SELECT ERROR_NUMBER() AS 错误号,
|
||||
ERROR_SEVERITY() AS 错误等级,
|
||||
ERROR_STATE() as 错误状态,
|
||||
DB_ID() as 数据库ID,
|
||||
DB_NAME() as 数据库名称,
|
||||
ERROR_MESSAGE() as 错误信息,
|
||||
getdate() as 时间
|
||||
into asyncerr
|
||||
end
|
||||
END CATCH
|
||||
81
UI/App_Data/configs/log4net.config
Normal file
81
UI/App_Data/configs/log4net.config
Normal file
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
|
||||
</configSections>
|
||||
|
||||
|
||||
<log4net>
|
||||
<!--<root>
|
||||
<level value="INFO"></level>
|
||||
<appender-ref ref="AdoNetAppender_SQL"/>
|
||||
</root>-->
|
||||
|
||||
<logger name="Info">
|
||||
<level value="INFO"/>
|
||||
<appender-ref ref="InfoLogFileAppender" />
|
||||
|
||||
</logger>
|
||||
|
||||
<!--一般操作-->
|
||||
<logger name="Exception">
|
||||
<level value="ERROR"/>
|
||||
<appender-ref ref="ExceptionLogFileAppender" />
|
||||
</logger>
|
||||
|
||||
<!--重要操作,记录到SQL数据库-->
|
||||
<appender name="ExceptionLogFileAppender" type="log4net.Appender.RollingFileAppender">
|
||||
<!--日志文件名-->
|
||||
<param name="File" value=".\\App_Data\\log\\Exception\\" />
|
||||
<!--是否在文件中追加-->
|
||||
<param name="AppendToFile" value="true" />
|
||||
<param name="MaxFileSize" value="10240" />
|
||||
<!--最大变换数量-->
|
||||
<param name="MaxSizeRollBackups" value="5" />
|
||||
<!--日志文件名是否为静态-->
|
||||
<param name="StaticLogFileName" value="false" />
|
||||
<param name="DatePattern" value="yyyyMMdd".log"" />
|
||||
<!--按照文件的大小进行变换日志文件-->
|
||||
<param name="RollingStyle" value="Date" />
|
||||
|
||||
<!--自定义成员 -->
|
||||
<parameter>
|
||||
<parameterName value="@CustomParam" />
|
||||
<dbType value="String" />
|
||||
|
||||
<layout type="LogServer.ExceptionLayout">
|
||||
<conversionPattern value="%CustomParam" />
|
||||
</layout>
|
||||
|
||||
</parameter>
|
||||
|
||||
|
||||
<layout type="LogServer.ExceptionLayout">
|
||||
<param name="ConversionPattern" value="%newline=====================================%newline记录时间:%date %newline线程ID:%thread %newline日志级别:%-5level %newline信息类:%class.%method %newline%功能点:%ActionName %newline操作者:%Operationer %newline IP:%IP %newline头部信息:%Header %newline来自页面:%Url %newline错误信息:%exceptionMessage%newline=====================================%newline" />
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
<appender name="InfoLogFileAppender" type="log4net.Appender.RollingFileAppender">
|
||||
<param name="File" value=".\\App_Data\\log\\Info\\" />
|
||||
<!--是否在文件中追加-->
|
||||
<param name="AppendToFile" value="true" />
|
||||
<param name="MaxFileSize" value="10240" />
|
||||
<!--最大变换数量-->
|
||||
<param name="MaxSizeRollBackups" value="5" />
|
||||
<!--日志文件名是否为静态-->
|
||||
<param name="StaticLogFileName" value="false" />
|
||||
<param name="DatePattern" value="yyyyMMdd".log"" />
|
||||
<!--按照日期进行变换日志文件-->
|
||||
<param name="RollingStyle" value="Date" />
|
||||
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<param name="ConversionPattern" value="%newline=====================================%newline记录时间:%date %newline线程ID:%thread %newline日志级别:%-5level %newline信息类:%class.%method %newline%message%newline=====================================%newline" />
|
||||
</layout>
|
||||
</appender>
|
||||
</log4net>
|
||||
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
|
||||
</startup>
|
||||
|
||||
</configuration>
|
||||
113
UI/App_Data/configs/sqlView.txt
Normal file
113
UI/App_Data/configs/sqlView.txt
Normal file
@@ -0,0 +1,113 @@
|
||||
DROP view
|
||||
IF
|
||||
EXISTS View_UOA;
|
||||
DROP view
|
||||
IF
|
||||
EXISTS View_UA;
|
||||
DROP view
|
||||
IF
|
||||
EXISTS View_AppAutho;
|
||||
DROP view
|
||||
IF
|
||||
EXISTS View_UserInfo;
|
||||
|
||||
DROP view
|
||||
IF
|
||||
EXISTS View_MAClog;
|
||||
|
||||
|
||||
|
||||
create view View_UOA
|
||||
as
|
||||
select distinct u.Id,u.Uid ,oa.HotelId,
|
||||
o.id OrgId,
|
||||
o.OrganizationName,
|
||||
o.`Desc` Orgdesc,
|
||||
app.id AppId ,
|
||||
app.AppName,
|
||||
app.`Desc` AppDesc ,
|
||||
a.Id AuthorityId,
|
||||
a.AuthorityName,
|
||||
a.`Desc` AuthDesc,
|
||||
oa.AuthotypeId,
|
||||
ast.Name AstName,
|
||||
ast.`Desc` AstDesc,
|
||||
(select count(*) from UserAuthoes where UserId = u.Id and AuthorityId = a.Id and AuthotypeId = oa.AuthotypeId and HotelId = oa.HotelId)
|
||||
from UserInfo u
|
||||
left join OrgUsers ou
|
||||
on u.id = ou.UserId
|
||||
left join Organization o
|
||||
on ou.OrgId = o.Id
|
||||
left join OrgAuthority oa
|
||||
on o.Id = oa.OrgId
|
||||
left join Authority a
|
||||
on a.Id = oa.AuthorityId
|
||||
left join AppAutho aa
|
||||
on a.Id = aa.AuthorityId
|
||||
left join ApplicationDomain app
|
||||
on aa.AppId = app.Id
|
||||
left join AuthoStatusType ast
|
||||
on oa.AuthotypeId = ast.Id
|
||||
where ou.OrgId is not null
|
||||
and oa.AuthorityId is not null;
|
||||
|
||||
create view View_UA
|
||||
as
|
||||
select ui.id Id ,ui.IsValid IsValid ,ua.HotelId,
|
||||
Uid ,
|
||||
app.id AppId ,
|
||||
app.AppName,
|
||||
a.AuthorityName,
|
||||
app.`Desc` AppDesc ,
|
||||
a.Id AuthorityId,
|
||||
a.`Desc` AuthDesc,
|
||||
ua.AuthotypeId,
|
||||
ast.Name AstName,
|
||||
ast.`Desc` AstDesc
|
||||
from UserInfo ui
|
||||
left join
|
||||
UserAuthoes ua
|
||||
on ui.id = ua.UserId
|
||||
left join AppAutho aa
|
||||
on ua.AuthorityId = aa.AuthorityId
|
||||
left join ApplicationDomain app
|
||||
on aa.AppId = app.Id
|
||||
left join Authority a
|
||||
on a.Id = ua.AuthorityId
|
||||
left join AuthoStatusType ast
|
||||
on ua.AuthotypeId = ast.Id
|
||||
where ua.UserId is not null;
|
||||
|
||||
create view View_AppAutho
|
||||
as
|
||||
select APP.Id AppId,
|
||||
app.AppName AppName ,
|
||||
app.`Desc` AppDesc,
|
||||
AuthorityId,
|
||||
AuthorityName,
|
||||
app.IsValid IsValid,
|
||||
auth.`Desc` AuthorityDesc
|
||||
from ApplicationDomain app left join AppAutho aa on app.Id = aa.AppId left join Authority auth on aa.AuthorityId = auth.id where aa.AuthorityId is not null;
|
||||
|
||||
create view View_UserInfo
|
||||
as
|
||||
select a.*,d.OrganizationName,c.OrgId,(select count(*) from UserAuthoes where UserAuthoes.UserId = a.Id and UserAuthoes.AuthotypeId!=1) Authoncount from UserInfo a
|
||||
left join
|
||||
OrgUsers c
|
||||
on c.UserId = a.Id
|
||||
left join
|
||||
Organization d
|
||||
on
|
||||
c.OrgId = d.Id;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
create view View_MAClog
|
||||
as
|
||||
SELECT m.Id, m.HotelID, m.MAC, m.userid, m.location, m.Ip, m.ActionId, m.type, m.CreateTime, m.roomNumber, m.`Status`, u.Uid,
|
||||
ht.`Name`, ht.Id AS Hotelsid ,m.AppType
|
||||
FROM MACLogs AS m LEFT OUTER JOIN
|
||||
Hotels AS ht ON ht.Id = m.HotelID LEFT OUTER JOIN
|
||||
UserInfo AS u ON u.Id = m.userid;
|
||||
112
UI/App_Data/configs/trigger.sql
Normal file
112
UI/App_Data/configs/trigger.sql
Normal file
@@ -0,0 +1,112 @@
|
||||
exec ('
|
||||
if exists(select * from sys.triggers where name=''trigger_OrgAuthority_update'')
|
||||
begin
|
||||
drop trigger trigger_OrgAuthority_update;
|
||||
end
|
||||
')
|
||||
exec ('
|
||||
create trigger trigger_OrgAuthority_update
|
||||
on OrgAuthority
|
||||
for update
|
||||
as
|
||||
declare @AuthotypeIdnew int;
|
||||
declare @AuthotypeIdold int;
|
||||
declare @AuthoId int;
|
||||
declare @OrgId int;
|
||||
declare @HotelId int;
|
||||
select @AuthotypeIdold = AuthotypeId
|
||||
from deleted;
|
||||
select @AuthotypeIdnew = AuthotypeId,@AuthoId = AuthorityId,@OrgId = OrgId,@HotelId = HotelId
|
||||
from inserted;
|
||||
if update(AuthotypeId)
|
||||
begin
|
||||
update UserAuthoes set AuthotypeId = @AuthotypeIdnew where HotelId = @HotelId and AuthorityId = @AuthoId and AuthotypeId = @AuthotypeIdold and UserId in (select UserId from OrgUsers where OrgId = @OrgId)
|
||||
end;
|
||||
')
|
||||
exec('
|
||||
if exists(select * from sys.triggers where name=''trigger_OrgAuthority_del'')
|
||||
begin
|
||||
drop trigger trigger_OrgAuthority_del;
|
||||
end
|
||||
')
|
||||
exec('
|
||||
create trigger trigger_OrgAuthority_del
|
||||
on OrgAuthority
|
||||
for delete
|
||||
as
|
||||
declare @AuthotypeIdold int;
|
||||
declare @AuthoId int;
|
||||
declare @OrgId int;
|
||||
declare @HotelId int;
|
||||
select @AuthotypeIdold = AuthotypeId, @AuthoId = AuthorityId,@OrgId = OrgId,@HotelId = HotelId
|
||||
from deleted;
|
||||
delete UserAuthoes where HotelId = @HotelId and AuthorityId = @AuthoId and AuthotypeId = @AuthotypeIdold and UserId in (select UserId from OrgUsers where OrgId = @OrgId)
|
||||
')
|
||||
exec('
|
||||
if exists(select * from sys.triggers where name=''trigger_OrgAuthority_Insert'')
|
||||
begin
|
||||
drop trigger trigger_OrgAuthority_Insert;
|
||||
end
|
||||
')
|
||||
exec('
|
||||
create trigger trigger_OrgAuthority_Insert
|
||||
on OrgAuthority
|
||||
for insert
|
||||
as
|
||||
declare @AuthotypeIdnew int;
|
||||
declare @AuthoId int;
|
||||
declare @OrgId int;
|
||||
declare @HotelId int;
|
||||
select @AuthotypeIdnew = AuthotypeId,@AuthoId = AuthorityId,@OrgId = OrgId,@HotelId = HotelId
|
||||
from inserted;
|
||||
insert into UserAuthoes(AuthorityId,AuthotypeId,UserId, HotelId) select @AuthoId,@AuthotypeIdnew,UserId,@HotelId from OrgUsers where OrgId = @OrgId and (select count(*) from UserAuthoes where UserId = OrgUsers.UserId and AuthorityId = @AuthoId and HotelId = @HotelId)<0 and (select count(*) from UserInfo where Id = OrgUsers.UserId and IsImport = ''0'')<0
|
||||
')
|
||||
exec('
|
||||
if exists(select * from sys.triggers where name=''trigger_Orguserinfo_Insert'')
|
||||
begin
|
||||
drop trigger trigger_Orguserinfo_Insert
|
||||
end
|
||||
')
|
||||
exec('
|
||||
create trigger trigger_Orguserinfo_Insert
|
||||
on OrgUsers
|
||||
for insert
|
||||
as
|
||||
declare @userid int;
|
||||
declare @OrgId int;
|
||||
select @userid = UserId,@OrgId = OrgId
|
||||
from inserted;
|
||||
insert into UserAuthoes(AuthorityId,AuthotypeId,UserId,HotelId)
|
||||
select AuthorityId,AuthotypeId,@userid,HotelId from OrgAuthority
|
||||
where OrgId = @OrgId and
|
||||
(select count(*) from UserAuthoes where UserId = @userid and AuthorityId = OrgAuthority.AuthorityId and HotelId = OrgAuthority.HotelId) = 0
|
||||
')
|
||||
exec('
|
||||
if exists(select * from sys.triggers where name=''trigger_Orguserinfo_Updata'')
|
||||
begin
|
||||
drop trigger trigger_Orguserinfo_Updata
|
||||
end
|
||||
')
|
||||
exec('
|
||||
create trigger trigger_Orguserinfo_Updata
|
||||
on OrgUsers
|
||||
for update
|
||||
as
|
||||
declare @userid int;
|
||||
declare @OrgId int;
|
||||
declare @oldOrgId int;
|
||||
select @userid = UserId,@OrgId = OrgId
|
||||
from inserted;
|
||||
select @oldOrgId = OrgId
|
||||
from deleted;
|
||||
delete UserAuthoes where (
|
||||
select count(*) from OrgAuthority where UserAuthoes.UserId = @userid
|
||||
and UserAuthoes.HotelId = HotelId
|
||||
and UserAuthoes.AuthotypeId = AuthotypeId
|
||||
and UserAuthoes.AuthorityId = AuthorityId
|
||||
)>0
|
||||
insert into UserAuthoes(AuthorityId,AuthotypeId,UserId,HotelId)
|
||||
select AuthorityId,AuthotypeId,@userid,HotelId from OrgAuthority
|
||||
where OrgId = @OrgId and
|
||||
(select count(*) from UserAuthoes where UserId = @userid and AuthorityId = OrgAuthority.AuthorityId and HotelId = OrgAuthority.HotelId) = 0
|
||||
')
|
||||
171
UI/App_Data/configs/重要sql 权限公司查询勿删.sql
Normal file
171
UI/App_Data/configs/重要sql 权限公司查询勿删.sql
Normal file
@@ -0,0 +1,171 @@
|
||||
DROP PROCEDURE
|
||||
IF
|
||||
EXISTS FindJd;
|
||||
DROP PROCEDURE
|
||||
IF
|
||||
EXISTS FindGs;
|
||||
DROP PROCEDURE
|
||||
IF
|
||||
EXISTS Findgsall;
|
||||
DROP PROCEDURE
|
||||
IF
|
||||
EXISTS hotelinfoall; -- 查询顶级酒店
|
||||
|
||||
|
||||
-- FindJd 查询顶级酒店
|
||||
|
||||
CREATE PROCEDURE FindJd (param1 INT,
|
||||
OUT param2 INT )
|
||||
BEGIN
|
||||
DECLARE parent_id INT DEFAULT 0;
|
||||
SELECT ParentId INTO parent_id FROM HotelGroups WHERE
|
||||
id = param1;
|
||||
|
||||
IF(parent_id <= 1) THEN
|
||||
SELECT parent_id,param1;
|
||||
SET param2 = param1;
|
||||
ELSE
|
||||
SELECT parent_id,param1;
|
||||
CALL FindJd(parent_id, param2);
|
||||
END IF;
|
||||
END;
|
||||
|
||||
-- SELECT * FROM HotelGroups;
|
||||
|
||||
|
||||
-- go
|
||||
-- 查询某个用户公司
|
||||
create PROCEDURE FindGs(
|
||||
param1 INT,
|
||||
out param2 INT )
|
||||
BEGIN
|
||||
declare import_ int;
|
||||
declare hotel int;
|
||||
declare HotelGroups int;
|
||||
select isimport,HotelID,HotelGroupID,Company INTO import_ , hotel, HotelGroups, param2 from UserInfo where id = param1;
|
||||
if(import_ > 0)
|
||||
THEN
|
||||
if(hotel > 0)
|
||||
THEN
|
||||
select GroupId INTO HotelGroups from Hotels where Id = (select HotelID from UserInfo WHERE ID = param1) ;
|
||||
end if;
|
||||
call FindJd(HotelGroups, param2);
|
||||
end if;
|
||||
end;
|
||||
-- go 藏头尸
|
||||
-- SELECT * FROM UserInfo
|
||||
|
||||
-- exec FindGs 45, @gs out
|
||||
-- 查询所有用户公司信息
|
||||
-- go
|
||||
-- drop proc Findgsall
|
||||
-- 查询所有用户公司
|
||||
create PROCEDURE Findgsall()
|
||||
BEGIN
|
||||
declare param1 int;
|
||||
declare gs int;
|
||||
declare uid int;
|
||||
|
||||
drop TABLE IF EXISTS _gsinfo;
|
||||
select count(*) into param1 from UserInfo ;
|
||||
CREATE TABLE _gsinfo(uid_ INT,gs int,gsname nvarchar(50));
|
||||
while param1 > 0
|
||||
do
|
||||
select id into uid from UserInfo where id not in (select uid_ from _gsinfo) LIMIT 1;
|
||||
CALL FindGs(uid, gs);
|
||||
INSERT INTO _gsinfo select uid,gs,case gs when 2 then '宝来威' when 3 then '住好' else 'blv' end;
|
||||
SET param1 = param1 - 1;
|
||||
end while;
|
||||
select * from _gsinfo;
|
||||
END;
|
||||
-- DROP PROCEDURE Findgsall;
|
||||
call Findgsall();
|
||||
-- go
|
||||
-- drop table #gsinfo
|
||||
-- go
|
||||
-- call Findgsall ()
|
||||
-- drop proc Findgsall
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--------------------- 查寻用户所有 酒店权限信息
|
||||
go
|
||||
CREATE PROC hotelinfoall
|
||||
as
|
||||
declare @param1 int
|
||||
declare @uid int
|
||||
declare @import int
|
||||
select @param1 = count(*) from UserInfo
|
||||
CREATE TABLE #allinfo([uid] INT,id int,HotelsName nvarchar(50),[sum] int)
|
||||
while @param1>0
|
||||
begin
|
||||
set @param1 = @param1 -1
|
||||
select top 1 @uid = id from UserInfo where id not in (select distinct [uid] from #allinfo)
|
||||
|
||||
INSERT INTO #allinfo SELECT @uid,'','',''
|
||||
|
||||
declare @hotel int
|
||||
declare @HotelGroups int
|
||||
select @hotel = HotelID,@HotelGroups = HotelGroupID,@import = IsImport from UserInfo where id = @uid
|
||||
|
||||
if (@hotel = 0 and @import!=0) --------------- 取得酒店组用户
|
||||
begin
|
||||
;
|
||||
with cte(id)
|
||||
as
|
||||
(-- 父项
|
||||
select id from HotelGroups where parentid = @HotelGroups
|
||||
union all
|
||||
-- 递归结果集中的下级
|
||||
select t.id from HotelGroups as t
|
||||
inner join cte as c on t.parentid = c.id
|
||||
)
|
||||
INSERT INTO #allinfo
|
||||
select @uid,
|
||||
id, [Name] ,(select count(*)
|
||||
from UserAuthoes where userid = @uid
|
||||
and HotelId = id
|
||||
and AuthotypeId !=1) from Hotels where GroupId in ( select id from cte)
|
||||
|
||||
|
||||
end
|
||||
else
|
||||
begin
|
||||
if(@import != 0 and @hotel != 0)
|
||||
begin
|
||||
INSERT INTO #allinfo
|
||||
select @uid, @hotel, (select [Name] from Hotels where id = @hotel), count(*)
|
||||
from UserAuthoes where userid = @uid
|
||||
and HotelId = @hotel
|
||||
and AuthotypeId !=1
|
||||
end
|
||||
else
|
||||
begin -------------自建用户
|
||||
INSERT INTO #allinfo
|
||||
select @uid, HotelId, (select [Name] from Hotels where id = HotelId), count(*)
|
||||
from UserAuthoes where userid = @uid
|
||||
and AuthotypeId !=1 group by HotelId
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
select * from #allinfo WHERE id>0 order by uid
|
||||
select * from #allinfo WHERE [sum]=0 and id>0 order by uid
|
||||
SELECT * FROM UserInfo where id not in ( select distinct uid from #allinfo WHERE id>0 )
|
||||
|
||||
go
|
||||
exec hotelinfoall
|
||||
|
||||
|
||||
SELECT * FROM UserInfo WHERE HotelGroupID >0
|
||||
|
||||
SELECT count(*) FROM UserInfo WHERE ID = 8
|
||||
Reference in New Issue
Block a user