sql
stringlengths
6
1.05M
BEGIN TRANSACTION; INSERT INTO GameObjectContainers (GameObjectContainerId, Description) VALUES (1, "Arathi Basin"); COMMIT;
ALTER TABLE `logs_logbooks` DROP COLUMN `state`, DROP COLUMN `created`, DROP COLUMN `status_id`, DROP INDEX `logs_logbooks_status_id_fk`, DROP FOREIGN KEY `logs_logbooks_status_id_fk`;
<reponame>jeffersonfantasia/SQL_Scripts<gh_stars>1-10 SELECT F.CODFILIAL, P.CODPRODMASTER CODPROD_PAI, ( SELECT DESCRICAO FROM PCPRODUT WHERE CODPROD = P.CODPRODMASTER ) DESCRICAO_PAI, P.CODPROD, P.DESCRICAO, F.ENVIARFORCAVENDAS ENVIARFORCAVENDAS_238, E.QTESTGER FROM PCPRODUT P, PCPRODFILIAL F, PCEST E WHERE P.CODPROD = F.CODPROD AND E.CODFILIAL = F.CODFILIAL AND E.CODPROD = F.CODPROD AND P.CODPROD <> P.CODPRODMASTER AND F.CODFILIAL = 6 AND F.ENVIARFORCAVENDAS = 'S' ORDER BY P.CODPRODMASTER; /
<reponame>timshadel/subdivision-list CREATE TABLE subdivision_WS (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_WS" ("id", "name", "level") VALUES ('WS-AL', 'Aiga-i-le-Tai', 'district'); INSERT INTO "subdivision_WS" ("id", "name", "level") VALUES ('WS-AT', 'Atua', 'district'); INSERT INTO "subdivision_WS" ("id", "name", "level") VALUES ('WS-PA', 'Palauli', 'district'); INSERT INTO "subdivision_WS" ("id", "name", "level") VALUES ('WS-TU', 'Tuamasaga', 'district'); INSERT INTO "subdivision_WS" ("id", "name", "level") VALUES ('WS-VS', 'Vaisigano', 'district');
create procedure [CommonSchemaTests].[test log4Private.SqlException column structure] as begin create table CommonSchemaTests.expected ( ExceptionId int not null , UtcDate datetime not null , SystemDate datetime not null , ErrorContext nvarchar(512) not null , ErrorNumber int not null , ErrorSeverity int not null , ErrorState int not null , ErrorProcedure nvarchar(128) not null , ErrorLine int not null , ErrorMessage nvarchar(max) not null , ErrorDatabase nvarchar(128) not null , SessionId int not null , ServerName nvarchar(128) not null , HostName nvarchar(128) not null , ProgramName nvarchar(128) not null , NTDomain nvarchar(128) not null , NTUsername nvarchar(128) not null , LoginName nvarchar(128) not null , OriginalLoginName nvarchar(128) not null , SessionLoginTime datetime null, ) ; exec tSQLt.AssertEqualsTableSchema 'CommonSchemaTests.expected', 'log4Private.SqlException'; end;
<filename>dbqueries/crawled_data_in_db.sql SELECT cities.city_fullname, COUNT (*) FROM data INNER JOIN cities ON data.city = cities.city_shortname WHERE cities.crawled = TRUE AND data.source = 'c' GROUP BY cities.city_fullname
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Create date: 29/11/2019 -- Description: Update a matrix to set the Update flag. This flag indicates that this matrix has data. -- Typically where multiple languages are represented in a single release, only one matrix will have the data attached. -- ============================================= CREATE OR ALTER PROCEDURE Data_Matrix_Update_Data_Flag @MtrId INT ,@MtrDataFlag BIT AS BEGIN SET NOCOUNT ON; UPDATE TD_MATRIX SET MTR_DATA_FLAG = @MtrDataFlag WHERE MTR_ID = @MtrId RETURN @@rowcount END GO
create table maestro_materia( id integer(10) unsigned not null primary key auto_increment, maestro_id integer(10) unsigned not null, FOREIGN KEY (maestro_id) REFERENCES maestros(id), materia_id integer(10) unsigned not null, FOREIGN KEY (materia_id) REFERENCES materias(id), ciclo_id integer(10) unsigned not null, FOREIGN KEY (ciclo_id) REFERENCES ciclos(id) ); /* CREATE TABLE maestro_materia ( id integer(10) unsigned not null primari key auto_increment, maestro_id int(10) unsigned NOT NULL, materia_id int(10) unsigned NOT NULL, ciclo_id int(10) unsigned NOT NULL, KEY maestro_materia_ibfk_1 (maestro_id), KEY maestro_materia_ibfk_2 (materia_id), KEY maestro_materia_ibfk_3 (ciclo_id), CONSTRAINT maestro_materia_ibfk_1 FOREIGN KEY (maestro_id) REFERENCES maestros (id) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT maestro_materia_ibfk_2 FOREIGN KEY (materia_id) REFERENCES materias (id) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT maestro_materia_ibfk_3 FOREIGN KEY (ciclo_id) REFERENCES ciclos (id) ON DELETE CASCADE ON UPDATE CASCADE ); */
<filename>apex/f130/application/shared_components/files/js_ast_js.sql prompt --application/shared_components/files/js_ast_js begin -- Manifest -- APP STATIC FILES: 130 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.10.15' ,p_release=>'21.2.2' ,p_default_workspace_id=>9690978936188613 ,p_default_application_id=>130 ,p_default_id_offset=>3010675395498185750 ,p_default_owner=>'ILA' ); wwv_flow_api.g_varchar2_table := wwv_flow_api.empty_varchar2_table; wwv_flow_api.g_varchar2_table(1) := '66756E6374696F6E20636865636B616C6C6630312829207B0A20206966202824282223636865636B616C6C22292E697328273A636865636B6564272929207B200A20202020242822696E7075745B6E616D653D6630315D22292E70726F70282263686563'; wwv_flow_api.g_varchar2_table(2) := '6B6564222C2074727565293B0A20207D20656C7365207B200A20202020242822696E7075745B6E616D653D6630315D22292E70726F702822636865636B6564222C2066616C7365293B0A20207D0A7D'; wwv_flow_api.create_app_static_file( p_id=>wwv_flow_api.id(3023543375676551404) ,p_file_name=>'js/ast.js' ,p_mime_type=>'application/javascript' ,p_file_charset=>'utf-8' ,p_file_content => wwv_flow_api.varchar2_to_blob(wwv_flow_api.g_varchar2_table) ); wwv_flow_api.component_end; end; /
-- Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0, -- and the EPL 1.0 (http://h2database.com/html/license.html). -- Initial Developer: H2 Group -- select length(null) en, length('This has 17 chars') e_17; > EN E_17 > ---- ---- > null 17 > rows: 1 SELECT LEN(NULL); > exception FUNCTION_NOT_FOUND_1 SET MODE MSSQLServer; > ok select len(null) en, len('MSSQLServer uses the len keyword') e_32; > EN E_32 > ---- ---- > null 32 > rows: 1 SET MODE Regular; > ok
DELETE FROM `sys_objects_cmts` WHERE `ObjectName` = 'bx_videos' OR `ObjectName` = 'bx_videos_albums'; INSERT INTO `sys_objects_cmts` (`ObjectName`, `TableCmts`, `TableTrack`, `AllowTags`, `Nl2br`, `SecToEdit`, `PerView`, `IsRatable`, `ViewingThreshold`, `AnimationEffect`, `AnimationSpeed`, `IsOn`, `IsMood`, `RootStylePrefix`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldComments`, `ClassName`, `ClassFile`) VALUES ('bx_videos', 'bx_videos_cmts', 'sys_cmts_track', 0, 1, 90, 20, 1, -3, 'none', 0, 1, 0, 'cmt', 'RayVideoFiles', 'ID', 'CommentsCount', 'BxVideosCmts', 'modules/boonex/videos/classes/BxVideosCmts.php'), ('bx_videos_albums', 'bx_videos_cmts_albums', 'sys_cmts_track', 0, 1, 90, 20, 1, -3, 'none', 0, 1, 0, 'cmt', '', '', '', 'BxVideosCmtsAlbums', 'modules/boonex/videos/classes/BxVideosCmtsAlbums.php');
-- add enum name to term table in old CLB for mappings alter table term add column enum text; update term set enum='I' where id=12000; update term set enum='II' where id=12100; update term set enum='III' where id=12200; -- means update term set enum='NATIVE' where id=5000; update term set enum='INTRODUCED' where id=5100; update term set enum='NATURALISED' where id=5200; update term set enum='INVASIVE' where id=5300; update term set enum='MANAGED' where id=5400; update term set enum='UNCERTAIN' where id=5500; -- life stage update term set enum='ZYGOTE' where id=3000; update term set enum='EMRYO' where id=3001; update term set enum='LARVA' where id=3002; update term set enum='JUVENILE' where id=3003; update term set enum='ADULT' where id=3004; update term set enum='SPOROPHYTE' where id=3005; update term set enum='SPORE' where id=3006; update term set enum='GAMETOPHYTE' where id=3007; update term set enum='GAMETE' where id=3008; -- nomen status update to latin! update term set enum='{ABORTED}' where id=6000; update term set enum='{ALTERNATIVE}' where id=6010; update term set enum='{AMBIGUOUS}' where id=6020; update term set enum='{CONFUSED}' where id=6050; update term set enum='{CONSERVED_PROPOSED}' where id=6070; update term set enum='{CONSERVED}' where id=100286; update term set enum='{CONSERVED}' where id=6060; update term set enum='{DENIED}' where id=6120; update term set enum='{DOUBTFUL}' where id=6080; update term set enum='{DOUBTFUL}' where id=100060; update term set enum='{FORGOTTEN}' where id=6150; update term set enum='{ILLEGITIMATE,NUDUM}' where id=100305; update term set enum='{ILLEGITIMATE,SUPERFLUOUS}' where id=100283; update term set enum='{ILLEGITIMATE}' where id=100835; update term set enum='{ILLEGITIMATE}' where id=100838; update term set enum='{ILLEGITIMATE}' where id=100839; update term set enum='{ILLEGITIMATE}' where id=100885; update term set enum='{ILLEGITIMATE}' where id=100824; update term set enum='{ILLEGITIMATE}' where id=100891; update term set enum='{ILLEGITIMATE}' where id=100892; update term set enum='{ILLEGITIMATE}' where id=100894; update term set enum='{ILLEGITIMATE}' where id=100895; update term set enum='{ILLEGITIMATE}' where id=100896; update term set enum='{ILLEGITIMATE}' where id=100897; update term set enum='{ILLEGITIMATE}' where id=100899; update term set enum='{ILLEGITIMATE}' where id=100900; update term set enum='{ILLEGITIMATE}' where id=100987; update term set enum='{ILLEGITIMATE}' where id=100989; update term set enum='{ILLEGITIMATE}' where id=100990; update term set enum='{ILLEGITIMATE}' where id=100991; update term set enum='{ILLEGITIMATE}' where id=100992; update term set enum='{ILLEGITIMATE}' where id=100994; update term set enum='{ILLEGITIMATE}' where id=100995; update term set enum='{ILLEGITIMATE}' where id=100999; update term set enum='{ILLEGITIMATE}' where id=108131; update term set enum='{ILLEGITIMATE}' where id=108132; update term set enum='{ILLEGITIMATE}' where id=108133; update term set enum='{ILLEGITIMATE}' where id=108134; update term set enum='{ILLEGITIMATE}' where id=108135; update term set enum='{ILLEGITIMATE}' where id=108138; update term set enum='{ILLEGITIMATE}' where id=108143; update term set enum='{ILLEGITIMATE}' where id=100285; update term set enum='{ILLEGITIMATE}' where id=108121; update term set enum='{ILLEGITIMATE}' where id=100298; update term set enum='{ILLEGITIMATE}' where id=108119; update term set enum='{ILLEGITIMATE}' where id=100311; update term set enum='{ILLEGITIMATE}' where id=100316; update term set enum='{ILLEGITIMATE}' where id=100326; update term set enum='{ILLEGITIMATE}' where id=100334; update term set enum='{ILLEGITIMATE}' where id=100358; update term set enum='{ILLEGITIMATE}' where id=100391; update term set enum='{ILLEGITIMATE}' where id=108149; update term set enum='{ILLEGITIMATE}' where id=6090; update term set enum='{ILLEGITIMATE}' where id=108148; update term set enum='{ILLEGITIMATE}' where id=108147; update term set enum='{ILLEGITIMATE}' where id=108145; update term set enum='{ILLEGITIMATE}' where id=108115; update term set enum='{ILLEGITIMATE}' where id=100497; update term set enum='{ILLEGITIMATE}' where id=100509; update term set enum='{ILLEGITIMATE}' where id=108124; update term set enum='{ILLEGITIMATE}' where id=108123; update term set enum='{ILLEGITIMATE}' where id=108154; update term set enum='{ILLEGITIMATE}' where id=108122; update term set enum='{ILLEGITIMATE}' where id=100059; update term set enum='{ILLEGITIMATE}' where id=100826; update term set enum='{ILLEGITIMATE}' where id=100827; update term set enum='{ILLEGITIMATE}' where id=100828; update term set enum='{ILLEGITIMATE}' where id=100829; update term set enum='{ILLEGITIMATE}' where id=100831; update term set enum='{ILLEGITIMATE}' where id=100485; update term set enum='{ILLEGITIMATE}' where id=108142; update term set enum='{ILLEGITIMATE}' where id=108141; update term set enum='{ILLEGITIMATE}' where id=108140; update term set enum='{ILLEGITIMATE}' where id=108139; update term set enum='{ILLEGITIMATE}' where id=100410; update term set enum='{ILLEGITIMATE}' where id=108137; update term set enum='{ILLEGITIMATE}' where id=108130; update term set enum='{ILLEGITIMATE}' where id=108118; update term set enum='{ILLEGITIMATE}' where id=108117; update term set enum='{ILLEGITIMATE}' where id=108116; update term set enum='{ILLEGITIMATE}' where id=108129; update term set enum='{ILLEGITIMATE}' where id=108128; update term set enum='{ILLEGITIMATE}' where id=108127; update term set enum='{ILLEGITIMATE}' where id=108126; update term set enum='{ILLEGITIMATE}' where id=108125; update term set enum='{ILLEGITIMATE}' where id=100840; update term set enum='{ILLEGITIMATE}' where id=100842; update term set enum='{ILLEGITIMATE}' where id=100843; update term set enum='{ILLEGITIMATE}' where id=100845; update term set enum='{ILLEGITIMATE}' where id=100847; update term set enum='{ILLEGITIMATE}' where id=100848; update term set enum='{ILLEGITIMATE}' where id=100849; update term set enum='{ILLEGITIMATE}' where id=100850; update term set enum='{ILLEGITIMATE}' where id=100851; update term set enum='{ILLEGITIMATE}' where id=100852; update term set enum='{ILLEGITIMATE}' where id=100853; update term set enum='{ILLEGITIMATE}' where id=100854; update term set enum='{ILLEGITIMATE}' where id=100855; update term set enum='{ILLEGITIMATE}' where id=100857; update term set enum='{ILLEGITIMATE}' where id=100858; update term set enum='{ILLEGITIMATE}' where id=100860; update term set enum='{ILLEGITIMATE}' where id=100861; update term set enum='{ILLEGITIMATE}' where id=100862; update term set enum='{ILLEGITIMATE}' where id=100863; update term set enum='{ILLEGITIMATE}' where id=100864; update term set enum='{ILLEGITIMATE}' where id=100865; update term set enum='{ILLEGITIMATE}' where id=100866; update term set enum='{ILLEGITIMATE}' where id=100867; update term set enum='{ILLEGITIMATE}' where id=100868; update term set enum='{ILLEGITIMATE}' where id=100869; update term set enum='{ILLEGITIMATE}' where id=100870; update term set enum='{ILLEGITIMATE}' where id=100871; update term set enum='{ILLEGITIMATE}' where id=100872; update term set enum='{ILLEGITIMATE}' where id=100873; update term set enum='{ILLEGITIMATE}' where id=100876; update term set enum='{ILLEGITIMATE}' where id=100877; update term set enum='{ILLEGITIMATE}' where id=100878; update term set enum='{ILLEGITIMATE}' where id=100879; update term set enum='{ILLEGITIMATE}' where id=100880; update term set enum='{ILLEGITIMATE}' where id=100881; update term set enum='{ILLEGITIMATE}' where id=100882; update term set enum='{ILLEGITIMATE}' where id=100886; update term set enum='{ILLEGITIMATE}' where id=100890; update term set enum='{ILLEGITIMATE}' where id=100902; update term set enum='{ILLEGITIMATE}' where id=100903; update term set enum='{ILLEGITIMATE}' where id=100904; update term set enum='{ILLEGITIMATE}' where id=100905; update term set enum='{ILLEGITIMATE}' where id=100906; update term set enum='{ILLEGITIMATE}' where id=100907; update term set enum='{ILLEGITIMATE}' where id=100908; update term set enum='{ILLEGITIMATE}' where id=100909; update term set enum='{ILLEGITIMATE}' where id=100910; update term set enum='{ILLEGITIMATE}' where id=100911; update term set enum='{ILLEGITIMATE}' where id=100912; update term set enum='{ILLEGITIMATE}' where id=100913; update term set enum='{ILLEGITIMATE}' where id=100915; update term set enum='{ILLEGITIMATE}' where id=100916; update term set enum='{ILLEGITIMATE}' where id=100917; update term set enum='{ILLEGITIMATE}' where id=100918; update term set enum='{ILLEGITIMATE}' where id=100921; update term set enum='{ILLEGITIMATE}' where id=100922; update term set enum='{ILLEGITIMATE}' where id=100923; update term set enum='{ILLEGITIMATE}' where id=100924; update term set enum='{ILLEGITIMATE}' where id=100926; update term set enum='{ILLEGITIMATE}' where id=100936; update term set enum='{ILLEGITIMATE}' where id=100938; update term set enum='{ILLEGITIMATE}' where id=100940; update term set enum='{ILLEGITIMATE}' where id=100941; update term set enum='{ILLEGITIMATE}' where id=100944; update term set enum='{ILLEGITIMATE}' where id=100945; update term set enum='{ILLEGITIMATE}' where id=100946; update term set enum='{ILLEGITIMATE}' where id=100948; update term set enum='{ILLEGITIMATE}' where id=100950; update term set enum='{ILLEGITIMATE}' where id=100951; update term set enum='{ILLEGITIMATE}' where id=100954; update term set enum='{ILLEGITIMATE}' where id=100956; update term set enum='{ILLEGITIMATE}' where id=100957; update term set enum='{ILLEGITIMATE}' where id=100959; update term set enum='{ILLEGITIMATE}' where id=100960; update term set enum='{ILLEGITIMATE}' where id=100965; update term set enum='{ILLEGITIMATE}' where id=100971; update term set enum='{ILLEGITIMATE}' where id=100974; update term set enum='{ILLEGITIMATE}' where id=100981; update term set enum='{ILLEGITIMATE}' where id=100997; update term set enum='{ILLEGITIMATE}' where id=101001; update term set enum='{ILLEGITIMATE}' where id=101003; update term set enum='{ILLEGITIMATE}' where id=101005; update term set enum='{ILLEGITIMATE}' where id=101006; update term set enum='{ILLEGITIMATE}' where id=101007; update term set enum='{ILLEGITIMATE}' where id=101008; update term set enum='{ILLEGITIMATE}' where id=101009; update term set enum='{ILLEGITIMATE}' where id=101010; update term set enum='{ILLEGITIMATE}' where id=101013; update term set enum='{ILLEGITIMATE}' where id=101015; update term set enum='{ILLEGITIMATE}' where id=101019; update term set enum='{ILLEGITIMATE}' where id=101020; update term set enum='{ILLEGITIMATE}' where id=101022; update term set enum='{ILLEGITIMATE}' where id=101023; update term set enum='{ILLEGITIMATE}' where id=101024; update term set enum='{ILLEGITIMATE}' where id=101025; update term set enum='{ILLEGITIMATE}' where id=101026; update term set enum='{ILLEGITIMATE}' where id=101027; update term set enum='{ILLEGITIMATE}' where id=101028; update term set enum='{ILLEGITIMATE}' where id=101029; update term set enum='{ILLEGITIMATE}' where id=101030; update term set enum='{ILLEGITIMATE}' where id=101032; update term set enum='{ILLEGITIMATE}' where id=101033; update term set enum='{ILLEGITIMATE}' where id=101034; update term set enum='{ILLEGITIMATE}' where id=101036; update term set enum='{ILLEGITIMATE}' where id=101037; update term set enum='{ILLEGITIMATE}' where id=101041; update term set enum='{ILLEGITIMATE}' where id=101042; update term set enum='{ILLEGITIMATE}' where id=101044; update term set enum='{ILLEGITIMATE}' where id=101045; update term set enum='{ILLEGITIMATE}' where id=101048; update term set enum='{ILLEGITIMATE}' where id=101049; update term set enum='{ILLEGITIMATE}' where id=108151; update term set enum='{ILLEGITIMATE}' where id=108152; update term set enum='{ILLEGITIMATE}' where id=108153; update term set enum='{ILLEGITIMATE}' where id=108103; update term set enum='{ILLEGITIMATE}' where id=108104; update term set enum='{ILLEGITIMATE}' where id=108108; update term set enum='{ILLEGITIMATE}' where id=108109; update term set enum='{ILLEGITIMATE}' where id=108110; update term set enum='{ILLEGITIMATE}' where id=108111; update term set enum='{ILLEGITIMATE}' where id=108112; update term set enum='{ILLEGITIMATE}' where id=108113; update term set enum='{ILLEGITIMATE}' where id=108114; update term set enum='{INVALID,NUDUM}' where id=100284; update term set enum='{INVALID}' where id=100544; update term set enum='{INVALID}' where id=100545; update term set enum='{INVALID}' where id=100547; update term set enum='{INVALID}' where id=100548; update term set enum='{INVALID}' where id=100549; update term set enum='{INVALID}' where id=100550; update term set enum='{INVALID}' where id=100551; update term set enum='{INVALID}' where id=100552; update term set enum='{INVALID}' where id=100553; update term set enum='{INVALID}' where id=100554; update term set enum='{INVALID}' where id=100555; update term set enum='{INVALID}' where id=100556; update term set enum='{INVALID}' where id=100557; update term set enum='{INVALID}' where id=100558; update term set enum='{INVALID}' where id=100559; update term set enum='{INVALID}' where id=100560; update term set enum='{INVALID}' where id=100561; update term set enum='{INVALID}' where id=100562; update term set enum='{INVALID}' where id=100563; update term set enum='{INVALID}' where id=100564; update term set enum='{INVALID}' where id=100565; update term set enum='{INVALID}' where id=100566; update term set enum='{INVALID}' where id=100567; update term set enum='{INVALID}' where id=100568; update term set enum='{INVALID}' where id=100569; update term set enum='{INVALID}' where id=100578; update term set enum='{INVALID}' where id=100579; update term set enum='{INVALID}' where id=100580; update term set enum='{INVALID}' where id=100581; update term set enum='{INVALID}' where id=100582; update term set enum='{INVALID}' where id=100583; update term set enum='{INVALID}' where id=100546; update term set enum='{INVALID}' where id=6100; update term set enum='{INVALID}' where id=100047; update term set enum='{INVALID}' where id=100291; update term set enum='{INVALID}' where id=100331; update term set enum='{INVALID}' where id=100332; update term set enum='{INVALID}' where id=100336; update term set enum='{INVALID}' where id=100337; update term set enum='{INVALID}' where id=100338; update term set enum='{INVALID}' where id=100339; update term set enum='{INVALID}' where id=100341; update term set enum='{INVALID}' where id=100343; update term set enum='{INVALID}' where id=100401; update term set enum='{INVALID}' where id=100402; update term set enum='{INVALID}' where id=100403; update term set enum='{INVALID}' where id=100404; update term set enum='{INVALID}' where id=100405; update term set enum='{INVALID}' where id=100406; update term set enum='{INVALID}' where id=100407; update term set enum='{INVALID}' where id=100409; update term set enum='{INVALID}' where id=100486; update term set enum='{INVALID}' where id=100487; update term set enum='{INVALID}' where id=100488; update term set enum='{INVALID}' where id=100489; update term set enum='{INVALID}' where id=100491; update term set enum='{INVALID}' where id=100492; update term set enum='{INVALID}' where id=100493; update term set enum='{INVALID}' where id=100571; update term set enum='{INVALID}' where id=100572; update term set enum='{INVALID}' where id=100573; update term set enum='{INVALID}' where id=100574; update term set enum='{INVALID}' where id=100575; update term set enum='{INVALID}' where id=100576; update term set enum='{INVALID}' where id=100577; update term set enum='{INVALID}' where id=101053; update term set enum='{INVALID}' where id=100344; update term set enum='{INVALID}' where id=100345; update term set enum='{INVALID}' where id=100346; update term set enum='{INVALID}' where id=100347; update term set enum='{INVALID}' where id=100348; update term set enum='{INVALID}' where id=100349; update term set enum='{INVALID}' where id=100350; update term set enum='{INVALID}' where id=100351; update term set enum='{INVALID}' where id=100352; update term set enum='{INVALID}' where id=100353; update term set enum='{INVALID}' where id=100354; update term set enum='{INVALID}' where id=100355; update term set enum='{INVALID}' where id=100356; update term set enum='{INVALID}' where id=100357; update term set enum='{INVALID}' where id=100359; update term set enum='{INVALID}' where id=100360; update term set enum='{INVALID}' where id=100361; update term set enum='{INVALID}' where id=100362; update term set enum='{INVALID}' where id=100363; update term set enum='{INVALID}' where id=100364; update term set enum='{INVALID}' where id=100365; update term set enum='{INVALID}' where id=100366; update term set enum='{INVALID}' where id=100367; update term set enum='{INVALID}' where id=100369; update term set enum='{INVALID}' where id=100370; update term set enum='{INVALID}' where id=100371; update term set enum='{INVALID}' where id=100372; update term set enum='{INVALID}' where id=100373; update term set enum='{INVALID}' where id=100374; update term set enum='{INVALID}' where id=100375; update term set enum='{INVALID}' where id=100323; update term set enum='{INVALID}' where id=100327; update term set enum='{INVALID}' where id=100376; update term set enum='{INVALID}' where id=100377; update term set enum='{INVALID}' where id=100378; update term set enum='{INVALID}' where id=100379; update term set enum='{INVALID}' where id=100380; update term set enum='{INVALID}' where id=100381; update term set enum='{INVALID}' where id=100382; update term set enum='{INVALID}' where id=100384; update term set enum='{INVALID}' where id=100385; update term set enum='{INVALID}' where id=100386; update term set enum='{INVALID}' where id=100387; update term set enum='{INVALID}' where id=100388; update term set enum='{INVALID}' where id=100389; update term set enum='{INVALID}' where id=100392; update term set enum='{INVALID}' where id=100393; update term set enum='{INVALID}' where id=100394; update term set enum='{INVALID}' where id=100396; update term set enum='{INVALID}' where id=100397; update term set enum='{INVALID}' where id=100398; update term set enum='{INVALID}' where id=100399; update term set enum='{INVALID}' where id=100310; update term set enum='{INVALID}' where id=100312; update term set enum='{INVALID}' where id=100313; update term set enum='{INVALID}' where id=100314; update term set enum='{INVALID}' where id=100319; update term set enum='{INVALID}' where id=100320; update term set enum='{INVALID}' where id=100321; update term set enum='{INVALID}' where id=100322; update term set enum='{INVALID}' where id=100325; update term set enum='{INVALID}' where id=100411; update term set enum='{INVALID}' where id=100412; update term set enum='{INVALID}' where id=100413; update term set enum='{INVALID}' where id=100414; update term set enum='{INVALID}' where id=100415; update term set enum='{INVALID}' where id=100416; update term set enum='{INVALID}' where id=100417; update term set enum='{INVALID}' where id=100418; update term set enum='{INVALID}' where id=100419; update term set enum='{INVALID}' where id=100420; update term set enum='{INVALID}' where id=100421; update term set enum='{INVALID}' where id=100422; update term set enum='{INVALID}' where id=100423; update term set enum='{INVALID}' where id=100424; update term set enum='{INVALID}' where id=100425; update term set enum='{INVALID}' where id=100426; update term set enum='{INVALID}' where id=100427; update term set enum='{INVALID}' where id=100428; update term set enum='{INVALID}' where id=100429; update term set enum='{INVALID}' where id=100430; update term set enum='{INVALID}' where id=100431; update term set enum='{INVALID}' where id=100432; update term set enum='{INVALID}' where id=100433; update term set enum='{INVALID}' where id=100435; update term set enum='{INVALID}' where id=100436; update term set enum='{INVALID}' where id=100437; update term set enum='{INVALID}' where id=100438; update term set enum='{INVALID}' where id=100439; update term set enum='{INVALID}' where id=100440; update term set enum='{INVALID}' where id=100441; update term set enum='{INVALID}' where id=100442; update term set enum='{INVALID}' where id=100443; update term set enum='{INVALID}' where id=100444; update term set enum='{INVALID}' where id=100445; update term set enum='{INVALID}' where id=100446; update term set enum='{INVALID}' where id=100447; update term set enum='{INVALID}' where id=100448; update term set enum='{INVALID}' where id=100449; update term set enum='{INVALID}' where id=100450; update term set enum='{INVALID}' where id=100451; update term set enum='{INVALID}' where id=100452; update term set enum='{INVALID}' where id=100453; update term set enum='{INVALID}' where id=100454; update term set enum='{INVALID}' where id=100455; update term set enum='{INVALID}' where id=100456; update term set enum='{INVALID}' where id=100457; update term set enum='{INVALID}' where id=100458; update term set enum='{INVALID}' where id=100459; update term set enum='{INVALID}' where id=100460; update term set enum='{INVALID}' where id=100461; update term set enum='{INVALID}' where id=100462; update term set enum='{INVALID}' where id=100463; update term set enum='{INVALID}' where id=100464; update term set enum='{INVALID}' where id=100465; update term set enum='{INVALID}' where id=100466; update term set enum='{INVALID}' where id=100468; update term set enum='{INVALID}' where id=100470; update term set enum='{INVALID}' where id=100471; update term set enum='{INVALID}' where id=100472; update term set enum='{INVALID}' where id=100473; update term set enum='{INVALID}' where id=100474; update term set enum='{INVALID}' where id=100475; update term set enum='{INVALID}' where id=100476; update term set enum='{INVALID}' where id=100477; update term set enum='{INVALID}' where id=100478; update term set enum='{INVALID}' where id=100479; update term set enum='{INVALID}' where id=100480; update term set enum='{INVALID}' where id=100481; update term set enum='{INVALID}' where id=100483; update term set enum='{INVALID}' where id=100484; update term set enum='{INVALID}' where id=100495; update term set enum='{INVALID}' where id=100496; update term set enum='{INVALID}' where id=100498; update term set enum='{INVALID}' where id=100499; update term set enum='{INVALID}' where id=100501; update term set enum='{INVALID}' where id=100502; update term set enum='{INVALID}' where id=100503; update term set enum='{INVALID}' where id=100504; update term set enum='{INVALID}' where id=100505; update term set enum='{INVALID}' where id=100506; update term set enum='{INVALID}' where id=100507; update term set enum='{INVALID}' where id=100508; update term set enum='{INVALID}' where id=100510; update term set enum='{INVALID}' where id=100511; update term set enum='{INVALID}' where id=100512; update term set enum='{INVALID}' where id=100513; update term set enum='{INVALID}' where id=100514; update term set enum='{INVALID}' where id=100517; update term set enum='{INVALID}' where id=100518; update term set enum='{INVALID}' where id=100519; update term set enum='{INVALID}' where id=100520; update term set enum='{INVALID}' where id=100521; update term set enum='{INVALID}' where id=100522; update term set enum='{INVALID}' where id=100523; update term set enum='{INVALID}' where id=100524; update term set enum='{INVALID}' where id=100525; update term set enum='{INVALID}' where id=100526; update term set enum='{INVALID}' where id=100527; update term set enum='{INVALID}' where id=100528; update term set enum='{INVALID}' where id=100529; update term set enum='{INVALID}' where id=100530; update term set enum='{INVALID}' where id=100531; update term set enum='{INVALID}' where id=100532; update term set enum='{INVALID}' where id=100533; update term set enum='{INVALID}' where id=100534; update term set enum='{INVALID}' where id=100535; update term set enum='{INVALID}' where id=100536; update term set enum='{INVALID}' where id=100537; update term set enum='{INVALID}' where id=100538; update term set enum='{INVALID}' where id=100539; update term set enum='{INVALID}' where id=100540; update term set enum='{INVALID}' where id=100542; update term set enum='{INVALID}' where id=100543; update term set enum='{LEGITIMATE}' where id=6110; update term set enum='{NEW_COMBINATION}' where id=130459; update term set enum='{NEW_COMBINATION}' where id=100041; update term set enum='{NEW_COMBINATION}' where id=6040; update term set enum='{NEW_GENUS}' where id=130458; update term set enum='{NEW_SPECIES}' where id=130460; update term set enum='{NUDUM}' where id=6140; update term set enum='{ORTHOGRAPHIC_VARIANT}' where id=100053; update term set enum='{ORTHOGRAPHIC_VARIANT}' where id=6170; update term set enum='{PROTECTED}' where id=6180; update term set enum='{PROVISIONAL}' where id=6190; update term set enum='{REJECTED_OUTRIGHT' where id=6220; update term set enum='{REJECTED_OUTRIGHT_PROPOSED}' where id=6230; update term set enum='{REJECTED_PROPOSED' where id=6210; update term set enum='{REJECTED}' where id=6200; update term set enum='{REJECTED}' where id=100045; update term set enum='{REPLACEMENT}' where id=6130; update term set enum='{SUBNUDUM' where id=6240; update term set enum='{SUPERFLUOUS}' where id=100293; update term set enum='{SUPERFLUOUS}' where id=6250; update term set enum='{SUPPRESSED}' where id=6160; update term set enum='{VALIDLY_PUBLISHED}' where id=6260; update term set enum='{VALIDLY_PUBLISHED}' where id=6030; update term set enum='{VALIDLY_PUBLISHED}' where id=100278; -- occ status update term set enum='PRESENT' where id=7000; update term set enum='ABSENT' where id=7001; update term set enum='COMMON' where id=7002; update term set enum='RARE' where id=7003; update term set enum='IRREGULAR' where id=7004; update term set enum='DOUBTFUL' where id=7005; update term set enum='EXCLUDED' where id=7006; -- rank update term set enum='DOMAIN' where id=0; update term set enum='KINGDOM' where id=25; update term set enum='SUBKINGDOM' where id=50; update term set enum='SUPERPHYLUM' where id=60; update term set enum='PHYLUM' where id=75; update term set enum='SUBPHYLUM' where id=100; update term set enum='SUPERCLASS' where id=125; update term set enum='CLASS' where id=150; update term set enum='SUBCLASS' where id=175; update term set enum='SUPERORDER' where id=200; update term set enum='ORDER' where id=225; update term set enum='SUBORDER' where id=250; update term set enum='INFRAORDER' where id=275; update term set enum='SUPERFAMILY' where id=300; update term set enum='FAMILY' where id=325; update term set enum='SUBFAMILY' where id=350; update term set enum='TRIBE' where id=375; update term set enum='SUBTRIBE' where id=400; update term set enum='SUPRAGENERIC_NAME' where id=410; update term set enum='GENUS' where id=425; update term set enum='SUBGENUS' where id=450; update term set enum='SECTION' where id=475; update term set enum='SUBSECTION' where id=500; update term set enum='SERIES' where id=525; update term set enum='SUBSERIES' where id=550; update term set enum='INFRAGENERIC_NAME' where id=575; update term set enum='SPECIES' where id=600; update term set enum='INFRASPECIFIC_NAME' where id=625; update term set enum='SUBSPECIES' where id=650; update term set enum='INFRASUBSPECIFIC_NAME' where id=675; update term set enum='VARIETY' where id=700; update term set enum='SUBVARIETY' where id=725; update term set enum='FORM' where id=750; update term set enum='SUBFORM' where id=775; update term set enum='CULTIVAR_GROUP' where id=800; update term set enum='CULTIVAR' where id=825; update term set enum='STRAIN' where id=835; update term set enum='INFORMAL' where id=850; update term set enum='UNRANKED' where id=875; -- sex update term set enum='MALE' where id=8000; update term set enum='FEMALE' where id=8001; update term set enum='HERMAPHRODITE' where id=8002; -- status update term set enum='ACCEPTED' where id=9000; update term set enum='SYNONYM' where id=9001; update term set enum='HETEROTYPIC_SYNONYM' where id=9002; update term set enum='HOMOTYPIC_SYNONYM' where id=9003; update term set enum='PROPARTE_SYNONYM' where id=9004; update term set enum='MISAPPLIED' where id=9005; update term set enum='INTERMEDIATE_RANK_SYNONYM' where id=9006; update term set enum='DETERMINATION_SYNONYM' where id=9007; update term set enum='DOUBTFUL' where id=9008; -- threat update term set enum='LEAST_CONCERN' where id=10000; update term set enum='NEAR_THREATENED' where id=10001; update term set enum='VULNERABLE' where id=10002; update term set enum='ENDANGERED' where id=10003; update term set enum='CRITICALLY_ENDANGERED' where id=10004; update term set enum='EXTINCT_IN_THE_WILD' where id=10005; update term set enum='EXTINCT' where id=10006; update term set enum='DATA_DEFICIENT' where id=10007; update term set enum='NOT_EVALUATED' where id=10008; -- type status update term set enum='ALLOLECTOTYPE' where id=13000; update term set enum='ALLONEOTYPE' where id=13010; update term set enum='ALLOTYPE' where id=13020; update term set enum='COTYPE' where id=13030; update term set enum='EPITYPE' where id=13040; update term set enum='EXEPITYPE' where id=13050; update term set enum='EXHOLOTYPE' where id=13060; update term set enum='EXISOTYPE' where id=13070; update term set enum='EXLECTOTYPE' where id=13080; update term set enum='EXNEOTYPE' where id=13090; update term set enum='EXPARATYPE' where id=13100; update term set enum='EXSYNTYPE' where id=13110; update term set enum='EXTYPE' where id=13120; update term set enum='HAPANTOTYPE' where id=13130; update term set enum='HOLOTYPE' where id=13140; update term set enum='ICONOTYPE' where id=13150; update term set enum='ISOLECTOTYPE' where id=13160; update term set enum='ISONEOTYPE' where id=13170; update term set enum='ISOSYNTYPE' where id=13180; update term set enum='ISOTYPE' where id=13190; update term set enum='LECTOTYPE' where id=13200; update term set enum='NEOTYPE' where id=13210; update term set enum='NOTATYPE' where id=13220; update term set enum='ORIGINALMATERIAL' where id=13230; update term set enum='PARALECTOTYPE' where id=13240; update term set enum='PARANEOTYPE' where id=13250; update term set enum='PARATYPE' where id=13260; update term set enum='PLASTOHOLOTYPE' where id=13270; update term set enum='PLASTOISOTYPE' where id=13280; update term set enum='PLASTOLECTOTYPE' where id=13290; update term set enum='PLASTONEOTYPE' where id=13300; update term set enum='PLASTOPARATYPE' where id=13310; update term set enum='PLASTOSYNTYPE' where id=13320; update term set enum='PLASTOTYPE' where id=13330; update term set enum='SECONDARYTYPE' where id=13340; update term set enum='SUPPLEMENTARYTYPE' where id=13350; update term set enum='SYNTYPE' where id=13360; update term set enum='TOPOTYPE' where id=13370; update term set enum='TYPE' where id=13380; update term set enum='TYPE_SPECIES' where id=13390; update term set enum='TYPE_GENUS' where id=13400;
<filename>backend/resources/db/migration/common/R__metric_data_views.sql<gh_stars>10-100 create or replace view "metric-data-ext" as select point, "app-id", scope, name, "server-id", "call-count", "total-call-time", "total-exclusive-time", "min-call-time", "max-call-time", "sum-of-squares" from "metric-data" as data join keys on keys.id = data."key-id"; -- create or replace view "apdex-hot" as -- select -- metric, time, -- (s + t/2) / (s + t + f) as apdex -- from ( -- select -- point as time, -- apps.name as metric, -- sum("call-count") as s, -- sum("total-call-time") as t, -- sum("total-exclusive-time") as f -- from apps -- left join "metric-data-hot-ext" as data on apps.id = data."app-id" -- where -- data.scope = '' -- and data.name = 'Apdex' -- group by apps.name, time -- ) as res;
<gh_stars>100-1000 -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may not use this file except in compliance with -- the License. You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. SELECT * FROM ( SELECT i_category, i_class, i_brand, s_store_name, s_company_name, d_moy, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) OVER (PARTITION BY i_category, i_brand, s_store_name, s_company_name) avg_monthly_sales FROM item, store_sales, date_dim, store WHERE ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND ss_store_sk = s_store_sk AND d_year IN (1999) AND ((i_category IN ('Books', 'Electronics', 'Sports') AND i_class IN ('computers', 'stereo', 'football')) OR (i_category IN ('Men', 'Jewelry', 'Women') AND i_class IN ('shirts', 'birdal', 'dresses'))) GROUP BY i_category, i_class, i_brand, s_store_name, s_company_name, d_moy) tmp1 WHERE CASE WHEN (avg_monthly_sales <> 0) THEN (abs(sum_sales - avg_monthly_sales) / avg_monthly_sales) ELSE NULL END > 0.1 ORDER BY sum_sales - avg_monthly_sales, s_store_name LIMIT 100
-- start_ignore ! gpconfig -c gp_vmem_limit_per_query -v '20MB' --skipvalidation ! gpconfig -c gp_vmem_protect_limit -v '60' ! gpconfig -c runaway_detector_activation_percent -v 0 ! gpstop -rai; -- end_ignore
<filename>db/characters/get_char_by_category.sql<gh_stars>10-100 SELECT * FROM characters WHERE category ilike $1 ORDER BY char_id;
-- @testpoint: round函数入参为空或者负数 drop table if exists tb; create table tb (nem numeric); insert into tb values (''); insert into tb values (null); insert into tb values (-9.56); select round(nem) from tb; drop table tb;
<filename>db_alterations.sql create table team_has_users(team_id int(10) not null, user_id int(10) not null, created_at timestamp, updated_at timestamp);
INSERT INTO cocktail_accessory (cocktail_id, accessory_category_id, pieces) VALUES ( (SELECT id FROM cocktail WHERE cocktail.name = 'Gin & Tonic'), (SELECT id FROM accessory_category WHERE accessory_category.name = 'Cucumber'), 2 );
ALTER TABLE patient ADD start_bmi varchar(20) AFTER start_bsa// ALTER TABLE patient ADD bmi varchar(20) AFTER sa//
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 10, 2021 at 01:54 PM -- Server version: 5.7.24 -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `deliveboo` -- -- -------------------------------------------------------- -- -- Table structure for table `dishes` -- CREATE TABLE `dishes` ( `id` bigint(20) UNSIGNED NOT NULL, `portata` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (16, '2014_10_12_000000_create_users_table', 1), (17, '2014_10_12_100000_create_password_resets_table', 1), (18, '2019_08_19_000000_create_failed_jobs_table', 1), (19, '2021_06_10_125835_create_plates_table', 1), (20, '2021_06_10_130217_add_foreign_key_user_plates_table', 1), (21, '2021_06_10_130937_create_dishes_table', 1), (22, '2021_06_10_131119_add_foreign_key_dish_plates_table', 1), (23, '2021_06_10_132256_create_orders_table', 1), (24, '2021_06_10_133319_create_order_plate_table', 1), (25, '2021_06_10_133927_create_payments_table', 1), (26, '2021_06_10_134045_add_foreign_key_order_payment_table', 1), (27, '2021_06_10_134320_create_tags_table', 1), (28, '2021_06_10_134933_create_user_tag_table', 2); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `id` bigint(20) UNSIGNED NOT NULL, `nome` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `cognome` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `numero_telefono` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `totale` double(5,2) NOT NULL, `minuti_consegna` time NOT NULL, `info` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `order_plate` -- CREATE TABLE `order_plate` ( `order_id` bigint(20) UNSIGNED NOT NULL, `plate_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `payments` -- CREATE TABLE `payments` ( `id` bigint(20) UNSIGNED NOT NULL, `status` tinyint(1) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `order_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `plates` -- CREATE TABLE `plates` ( `id` bigint(20) UNSIGNED NOT NULL, `nome_piatto` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `prezzo` double(5,2) NOT NULL, `ingredienti` text COLLATE utf8mb4_unicode_ci NOT NULL, `descrizione` text COLLATE utf8mb4_unicode_ci, `visibilita` tinyint(1) NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `dish_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `tags` -- CREATE TABLE `tags` ( `id` bigint(20) UNSIGNED NOT NULL, `cucina` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `nome_attivita` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `indirizzo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `p_iva` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `img_logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `img_banner` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `user_tag` -- CREATE TABLE `user_tag` ( `user_id` bigint(20) UNSIGNED NOT NULL, `tag_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Indexes for dumped tables -- -- -- Indexes for table `dishes` -- ALTER TABLE `dishes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`id`); -- -- Indexes for table `order_plate` -- ALTER TABLE `order_plate` ADD PRIMARY KEY (`plate_id`,`order_id`), ADD KEY `order_plate_order_id_foreign` (`order_id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `payments` -- ALTER TABLE `payments` ADD PRIMARY KEY (`id`), ADD KEY `payments_order_id_foreign` (`order_id`); -- -- Indexes for table `plates` -- ALTER TABLE `plates` ADD PRIMARY KEY (`id`), ADD KEY `plates_user_id_foreign` (`user_id`), ADD KEY `plates_dish_id_foreign` (`dish_id`); -- -- Indexes for table `tags` -- ALTER TABLE `tags` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`), ADD UNIQUE KEY `users_p_iva_unique` (`p_iva`); -- -- Indexes for table `user_tag` -- ALTER TABLE `user_tag` ADD PRIMARY KEY (`user_id`,`tag_id`), ADD KEY `user_tag_tag_id_foreign` (`tag_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `dishes` -- ALTER TABLE `dishes` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `payments` -- ALTER TABLE `payments` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `plates` -- ALTER TABLE `plates` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tags` -- ALTER TABLE `tags` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `order_plate` -- ALTER TABLE `order_plate` ADD CONSTRAINT `order_plate_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`), ADD CONSTRAINT `order_plate_plate_id_foreign` FOREIGN KEY (`plate_id`) REFERENCES `plates` (`id`); -- -- Constraints for table `payments` -- ALTER TABLE `payments` ADD CONSTRAINT `payments_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`); -- -- Constraints for table `plates` -- ALTER TABLE `plates` ADD CONSTRAINT `plates_dish_id_foreign` FOREIGN KEY (`dish_id`) REFERENCES `dishes` (`id`), ADD CONSTRAINT `plates_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); -- -- Constraints for table `user_tag` -- ALTER TABLE `user_tag` ADD CONSTRAINT `user_tag_tag_id_foreign` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`), ADD CONSTRAINT `user_tag_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>EugenJantshenko/E-commerce-. INSERT INTO `manufacturer` (`manufacturer_name`) VALUES ('manufacturerId 1'); INSERT INTO `manufacturer` (`manufacturer_name`) VALUES ('manufacturerId 2'); INSERT INTO `manufacturer` (`manufacturer_name`) VALUES ('manufacturerId 3'); INSERT INTO `manufacturer` (`manufacturer_name`) VALUES ('manufacturerId 4'); INSERT INTO `manufacturer` (`manufacturer_name`) VALUES ('manufacturerId 5');
--insert usuario merge into usuario (nome_usuario, senha, nome) key (nome_usuario) values ('luiz', '123', '<NAME>'); --insert example values merge into entrada (horario, descricao, prioridade, id_usuario) key (horario) values ('2014-10-14 08:00:00', 'Curso Spring MVC', 'I', 1); merge into entrada (horario, descricao, prioridade, id_usuario) key (horario) values ('2014-10-14 13:00:00', 'Churrasco', 'P', 1); merge into entrada (horario, descricao, prioridade, id_usuario) key (horario) values ('2014-10-14 14:00:00', 'Nada 1', 'N', 1); merge into entrada (horario, descricao, prioridade, id_usuario) key (horario) values ('2014-10-14 15:00:00', 'Nada 2', 'N', 1); merge into entrada (horario, descricao, prioridade, id_usuario) key (horario) values ('2014-10-21 08:00:00', 'Contitnuação Curso Spring MVC', 'A', 1);
IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = 'read') BEGIN EXEC('CREATE SCHEMA [read]') END
<filename>itunes.sql -- database creation drop database if exists itunes; create database itunes; use itunes; -- table creation create table song ( Name varchar(64) not null, Artist varchar(64) not null, Kind varchar(64) not null, -- the audio file format Total_Time int not null, -- the duration of the audio file in milliseconds Year int not null, Date_Added timestamp not null, -- the date of the song's addition to the library Play_Count int not null, Persistent_ID varchar(64) primary key, Current_Upload_Date timestamp not null, -- the date of the current upload to the database -- fields not obtained from xml file Last_Upload_Date timestamp not null, -- the date of the last upload to the database Relative_Play_Count int not null -- the number of plays in between lastUpload and currentUpload ); select * from song; select Name, Artist, Relative_Play_Count from song order by Relative_Play_Count desc limit 5; select Artist, sum(Relative_Play_Count) from song group by Artist; select Name, Artist, Play_Count from song order by Play_Count desc limit 5;
/* Navicat Premium Data Transfer Source Server : mysql-database Source Server Type : MySQL Source Server Version : 80024 Source Host : localhost:3306 Source Schema : zhihu_spider_db Target Server Type : MySQL Target Server Version : 80024 File Encoding : 65001 Date: 15/06/2021 16:10:32 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for zhihu_answer -- ---------------------------- DROP TABLE IF EXISTS `zhihu_answer`; CREATE TABLE `zhihu_answer` ( `answer_id` bigint NOT NULL, `url` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `question_id` bigint NOT NULL, `author_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `praise_num` int NOT NULL, `comments_num` int NOT NULL, `create_time` date NOT NULL, `update_time` date NOT NULL, `crawl_time` datetime NOT NULL, `crawl_update_time` datetime NULL DEFAULT NULL, PRIMARY KEY (`answer_id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; SET FOREIGN_KEY_CHECKS = 1;
-- file:alter_generic.sql ln:508 expect:true ALTER TEXT SEARCH CONFIGURATION alt_ts_conf1 RENAME TO alt_ts_conf2
<reponame>lucascr91/mais /* Query para publicar a tabela. Esse é o lugar para: - modificar nomes, ordem e tipos de colunas - dar join com outras tabelas - criar colunas extras (e.g. logs, proporções, etc.) Qualquer coluna definida aqui deve também existir em `table_config.yaml`. # Além disso, sinta-se à vontade para alterar alguns nomes obscuros # para algo um pouco mais explícito. TIPOS: - Para modificar tipos de colunas, basta substituir STRING por outro tipo válido. - Exemplo: `SAFE_CAST(column_name AS NUMERIC) column_name` - Mais detalhes: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types */ CREATE VIEW basedosdados-dev.br_ibge_censo_demografico.microdados_pessoa_2010 AS SELECT SAFE_CAST(id_regiao AS STRING) id_regiao, SAFE_CAST(sigla_uf AS STRING) sigla_uf, SAFE_CAST(id_mesorregiao AS STRING) id_mesorregiao, SAFE_CAST(id_microrregiao AS STRING) id_microrregiao, SAFE_CAST(id_regiao_metropolitana AS STRING) id_regiao_metropolitana, SAFE_CAST(id_municipio AS STRING) id_municipio, SAFE_CAST(area_ponderacao AS INT64) area_ponderacao, SAFE_CAST(situacao_setor AS INT64) situacao_setor, SAFE_CAST(situacao_domicilio AS INT64) situacao_domicilio, SAFE_CAST(controle AS INT64) controle, SAFE_CAST(numero_ordem AS INT64) numero_ordem, SAFE_CAST(peso_amostral AS FLOAT64) peso_amostral, SAFE_CAST(v0502 AS INT64) v0502, SAFE_CAST(v0601 AS INT64) v0601, SAFE_CAST(v6033 AS INT64) v6033, SAFE_CAST(v6036 AS INT64) v6036, SAFE_CAST(v6037 AS INT64) v6037, SAFE_CAST(v6040 AS INT64) v6040, SAFE_CAST(v0606 AS INT64) v0606, SAFE_CAST(v0613 AS INT64) v0613, SAFE_CAST(v0614 AS INT64) v0614, SAFE_CAST(v0615 AS INT64) v0615, SAFE_CAST(v0616 AS INT64) v0616, SAFE_CAST(v0617 AS INT64) v0617, SAFE_CAST(v0618 AS INT64) v0618, SAFE_CAST(v0619 AS INT64) v0619, SAFE_CAST(v0620 AS INT64) v0620, SAFE_CAST(v0621 AS INT64) v0621, SAFE_CAST(v0622 AS INT64) v0622, SAFE_CAST(v6222 AS INT64) v6222, SAFE_CAST(v6224 AS INT64) v6224, SAFE_CAST(v0623 AS INT64) v0623, SAFE_CAST(v0624 AS INT64) v0624, SAFE_CAST(v0625 AS INT64) v0625, SAFE_CAST(v6252 AS INT64) v6252, SAFE_CAST(v6254 AS INT64) v6254, SAFE_CAST(v6256 AS INT64) v6256, SAFE_CAST(v0626 AS INT64) v0626, SAFE_CAST(v6262 AS INT64) v6262, SAFE_CAST(v6264 AS INT64) v6264, SAFE_CAST(v6266 AS INT64) v6266, SAFE_CAST(v0627 AS INT64) v0627, SAFE_CAST(v0628 AS INT64) v0628, SAFE_CAST(v0629 AS INT64) v0629, SAFE_CAST(v0630 AS INT64) v0630, SAFE_CAST(v0631 AS INT64) v0631, SAFE_CAST(v0632 AS INT64) v0632, SAFE_CAST(v0633 AS INT64) v0633, SAFE_CAST(v0634 AS INT64) v0634, SAFE_CAST(v0635 AS INT64) v0635, SAFE_CAST(v6400 AS INT64) v6400, SAFE_CAST(v6352 AS INT64) v6352, SAFE_CAST(v6354 AS INT64) v6354, SAFE_CAST(v6356 AS INT64) v6356, SAFE_CAST(v0636 AS INT64) v0636, SAFE_CAST(v6362 AS INT64) v6362, SAFE_CAST(v6364 AS INT64) v6364, SAFE_CAST(v6366 AS INT64) v6366, SAFE_CAST(v0637 AS INT64) v0637, SAFE_CAST(v0638 AS INT64) v0638, SAFE_CAST(v0639 AS INT64) v0639, SAFE_CAST(v0640 AS INT64) v0640, SAFE_CAST(v0641 AS INT64) v0641, SAFE_CAST(v0642 AS INT64) v0642, SAFE_CAST(v0643 AS INT64) v0643, SAFE_CAST(v0644 AS INT64) v0644, SAFE_CAST(v0645 AS INT64) v0645, SAFE_CAST(v6461 AS INT64) v6461, SAFE_CAST(v6471 AS INT64) v6471, SAFE_CAST(v0648 AS INT64) v0648, SAFE_CAST(v0649 AS INT64) v0649, SAFE_CAST(v0650 AS INT64) v0650, SAFE_CAST(v0651 AS INT64) v0651, SAFE_CAST(v6511 AS INT64) v6511, SAFE_CAST(v6513 AS INT64) v6513, SAFE_CAST(v6514 AS FLOAT64) v6514, SAFE_CAST(v0652 AS INT64) v0652, SAFE_CAST(v6521 AS INT64) v6521, SAFE_CAST(v6524 AS INT64) v6524, SAFE_CAST(v6525 AS INT64) v6525, SAFE_CAST(v6526 AS FLOAT64) v6526, SAFE_CAST(v6527 AS INT64) v6527, SAFE_CAST(v6528 AS FLOAT64) v6528, SAFE_CAST(v6529 AS INT64) v6529, SAFE_CAST(v6530 AS FLOAT64) v6530, SAFE_CAST(v6531 AS INT64) v6531, SAFE_CAST(v6532 AS FLOAT64) v6532, SAFE_CAST(v0653 AS INT64) v0653, SAFE_CAST(v0654 AS INT64) v0654, SAFE_CAST(v0655 AS INT64) v0655, SAFE_CAST(v0656 AS INT64) v0656, SAFE_CAST(v0657 AS INT64) v0657, SAFE_CAST(v0658 AS INT64) v0658, SAFE_CAST(v0659 AS INT64) v0659, SAFE_CAST(v6591 AS INT64) v6591, SAFE_CAST(v0660 AS INT64) v0660, SAFE_CAST(v6602 AS INT64) v6602, SAFE_CAST(v6604 AS INT64) v6604, SAFE_CAST(v6606 AS INT64) v6606, SAFE_CAST(v0661 AS INT64) v0661, SAFE_CAST(v0662 AS INT64) v0662, SAFE_CAST(v0663 AS INT64) v0663, SAFE_CAST(v6631 AS INT64) v6631, SAFE_CAST(v6632 AS INT64) v6632, SAFE_CAST(v6633 AS INT64) v6633, SAFE_CAST(v0664 AS INT64) v0664, SAFE_CAST(v6641 AS INT64) v6641, SAFE_CAST(v6642 AS INT64) v6642, SAFE_CAST(v6643 AS INT64) v6643, SAFE_CAST(v0665 AS INT64) v0665, SAFE_CAST(v6660 AS INT64) v6660, SAFE_CAST(v6664 AS INT64) v6664, SAFE_CAST(v0667 AS INT64) v0667, SAFE_CAST(v0668 AS INT64) v0668, SAFE_CAST(v6681 AS INT64) v6681, SAFE_CAST(v6682 AS INT64) v6682, SAFE_CAST(v0669 AS INT64) v0669, SAFE_CAST(v6691 AS INT64) v6691, SAFE_CAST(v6692 AS INT64) v6692, SAFE_CAST(v6693 AS INT64) v6693, SAFE_CAST(v6800 AS INT64) v6800, SAFE_CAST(v0670 AS INT64) v0670, SAFE_CAST(v0671 AS INT64) v0671, SAFE_CAST(v6900 AS INT64) v6900, SAFE_CAST(v6910 AS INT64) v6910, SAFE_CAST(v6920 AS INT64) v6920, SAFE_CAST(v6930 AS INT64) v6930, SAFE_CAST(v6940 AS INT64) v6940, SAFE_CAST(v6121 AS INT64) v6121, SAFE_CAST(v0604 AS INT64) v0604, SAFE_CAST(v0605 AS INT64) v0605, SAFE_CAST(v5020 AS INT64) v5020, SAFE_CAST(v5060 AS INT64) v5060, SAFE_CAST(v5070 AS INT64) v5070, SAFE_CAST(v5080 AS INT64) v5080, SAFE_CAST(v6462 AS INT64) v6462, SAFE_CAST(v6472 AS INT64) v6472, SAFE_CAST(v5110 AS INT64) v5110, SAFE_CAST(v5120 AS INT64) v5120, SAFE_CAST(v5030 AS INT64) v5030, SAFE_CAST(v5040 AS INT64) v5040, SAFE_CAST(v5090 AS INT64) v5090, SAFE_CAST(v5100 AS INT64) v5100, SAFE_CAST(v5130 AS INT64) v5130, SAFE_CAST(m0502 AS STRING) m0502, SAFE_CAST(m0601 AS STRING) m0601, SAFE_CAST(m6033 AS STRING) m6033, SAFE_CAST(m0606 AS STRING) m0606, SAFE_CAST(m0613 AS STRING) m0613, SAFE_CAST(m0614 AS STRING) m0614, SAFE_CAST(m0615 AS STRING) m0615, SAFE_CAST(m0616 AS STRING) m0616, SAFE_CAST(m0617 AS STRING) m0617, SAFE_CAST(m0618 AS STRING) m0618, SAFE_CAST(m0619 AS STRING) m0619, SAFE_CAST(m0620 AS STRING) m0620, SAFE_CAST(m0621 AS STRING) m0621, SAFE_CAST(m0622 AS STRING) m0622, SAFE_CAST(m6222 AS STRING) m6222, SAFE_CAST(m6224 AS STRING) m6224, SAFE_CAST(m0623 AS STRING) m0623, SAFE_CAST(m0624 AS STRING) m0624, SAFE_CAST(m0625 AS STRING) m0625, SAFE_CAST(m6252 AS STRING) m6252, SAFE_CAST(m6254 AS STRING) m6254, SAFE_CAST(m6256 AS STRING) m6256, SAFE_CAST(m0626 AS STRING) m0626, SAFE_CAST(m6262 AS STRING) m6262, SAFE_CAST(m6264 AS STRING) m6264, SAFE_CAST(m6266 AS STRING) m6266, SAFE_CAST(m0627 AS STRING) m0627, SAFE_CAST(m0628 AS STRING) m0628, SAFE_CAST(m0629 AS STRING) m0629, SAFE_CAST(m0630 AS STRING) m0630, SAFE_CAST(m0631 AS STRING) m0631, SAFE_CAST(m0632 AS STRING) m0632, SAFE_CAST(m0633 AS STRING) m0633, SAFE_CAST(m0634 AS STRING) m0634, SAFE_CAST(m0635 AS STRING) m0635, SAFE_CAST(m6352 AS STRING) m6352, SAFE_CAST(m6354 AS STRING) m6354, SAFE_CAST(m6356 AS STRING) m6356, SAFE_CAST(m0636 AS STRING) m0636, SAFE_CAST(m6362 AS STRING) m6362, SAFE_CAST(m6364 AS STRING) m6364, SAFE_CAST(m6366 AS STRING) m6366, SAFE_CAST(m0637 AS STRING) m0637, SAFE_CAST(m0638 AS STRING) m0638, SAFE_CAST(m0639 AS STRING) m0639, SAFE_CAST(m0640 AS STRING) m0640, SAFE_CAST(m0641 AS STRING) m0641, SAFE_CAST(m0642 AS STRING) m0642, SAFE_CAST(m0643 AS STRING) m0643, SAFE_CAST(m0644 AS STRING) m0644, SAFE_CAST(m0645 AS STRING) m0645, SAFE_CAST(m6461 AS STRING) m6461, SAFE_CAST(m6471 AS STRING) m6471, SAFE_CAST(m0648 AS STRING) m0648, SAFE_CAST(m0649 AS STRING) m0649, SAFE_CAST(m0650 AS STRING) m0650, SAFE_CAST(m0651 AS STRING) m0651, SAFE_CAST(m6511 AS STRING) m6511, SAFE_CAST(m0652 AS STRING) m0652, SAFE_CAST(m6521 AS STRING) m6521, SAFE_CAST(m0653 AS STRING) m0653, SAFE_CAST(m0654 AS STRING) m0654, SAFE_CAST(m0655 AS STRING) m0655, SAFE_CAST(m0656 AS STRING) m0656, SAFE_CAST(m0657 AS STRING) m0657, SAFE_CAST(m0658 AS STRING) m0658, SAFE_CAST(m0659 AS STRING) m0659, SAFE_CAST(m6591 AS STRING) m6591, SAFE_CAST(m0660 AS STRING) m0660, SAFE_CAST(m6602 AS STRING) m6602, SAFE_CAST(m6604 AS STRING) m6604, SAFE_CAST(m6606 AS STRING) m6606, SAFE_CAST(m0661 AS STRING) m0661, SAFE_CAST(m0662 AS STRING) m0662, SAFE_CAST(m0663 AS STRING) m0663, SAFE_CAST(m6631 AS STRING) m6631, SAFE_CAST(m6632 AS STRING) m6632, SAFE_CAST(m6633 AS STRING) m6633, SAFE_CAST(m0664 AS STRING) m0664, SAFE_CAST(m6641 AS STRING) m6641, SAFE_CAST(m6642 AS STRING) m6642, SAFE_CAST(m6643 AS STRING) m6643, SAFE_CAST(m0665 AS STRING) m0665, SAFE_CAST(m6660 AS STRING) m6660, SAFE_CAST(m0667 AS STRING) m0667, SAFE_CAST(m0668 AS STRING) m0668, SAFE_CAST(m6681 AS STRING) m6681, SAFE_CAST(m6682 AS STRING) m6682, SAFE_CAST(m0669 AS STRING) m0669, SAFE_CAST(m6691 AS STRING) m6691, SAFE_CAST(m6692 AS STRING) m6692, SAFE_CAST(m6693 AS STRING) m6693, SAFE_CAST(m0670 AS STRING) m0670, SAFE_CAST(m0671 AS STRING) m0671, SAFE_CAST(m6800 AS STRING) m6800, SAFE_CAST(m6121 AS STRING) m6121, SAFE_CAST(m0604 AS STRING) m0604, SAFE_CAST(m0605 AS STRING) m0605, SAFE_CAST(m6462 AS STRING) m6462, SAFE_CAST(m6472 AS STRING) m6472 FROM basedosdados-dev.br_ibge_censo_demografico_staging.microdados_pessoa_2010 AS t
ALTER TABLE db_version CHANGE COLUMN required_7643_02_mangos_mangos_string required_7662_01_mangos_spell_chain bit; DELETE FROM `spell_chain` WHERE spell_id IN (50288, 53191, 53194, 53195); INSERT INTO `spell_chain` VALUES (50288, 0, 50288, 1, 0), (53191, 50288, 50288, 2, 0), (53194, 53191, 50288, 3, 0), (53195, 53194, 50288, 4, 0); DELETE FROM `spell_chain` WHERE spell_id IN (50294, 53188, 53189, 53190); INSERT INTO `spell_chain` VALUES (50294, 0, 50294, 1, 0), (53188, 50294, 50294, 2, 0), (53189, 53188, 50294, 3, 0), (53190, 53189, 50294, 4, 0);
CREATE EXTERNAL TABLE region ( r_regionkey INT, r_name VARBINARY(15), r_comment VARBINARY(250) ) AS COPY FROM '/local/hajiang/tpch/5/vertica/region.parquet' PARQUET;
<filename>doc/ccmanage.sql /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50715 Source Host : localhost:3306 Source Database : ccmanage Target Server Type : MYSQL Target Server Version : 50715 File Encoding : 65001 Date: 2019-03-18 23:31:10 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for sys_action_log -- ---------------------------- DROP TABLE IF EXISTS `sys_action_log`; CREATE TABLE `sys_action_log` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `name` varchar(255) DEFAULT NULL COMMENT '日志名称', `type` tinyint(4) DEFAULT NULL COMMENT '日志类型', `ipaddr` varchar(255) DEFAULT NULL COMMENT '操作IP地址', `clazz` varchar(255) DEFAULT NULL COMMENT '产生日志的类', `method` varchar(255) DEFAULT NULL COMMENT '产生日志的方法', `model` varchar(255) DEFAULT NULL COMMENT '产生日志的表', `record_id` bigint(20) DEFAULT NULL COMMENT '产生日志的数据id', `message` text COMMENT '日志消息', `create_date` datetime DEFAULT NULL COMMENT '记录时间', `create_by` bigint(20) DEFAULT NULL COMMENT '产生日志的用户', PRIMARY KEY (`id`), KEY `FKg3p1utwpm133f87x17h4o21wd` (`create_by`), CONSTRAINT `FKg3p1utwpm133f87x17h4o21wd` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=492 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_action_log -- ---------------------------- INSERT INTO `sys_action_log` VALUES ('260', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 12:45:48', '1'); INSERT INTO `sys_action_log` VALUES ('261', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '1', '角色分配成功:admin', '2019-03-17 12:46:17', '1'); INSERT INTO `sys_action_log` VALUES ('262', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'save', 'sys_user', '1', '更新用户成功:admin', '2019-03-17 12:46:35', '1'); INSERT INTO `sys_action_log` VALUES ('263', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'save', 'sys_user', '1', '更新用户成功:admin', '2019-03-17 12:46:58', '1'); INSERT INTO `sys_action_log` VALUES ('264', '用户密码', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'editPassword', 'sys_user', '1', '修改用户密码成功admin', '2019-03-17 12:48:07', '1'); INSERT INTO `sys_action_log` VALUES ('265', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 12:52:11', '1'); INSERT INTO `sys_action_log` VALUES ('266', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'save', 'sys_user', '1', '更新用户成功:admin', '2019-03-17 12:55:09', '1'); INSERT INTO `sys_action_log` VALUES ('267', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 12:56:27', '1'); INSERT INTO `sys_action_log` VALUES ('268', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'save', 'sys_user', '1', '更新用户成功:admin', '2019-03-17 12:56:41', '1'); INSERT INTO `sys_action_log` VALUES ('269', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 13:21:12', '1'); INSERT INTO `sys_action_log` VALUES ('270', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'save', 'sys_user', '2', '更新用户成功:linln', '2019-03-17 13:29:22', '1'); INSERT INTO `sys_action_log` VALUES ('271', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 13:32:55', '1'); INSERT INTO `sys_action_log` VALUES ('272', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'save', 'sys_user', '2', '更新用户成功:linln', '2019-03-17 13:33:12', '1'); INSERT INTO `sys_action_log` VALUES ('273', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 13:36:10', '1'); INSERT INTO `sys_action_log` VALUES ('274', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'save', 'sys_user', '2', '更新用户成功:linln', '2019-03-17 13:36:40', '1'); INSERT INTO `sys_action_log` VALUES ('275', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 13:37:56', '1'); INSERT INTO `sys_action_log` VALUES ('276', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.DeptController', 'save', 'sys_dept', '1', '更新部门:学校系别', '2019-03-17 13:39:53', '1'); INSERT INTO `sys_action_log` VALUES ('277', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '136', '更新菜单:系别管理', '2019-03-17 13:40:15', '1'); INSERT INTO `sys_action_log` VALUES ('278', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 13:42:32', '1'); INSERT INTO `sys_action_log` VALUES ('279', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 13:44:38', '1'); INSERT INTO `sys_action_log` VALUES ('280', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'java.lang.IndexOutOfBoundsException: Index: 5, Size: 4\n java.util.ArrayList.rangeCheckForAdd(ArrayList.java:661)\n java.util.ArrayList.add(ArrayList.java:473)\n com.linln.admin.system.controller.MenuController.save(MenuController.java:176)\n com.linln.admin.system.controller.MenuController$$FastClassBySpringCGLIB$$aed39495.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)\n com.linln.admin.core.log.annotation.LogAop.recordLog(LogAop.java:36)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)\n org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)\n org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.MenuController$$EnhancerBySpringCGLIB$$3472e10e.save(<generated>)\n com.linln.devtools.code.GenerateController.menuRule(GenerateController.java:112)\n com.linln.devtools.code.GenerateController.save(GenerateController.java:69)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:661)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:745)', '2019-03-17 13:52:07', '1'); INSERT INTO `sys_action_log` VALUES ('281', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 14:04:51', '1'); INSERT INTO `sys_action_log` VALUES ('282', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'java.lang.IndexOutOfBoundsException: Index: 5, Size: 4\n java.util.ArrayList.rangeCheckForAdd(ArrayList.java:661)\n java.util.ArrayList.add(ArrayList.java:473)\n com.linln.admin.system.controller.MenuController.save(MenuController.java:176)\n com.linln.admin.system.controller.MenuController$$FastClassBySpringCGLIB$$aed39495.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)\n com.linln.admin.core.log.annotation.LogAop.recordLog(LogAop.java:36)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)\n org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)\n org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.MenuController$$EnhancerBySpringCGLIB$$f722f15a.save(<generated>)\n com.linln.devtools.code.GenerateController.menuRule(GenerateController.java:112)\n com.linln.devtools.code.GenerateController.save(GenerateController.java:69)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:661)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:745)', '2019-03-17 14:06:18', '1'); INSERT INTO `sys_action_log` VALUES ('283', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'save', 'sys_user', '3', '添加用户成功:1001', '2019-03-17 14:22:18', '1'); INSERT INTO `sys_action_log` VALUES ('284', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '1', '角色分配成功:admin', '2019-03-17 14:24:07', '1'); INSERT INTO `sys_action_log` VALUES ('285', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 14:36:57', '1'); INSERT INTO `sys_action_log` VALUES ('286', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '149', '添加菜单:班级管理', '2019-03-17 14:37:38', '1'); INSERT INTO `sys_action_log` VALUES ('287', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '1', '角色授权成功:管理员', '2019-03-17 14:42:32', '1'); INSERT INTO `sys_action_log` VALUES ('288', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 14:46:42', '1'); INSERT INTO `sys_action_log` VALUES ('289', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 14:49:18', '1'); INSERT INTO `sys_action_log` VALUES ('290', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 14:52:32', '1'); INSERT INTO `sys_action_log` VALUES ('291', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 14:54:30', '1'); INSERT INTO `sys_action_log` VALUES ('292', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 15:07:58', '1'); INSERT INTO `sys_action_log` VALUES ('293', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '150', '添加菜单:课程管理', '2019-03-17 15:11:26', '1'); INSERT INTO `sys_action_log` VALUES ('294', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '151', '添加菜单:添加', '2019-03-17 15:11:27', '1'); INSERT INTO `sys_action_log` VALUES ('295', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '152', '添加菜单:编辑', '2019-03-17 15:11:27', '1'); INSERT INTO `sys_action_log` VALUES ('296', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '153', '添加菜单:详细', '2019-03-17 15:11:27', '1'); INSERT INTO `sys_action_log` VALUES ('297', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '154', '添加菜单:改变状态', '2019-03-17 15:11:27', '1'); INSERT INTO `sys_action_log` VALUES ('298', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '1', '角色授权成功:管理员', '2019-03-17 15:11:27', '1'); INSERT INTO `sys_action_log` VALUES ('299', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 15:13:26', '1'); INSERT INTO `sys_action_log` VALUES ('300', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 15:16:45', '1'); INSERT INTO `sys_action_log` VALUES ('301', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '2', '角色分配成功:linln', '2019-03-17 15:31:11', '1'); INSERT INTO `sys_action_log` VALUES ('302', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '3', '角色分配成功:1001', '2019-03-17 15:31:19', '1'); INSERT INTO `sys_action_log` VALUES ('303', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '1', '角色授权成功:管理员', '2019-03-17 15:36:31', '1'); INSERT INTO `sys_action_log` VALUES ('304', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '2', '角色授权成功:教师', '2019-03-17 15:37:19', '1'); INSERT INTO `sys_action_log` VALUES ('305', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '3', '角色授权成功:学生', '2019-03-17 15:37:39', '1'); INSERT INTO `sys_action_log` VALUES ('306', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '2', '角色分配成功:linln', '2019-03-17 15:53:20', '1'); INSERT INTO `sys_action_log` VALUES ('307', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 16:01:09', '1'); INSERT INTO `sys_action_log` VALUES ('308', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 16:03:51', '1'); INSERT INTO `sys_action_log` VALUES ('309', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 16:31:39', '1'); INSERT INTO `sys_action_log` VALUES ('310', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 16:33:50', '1'); INSERT INTO `sys_action_log` VALUES ('311', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:21:27', '1'); INSERT INTO `sys_action_log` VALUES ('312', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:24:11', '1'); INSERT INTO `sys_action_log` VALUES ('313', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:27:03', '1'); INSERT INTO `sys_action_log` VALUES ('314', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:31:49', '1'); INSERT INTO `sys_action_log` VALUES ('315', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'save', 'sys_user', '4', '添加用户成功:1002', '2019-03-17 17:33:22', '1'); INSERT INTO `sys_action_log` VALUES ('316', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '4', '角色分配成功:1002', '2019-03-17 17:33:32', '1'); INSERT INTO `sys_action_log` VALUES ('317', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:35:02', '1'); INSERT INTO `sys_action_log` VALUES ('318', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:257)\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:223)\n org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:540)\n org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:746)\n org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:714)\n org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:532)\n org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:304)\n org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy137.save(Unknown Source)\n com.linln.admin.system.service.impl.CourseServiceImpl.save(CourseServiceImpl.java:70)\n com.linln.admin.system.service.impl.CourseServiceImpl$$FastClassBySpringCGLIB$$3374d5bd.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.CourseServiceImpl$$EnhancerBySpringCGLIB$$111ec4d4.save(<generated>)\n com.linln.admin.system.controller.CourseController.setTeacher(CourseController.java:197)\n com.linln.admin.system.controller.CourseController$$FastClassBySpringCGLIB$$82c07dd1.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)\n com.linln.admin.core.log.annotation.LogAop.recordLog(LogAop.java:36)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)\n org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)\n org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.CourseController$$EnhancerBySpringCGLIB$$6fe4cff9.setTeacher(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:661)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:745)', '2019-03-17 17:35:11', '1'); INSERT INTO `sys_action_log` VALUES ('319', '教师分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.CourseController', 'setTeacher', null, null, '', '2019-03-17 17:39:13', '1'); INSERT INTO `sys_action_log` VALUES ('320', '教师分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.CourseController', 'setTeacher', null, null, '', '2019-03-17 17:42:29', '1'); INSERT INTO `sys_action_log` VALUES ('321', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:47:11', '1'); INSERT INTO `sys_action_log` VALUES ('322', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:48:35', '1'); INSERT INTO `sys_action_log` VALUES ('323', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:50:39', '1'); INSERT INTO `sys_action_log` VALUES ('324', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:51:39', '1'); INSERT INTO `sys_action_log` VALUES ('325', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:52:23', '1'); INSERT INTO `sys_action_log` VALUES ('326', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:53:20', '1'); INSERT INTO `sys_action_log` VALUES ('327', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:53:59', '1'); INSERT INTO `sys_action_log` VALUES ('328', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:54:50', '1'); INSERT INTO `sys_action_log` VALUES ('329', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 17:57:18', '1'); INSERT INTO `sys_action_log` VALUES ('330', '教师分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.CourseController', 'setTeacher', null, null, '', '2019-03-17 17:58:04', '1'); INSERT INTO `sys_action_log` VALUES ('331', '教师分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.CourseController', 'setTeacher', null, null, '', '2019-03-17 17:58:11', '1'); INSERT INTO `sys_action_log` VALUES ('332', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.DeptController', 'save', 'sys_dept', '9', '添加部门:数码系', '2019-03-17 17:59:23', '1'); INSERT INTO `sys_action_log` VALUES ('333', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.DeptController', 'save', 'sys_dept', '10', '添加部门:游戏系', '2019-03-17 17:59:44', '1'); INSERT INTO `sys_action_log` VALUES ('334', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.DeptController', 'save', 'sys_dept', '11', '添加部门:管理系', '2019-03-17 17:59:53', '1'); INSERT INTO `sys_action_log` VALUES ('335', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.DeptController', 'save', 'sys_dept', '12', '添加部门:计算机系', '2019-03-17 18:00:11', '1'); INSERT INTO `sys_action_log` VALUES ('336', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.DeptController', 'save', 'sys_dept', '13', '添加部门:财会系', '2019-03-17 18:00:31', '1'); INSERT INTO `sys_action_log` VALUES ('337', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.DeptController', 'save', 'sys_dept', '14', '添加部门:国贸系', '2019-03-17 18:00:46', '1'); INSERT INTO `sys_action_log` VALUES ('338', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.DeptController', 'save', 'sys_dept', '15', '添加部门:外语系', '2019-03-17 18:00:55', '1'); INSERT INTO `sys_action_log` VALUES ('339', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 18:38:18', '1'); INSERT INTO `sys_action_log` VALUES ('340', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '3', '角色分配成功:1001', '2019-03-17 18:38:36', '1'); INSERT INTO `sys_action_log` VALUES ('341', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 18:40:24', '1'); INSERT INTO `sys_action_log` VALUES ('342', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '2', '角色分配成功:linln', '2019-03-17 18:40:37', '1'); INSERT INTO `sys_action_log` VALUES ('343', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 18:48:12', '1'); INSERT INTO `sys_action_log` VALUES ('344', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '2', '角色分配成功:linln', '2019-03-17 18:48:43', '1'); INSERT INTO `sys_action_log` VALUES ('345', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 18:49:49', '1'); INSERT INTO `sys_action_log` VALUES ('346', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '2', '角色分配成功:linln', '2019-03-17 18:50:01', '1'); INSERT INTO `sys_action_log` VALUES ('347', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '4', '角色分配成功:1002', '2019-03-17 18:50:06', '1'); INSERT INTO `sys_action_log` VALUES ('348', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '3', '角色分配成功:1001', '2019-03-17 18:50:13', '1'); INSERT INTO `sys_action_log` VALUES ('349', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 18:51:24', '1'); INSERT INTO `sys_action_log` VALUES ('350', '班级分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'authGlass', null, null, '', '2019-03-17 18:51:34', '1'); INSERT INTO `sys_action_log` VALUES ('351', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 19:00:16', '1'); INSERT INTO `sys_action_log` VALUES ('352', '班级分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'authGlass', null, null, '', '2019-03-17 19:00:43', '1'); INSERT INTO `sys_action_log` VALUES ('353', '班级分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'authGlass', null, null, '', '2019-03-17 19:01:22', '1'); INSERT INTO `sys_action_log` VALUES ('354', '用户密码', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'editPassword', 'sys_user', '2', '修改用户密码成功<PASSWORD>', '2019-03-17 19:02:48', '1'); INSERT INTO `sys_action_log` VALUES ('355', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '155', '添加菜单:班级分配', '2019-03-17 19:04:33', '1'); INSERT INTO `sys_action_log` VALUES ('356', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '156', '添加菜单:添加', '2019-03-17 19:05:45', '1'); INSERT INTO `sys_action_log` VALUES ('357', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '157', '添加菜单:编辑', '2019-03-17 19:06:23', '1'); INSERT INTO `sys_action_log` VALUES ('358', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '158', '添加菜单:详细', '2019-03-17 19:06:55', '1'); INSERT INTO `sys_action_log` VALUES ('359', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '159', '添加菜单:改变状态', '2019-03-17 19:07:26', '1'); INSERT INTO `sys_action_log` VALUES ('360', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '3', '角色授权成功:学生', '2019-03-17 19:09:41', '1'); INSERT INTO `sys_action_log` VALUES ('361', '用户密码', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'editPassword', 'sys_user', '3', '修改用户密码成功1<PASSWORD>', '2019-03-17 19:10:01', '1'); INSERT INTO `sys_action_log` VALUES ('362', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 19:10:11', '3'); INSERT INTO `sys_action_log` VALUES ('363', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 19:15:11', '4'); INSERT INTO `sys_action_log` VALUES ('364', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 19:22:44', '1'); INSERT INTO `sys_action_log` VALUES ('365', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 19:31:12', '1'); INSERT INTO `sys_action_log` VALUES ('366', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 19:33:32', '1'); INSERT INTO `sys_action_log` VALUES ('367', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '2', '角色授权成功:教师', '2019-03-17 19:40:09', '1'); INSERT INTO `sys_action_log` VALUES ('368', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '3', '角色授权成功:学生', '2019-03-17 19:41:18', '1'); INSERT INTO `sys_action_log` VALUES ('369', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 19:42:32', '1'); INSERT INTO `sys_action_log` VALUES ('370', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '160', '添加菜单:成绩管理', '2019-03-17 20:21:13', '1'); INSERT INTO `sys_action_log` VALUES ('371', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '161', '添加菜单:添加', '2019-03-17 20:21:13', '1'); INSERT INTO `sys_action_log` VALUES ('372', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '162', '添加菜单:编辑', '2019-03-17 20:21:13', '1'); INSERT INTO `sys_action_log` VALUES ('373', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '163', '添加菜单:详细', '2019-03-17 20:21:13', '1'); INSERT INTO `sys_action_log` VALUES ('374', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '164', '添加菜单:改变状态', '2019-03-17 20:21:13', '1'); INSERT INTO `sys_action_log` VALUES ('375', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '1', '角色授权成功:管理员', '2019-03-17 20:21:13', '1'); INSERT INTO `sys_action_log` VALUES ('376', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 20:23:19', '1'); INSERT INTO `sys_action_log` VALUES ('377', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 21:11:09', '1'); INSERT INTO `sys_action_log` VALUES ('378', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 21:15:39', '1'); INSERT INTO `sys_action_log` VALUES ('379', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 21:20:05', '1'); INSERT INTO `sys_action_log` VALUES ('380', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 21:23:49', '1'); INSERT INTO `sys_action_log` VALUES ('381', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 21:27:22', '1'); INSERT INTO `sys_action_log` VALUES ('382', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 21:45:56', '1'); INSERT INTO `sys_action_log` VALUES ('383', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.DeptController', 'save', 'sys_dept', '1', '更新部门:学校', '2019-03-17 21:51:45', '1'); INSERT INTO `sys_action_log` VALUES ('384', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 22:13:54', '1'); INSERT INTO `sys_action_log` VALUES ('385', '部门管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.DeptController', 'save', 'sys_dept', '16', '添加部门:ces', '2019-03-17 22:16:09', '1'); INSERT INTO `sys_action_log` VALUES ('386', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 22:26:24', '1'); INSERT INTO `sys_action_log` VALUES ('387', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-17 22:28:31', '1'); INSERT INTO `sys_action_log` VALUES ('388', '部门状态', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.DeptController', 'status', null, null, '删除ID:[16]', '2019-03-17 22:28:45', '1'); INSERT INTO `sys_action_log` VALUES ('389', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 09:06:29', '1'); INSERT INTO `sys_action_log` VALUES ('390', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 09:11:17', '1'); INSERT INTO `sys_action_log` VALUES ('391', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 09:30:01', '1'); INSERT INTO `sys_action_log` VALUES ('392', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'java.lang.NullPointerException\n com.linln.admin.system.controller.ScoreController.save(ScoreController.java:95)\n com.linln.admin.system.controller.ScoreController$$FastClassBySpringCGLIB$$b8490cd4.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.ScoreController$$EnhancerBySpringCGLIB$$39956ce8.save(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:661)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:748)', '2019-03-18 09:30:38', '1'); INSERT INTO `sys_action_log` VALUES ('393', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 09:31:52', '1'); INSERT INTO `sys_action_log` VALUES ('394', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 09:33:20', '1'); INSERT INTO `sys_action_log` VALUES ('395', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 09:34:59', '1'); INSERT INTO `sys_action_log` VALUES ('396', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 09:37:15', '1'); INSERT INTO `sys_action_log` VALUES ('397', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 11:08:38', '1'); INSERT INTO `sys_action_log` VALUES ('398', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '160', '更新菜单:成绩管理', '2019-03-18 11:12:13', '1'); INSERT INTO `sys_action_log` VALUES ('399', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '2', '更新菜单:系统管理', '2019-03-18 11:12:37', '1'); INSERT INTO `sys_action_log` VALUES ('400', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '160', '更新菜单:成绩列表', '2019-03-18 11:13:31', '1'); INSERT INTO `sys_action_log` VALUES ('401', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '165', '添加菜单:成绩管理', '2019-03-18 11:15:03', '1'); INSERT INTO `sys_action_log` VALUES ('402', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '160', '更新菜单:成绩列表', '2019-03-18 11:15:26', '1'); INSERT INTO `sys_action_log` VALUES ('403', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 13:05:14', '1'); INSERT INTO `sys_action_log` VALUES ('404', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 14:03:24', '1'); INSERT INTO `sys_action_log` VALUES ('405', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '166', '添加菜单:用户管理', '2019-03-18 14:04:34', '1'); INSERT INTO `sys_action_log` VALUES ('406', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '167', '添加菜单:管理员列表', '2019-03-18 14:06:05', '1'); INSERT INTO `sys_action_log` VALUES ('407', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '168', '添加菜单:教师列表', '2019-03-18 14:06:54', '1'); INSERT INTO `sys_action_log` VALUES ('408', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '167', '更新菜单:管理员列表', '2019-03-18 14:07:04', '1'); INSERT INTO `sys_action_log` VALUES ('409', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '169', '添加菜单:学生列表', '2019-03-18 14:07:41', '1'); INSERT INTO `sys_action_log` VALUES ('410', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 14:12:46', '1'); INSERT INTO `sys_action_log` VALUES ('411', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 14:14:03', '1'); INSERT INTO `sys_action_log` VALUES ('412', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 14:18:12', '1'); INSERT INTO `sys_action_log` VALUES ('413', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=1 ) and ( cast(generatedAlias0.roles as java.util.HashSet)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]; nested exception is java.lang.IllegalArgumentException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=1 ) and ( cast(generatedAlias0.roles as java.util.HashSet)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]\n org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:367)\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:225)\n org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)\n org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)\n org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy121.findAll(Unknown Source)\n com.linln.admin.system.service.impl.UserServiceImpl.getPageList(UserServiceImpl.java:89)\n com.linln.admin.system.service.impl.UserServiceImpl$$FastClassBySpringCGLIB$$8368d8cd.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.UserServiceImpl$$EnhancerBySpringCGLIB$$6005929.getPageList(<generated>)\n com.linln.admin.system.controller.UserController.indexAdmin(UserController.java:114)\n com.linln.admin.system.controller.UserController$$FastClassBySpringCGLIB$$c4ff5401.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.UserController$$EnhancerBySpringCGLIB$$6104eb64.indexAdmin(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:748)', '2019-03-18 14:18:16', '1'); INSERT INTO `sys_action_log` VALUES ('414', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=2 ) and ( cast(generatedAlias0.roles as java.util.HashSet)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]; nested exception is java.lang.IllegalArgumentException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=2 ) and ( cast(generatedAlias0.roles as java.util.HashSet)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]\n org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:367)\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:225)\n org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)\n org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)\n org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy121.findAll(Unknown Source)\n com.linln.admin.system.service.impl.UserServiceImpl.getPageList(UserServiceImpl.java:89)\n com.linln.admin.system.service.impl.UserServiceImpl$$FastClassBySpringCGLIB$$8368d8cd.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.UserServiceImpl$$EnhancerBySpringCGLIB$$6005929.getPageList(<generated>)\n com.linln.admin.system.controller.UserController.indexTeacher(UserController.java:179)\n com.linln.admin.system.controller.UserController$$FastClassBySpringCGLIB$$c4ff5401.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.UserController$$EnhancerBySpringCGLIB$$6104eb64.indexTeacher(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:748)', '2019-03-18 14:18:17', '1'); INSERT INTO `sys_action_log` VALUES ('415', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=2 ) and ( cast(generatedAlias0.roles as java.util.HashSet)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]; nested exception is java.lang.IllegalArgumentException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=2 ) and ( cast(generatedAlias0.roles as java.util.HashSet)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]\n org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:367)\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:225)\n org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)\n org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)\n org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy121.findAll(Unknown Source)\n com.linln.admin.system.service.impl.UserServiceImpl.getPageList(UserServiceImpl.java:89)\n com.linln.admin.system.service.impl.UserServiceImpl$$FastClassBySpringCGLIB$$8368d8cd.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.UserServiceImpl$$EnhancerBySpringCGLIB$$6005929.getPageList(<generated>)\n com.linln.admin.system.controller.UserController.indexStu(UserController.java:147)\n com.linln.admin.system.controller.UserController$$FastClassBySpringCGLIB$$c4ff5401.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.UserController$$EnhancerBySpringCGLIB$$6104eb64.indexStu(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:748)', '2019-03-18 14:18:18', '1'); INSERT INTO `sys_action_log` VALUES ('416', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 14:37:34', '1'); INSERT INTO `sys_action_log` VALUES ('417', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=2 ) and ( cast(generatedAlias0.roles as com.linln.admin.system.domain.Role)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]; nested exception is java.lang.IllegalArgumentException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=2 ) and ( cast(generatedAlias0.roles as com.linln.admin.system.domain.Role)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]\n org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:367)\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:225)\n org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)\n org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)\n org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy121.findAll(Unknown Source)\n com.linln.admin.system.service.impl.UserServiceImpl.getPageList(UserServiceImpl.java:89)\n com.linln.admin.system.service.impl.UserServiceImpl$$FastClassBySpringCGLIB$$8368d8cd.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.UserServiceImpl$$EnhancerBySpringCGLIB$$3c95113e.getPageList(<generated>)\n com.linln.admin.system.controller.UserController.indexTeacher(UserController.java:179)\n com.linln.admin.system.controller.UserController$$FastClassBySpringCGLIB$$c4ff5401.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.UserController$$EnhancerBySpringCGLIB$$35c865d7.indexTeacher(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:748)', '2019-03-18 14:37:38', '1'); INSERT INTO `sys_action_log` VALUES ('418', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=2 ) and ( cast(generatedAlias0.roles as com.linln.admin.system.domain.Role)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]; nested exception is java.lang.IllegalArgumentException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=2 ) and ( cast(generatedAlias0.roles as com.linln.admin.system.domain.Role)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]\n org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:367)\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:225)\n org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)\n org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)\n org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy121.findAll(Unknown Source)\n com.linln.admin.system.service.impl.UserServiceImpl.getPageList(UserServiceImpl.java:89)\n com.linln.admin.system.service.impl.UserServiceImpl$$FastClassBySpringCGLIB$$8368d8cd.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.UserServiceImpl$$EnhancerBySpringCGLIB$$3c95113e.getPageList(<generated>)\n com.linln.admin.system.controller.UserController.indexStu(UserController.java:147)\n com.linln.admin.system.controller.UserController$$FastClassBySpringCGLIB$$c4ff5401.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.UserController$$EnhancerBySpringCGLIB$$35c865d7.indexStu(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:748)', '2019-03-18 14:37:39', '1'); INSERT INTO `sys_action_log` VALUES ('419', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=1 ) and ( cast(generatedAlias0.roles as com.linln.admin.system.domain.Role)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]; nested exception is java.lang.IllegalArgumentException: org.hibernate.QueryException: Expression to CAST cannot be a collection : . [select generatedAlias0 from com.linln.admin.system.domain.User as generatedAlias0 where ( generatedAlias0.isRole=1 ) and ( cast(generatedAlias0.roles as com.linln.admin.system.domain.Role)=:param0 ) and ( generatedAlias0.status=1 ) order by generatedAlias0.createDate asc]\n org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:367)\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:225)\n org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)\n org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)\n org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy121.findAll(Unknown Source)\n com.linln.admin.system.service.impl.UserServiceImpl.getPageList(UserServiceImpl.java:89)\n com.linln.admin.system.service.impl.UserServiceImpl$$FastClassBySpringCGLIB$$8368d8cd.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.UserServiceImpl$$EnhancerBySpringCGLIB$$3c95113e.getPageList(<generated>)\n com.linln.admin.system.controller.UserController.indexAdmin(UserController.java:114)\n com.linln.admin.system.controller.UserController$$FastClassBySpringCGLIB$$c4ff5401.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.UserController$$EnhancerBySpringCGLIB$$35c865d7.indexAdmin(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:748)', '2019-03-18 14:37:40', '1'); INSERT INTO `sys_action_log` VALUES ('420', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 14:44:45', '1'); INSERT INTO `sys_action_log` VALUES ('421', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:240)\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:223)\n org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)\n org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)\n org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy121.findAll(Unknown Source)\n com.linln.admin.system.service.impl.UserServiceImpl.getPageList(UserServiceImpl.java:89)\n com.linln.admin.system.service.impl.UserServiceImpl$$FastClassBySpringCGLIB$$8368d8cd.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.UserServiceImpl$$EnhancerBySpringCGLIB$$afb643ec.getPageList(<generated>)\n com.linln.admin.system.controller.UserController.indexAdmin(UserController.java:114)\n com.linln.admin.system.controller.UserController$$FastClassBySpringCGLIB$$c4ff5401.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.UserController$$EnhancerBySpringCGLIB$$2b2d7461.indexAdmin(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:748)', '2019-03-18 14:44:50', '1'); INSERT INTO `sys_action_log` VALUES ('422', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 14:47:25', '1'); INSERT INTO `sys_action_log` VALUES ('423', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:240)\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:223)\n org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)\n org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)\n org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy121.findAll(Unknown Source)\n com.linln.admin.system.service.impl.UserServiceImpl.getPageList(UserServiceImpl.java:89)\n com.linln.admin.system.service.impl.UserServiceImpl$$FastClassBySpringCGLIB$$8368d8cd.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.UserServiceImpl$$EnhancerBySpringCGLIB$$6c39f630.getPageList(<generated>)\n com.linln.admin.system.controller.UserController.index(UserController.java:89)\n com.linln.admin.system.controller.UserController$$FastClassBySpringCGLIB$$c4ff5401.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.UserController$$EnhancerBySpringCGLIB$$2318d191.index(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:748)', '2019-03-18 14:47:33', '1'); INSERT INTO `sys_action_log` VALUES ('424', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 14:49:22', '1'); INSERT INTO `sys_action_log` VALUES ('425', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2018-01-18 15:40:45', '1'); INSERT INTO `sys_action_log` VALUES ('426', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2018-01-18 15:59:14', '1'); INSERT INTO `sys_action_log` VALUES ('427', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 17:53:06', '1'); INSERT INTO `sys_action_log` VALUES ('428', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 17:55:20', '1'); INSERT INTO `sys_action_log` VALUES ('429', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 19:20:55', '1'); INSERT INTO `sys_action_log` VALUES ('430', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 19:23:45', '1'); INSERT INTO `sys_action_log` VALUES ('431', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 19:27:19', '1'); INSERT INTO `sys_action_log` VALUES ('432', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 19:28:21', '1'); INSERT INTO `sys_action_log` VALUES ('433', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 19:30:13', '1'); INSERT INTO `sys_action_log` VALUES ('434', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 19:33:01', '1'); INSERT INTO `sys_action_log` VALUES ('435', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 19:40:06', '1'); INSERT INTO `sys_action_log` VALUES ('436', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '170', '添加菜单:评奖管理', '2019-03-18 19:47:00', '1'); INSERT INTO `sys_action_log` VALUES ('437', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 20:00:30', '1'); INSERT INTO `sys_action_log` VALUES ('438', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 20:03:19', '1'); INSERT INTO `sys_action_log` VALUES ('440', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 20:08:56', '1'); INSERT INTO `sys_action_log` VALUES ('441', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 20:10:18', '1'); INSERT INTO `sys_action_log` VALUES ('442', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 20:47:35', '1'); INSERT INTO `sys_action_log` VALUES ('443', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap] to type [com.linln.admin.system.domain.ScorePrize]\n org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:321)\n org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:194)\n org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:174)\n org.springframework.data.repository.query.ResultProcessor$ProjectingConverter.convert(ResultProcessor.java:293)\n org.springframework.data.repository.query.ResultProcessor$ChainingConverter.lambda$and$0(ResultProcessor.java:213)\n org.springframework.data.repository.query.ResultProcessor$ChainingConverter.convert(ResultProcessor.java:224)\n org.springframework.data.repository.query.ResultProcessor.processResult(ResultProcessor.java:152)\n org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:141)\n org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:125)\n org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:602)\n org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:590)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:59)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)\n org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy143.selectScorePrizeByGlassId(Unknown Source)\n com.linln.admin.system.service.impl.ScoreServiceImpl.selectScorePrizeByGlassId(ScoreServiceImpl.java:75)\n com.linln.admin.system.service.impl.ScoreServiceImpl$$FastClassBySpringCGLIB$$370379c0.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.ScoreServiceImpl$$EnhancerBySpringCGLIB$$3dfe9c72.selectScorePrizeByGlassId(<generated>)\n com.linln.admin.system.controller.ScoreController.indexPrize(ScoreController.java:70)\n com.linln.admin.system.controller.ScoreController$$FastClassBySpringCGLIB$$b8490cd4.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.ScoreController$$EnhancerBySpringCGLIB$$3df78cd7.indexPrize(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:745)', '2019-03-18 20:47:41', '1'); INSERT INTO `sys_action_log` VALUES ('444', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 20:48:47', '1'); INSERT INTO `sys_action_log` VALUES ('445', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap] to type [com.linln.admin.system.domain.ScorePrize]\n org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:321)\n org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:194)\n org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:174)\n org.springframework.data.repository.query.ResultProcessor$ProjectingConverter.convert(ResultProcessor.java:293)\n org.springframework.data.repository.query.ResultProcessor$ChainingConverter.lambda$and$0(ResultProcessor.java:213)\n org.springframework.data.repository.query.ResultProcessor$ChainingConverter.convert(ResultProcessor.java:224)\n org.springframework.data.repository.query.ResultProcessor.processResult(ResultProcessor.java:152)\n org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:141)\n org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:125)\n org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:602)\n org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:590)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:59)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)\n org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy143.selectScorePrizeByGlassId(Unknown Source)\n com.linln.admin.system.service.impl.ScoreServiceImpl.selectScorePrizeByGlassId(ScoreServiceImpl.java:75)\n com.linln.admin.system.service.impl.ScoreServiceImpl$$FastClassBySpringCGLIB$$370379c0.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.ScoreServiceImpl$$EnhancerBySpringCGLIB$$cea0da2b.selectScorePrizeByGlassId(<generated>)\n com.linln.admin.system.controller.ScoreController.indexPrize(ScoreController.java:70)\n com.linln.admin.system.controller.ScoreController$$FastClassBySpringCGLIB$$b8490cd4.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.ScoreController$$EnhancerBySpringCGLIB$$b94e150c.indexPrize(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:745)', '2019-03-18 20:48:55', '1'); INSERT INTO `sys_action_log` VALUES ('446', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 21:07:43', '1'); INSERT INTO `sys_action_log` VALUES ('447', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap] to type [com.linln.admin.system.domain.ScorePrize]\n org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:321)\n org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:194)\n org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:174)\n org.springframework.data.repository.query.ResultProcessor$ProjectingConverter.convert(ResultProcessor.java:293)\n org.springframework.data.repository.query.ResultProcessor$ChainingConverter.lambda$and$0(ResultProcessor.java:213)\n org.springframework.data.repository.query.ResultProcessor$ChainingConverter.convert(ResultProcessor.java:224)\n org.springframework.data.repository.query.ResultProcessor.processResult(ResultProcessor.java:152)\n org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:141)\n org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:125)\n org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:602)\n org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:590)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:59)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)\n org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy143.selectScorePrizeByGlassId(Unknown Source)\n com.linln.admin.system.service.impl.ScoreServiceImpl.selectScorePrizeByGlassId(ScoreServiceImpl.java:75)\n com.linln.admin.system.service.impl.ScoreServiceImpl$$FastClassBySpringCGLIB$$370379c0.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n com.linln.admin.system.service.impl.ScoreServiceImpl$$EnhancerBySpringCGLIB$$a07419f8.selectScorePrizeByGlassId(<generated>)\n com.linln.admin.system.controller.ScoreController.indexPrize(ScoreController.java:70)\n com.linln.admin.system.controller.ScoreController$$FastClassBySpringCGLIB$$b8490cd4.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.ScoreController$$EnhancerBySpringCGLIB$$ce93969e.indexPrize(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:745)', '2019-03-18 21:08:04', '1'); INSERT INTO `sys_action_log` VALUES ('448', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 21:11:33', '1'); INSERT INTO `sys_action_log` VALUES ('449', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 21:35:28', '1'); INSERT INTO `sys_action_log` VALUES ('450', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long\n com.linln.admin.system.controller.ScoreController.indexPrize(ScoreController.java:75)\n com.linln.admin.system.controller.ScoreController$$FastClassBySpringCGLIB$$b8490cd4.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.ScoreController$$EnhancerBySpringCGLIB$$1ccd1f85.indexPrize(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:745)', '2019-03-18 21:35:32', '1'); INSERT INTO `sys_action_log` VALUES ('451', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 21:37:04', '1'); INSERT INTO `sys_action_log` VALUES ('452', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Integer\n com.linln.admin.system.controller.ScoreController.indexPrize(ScoreController.java:76)\n com.linln.admin.system.controller.ScoreController$$FastClassBySpringCGLIB$$b8490cd4.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.ScoreController$$EnhancerBySpringCGLIB$$466d7095.indexPrize(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:745)', '2019-03-18 21:37:08', '1'); INSERT INTO `sys_action_log` VALUES ('453', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 21:38:17', '1'); INSERT INTO `sys_action_log` VALUES ('454', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 21:39:08', '1'); INSERT INTO `sys_action_log` VALUES ('455', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 21:41:25', '1'); INSERT INTO `sys_action_log` VALUES ('456', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'java.lang.UnsupportedOperationException: A TupleBackedMap cannot be modified.\n org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap.put(AbstractJpaQuery.java:390)\n org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap.put(AbstractJpaQuery.java:323)\n com.linln.admin.system.controller.ScoreController.indexPrize(ScoreController.java:88)\n com.linln.admin.system.controller.ScoreController$$FastClassBySpringCGLIB$$b8490cd4.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.ScoreController$$EnhancerBySpringCGLIB$$d49b0dfa.indexPrize(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:745)', '2019-03-18 21:41:56', '1'); INSERT INTO `sys_action_log` VALUES ('457', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 21:50:25', '1'); INSERT INTO `sys_action_log` VALUES ('458', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 21:51:51', '1'); INSERT INTO `sys_action_log` VALUES ('459', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 21:53:26', '1'); INSERT INTO `sys_action_log` VALUES ('460', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 22:41:28', '1'); INSERT INTO `sys_action_log` VALUES ('461', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '171', '添加菜单:评优管理', '2019-03-18 22:42:47', '1'); INSERT INTO `sys_action_log` VALUES ('462', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 22:44:39', '1'); INSERT INTO `sys_action_log` VALUES ('463', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 22:45:56', '1'); INSERT INTO `sys_action_log` VALUES ('464', '系统异常', '3', '0:0:0:0:0:0:0:1', 'com.linln.admin.core.exception.ResultExceptionHandler', 'runtimeException', null, null, 'org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [2] did not match expected type [java.lang.Integer (n/a)]; nested exception is java.lang.IllegalArgumentException: Parameter value [2] did not match expected type [java.lang.Integer (n/a)]\n org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:367)\n org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:225)\n org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)\n org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)\n org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)\n org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)\n com.sun.proxy.$Proxy121.updateAuditStatus(Unknown Source)\n com.linln.admin.system.service.impl.UserServiceImpl.updateAuditStatus(UserServiceImpl.java:178)\n com.linln.admin.system.service.impl.UserServiceImpl$$FastClassBySpringCGLIB$$8368d8cd.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)\n org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.service.impl.UserServiceImpl$$EnhancerBySpringCGLIB$$984fdf54.updateAuditStatus(<generated>)\n com.linln.admin.system.controller.UserController.auditStatus(UserController.java:510)\n com.linln.admin.system.controller.UserController$$FastClassBySpringCGLIB$$c4ff5401.invoke(<generated>)\n org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)\n com.linln.admin.core.log.annotation.LogAop.recordLog(LogAop.java:36)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)\n org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)\n org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)\n org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)\n org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n com.linln.admin.system.controller.UserController$$EnhancerBySpringCGLIB$$51198104.auditStatus(<generated>)\n sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n java.lang.reflect.Method.invoke(Method.java:498)\n org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)\n org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\n org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)\n org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)\n org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)\n org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)\n org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)\n org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\n org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)\n javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\n org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\n org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\n org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n com.linln.core.xss.XssFilter.doFilter(XssFilter.java:47)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)\n org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)\n org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)\n org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)\n org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n java.lang.Thread.run(Thread.java:745)', '2019-03-18 22:49:45', '1'); INSERT INTO `sys_action_log` VALUES ('465', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 22:51:32', '1'); INSERT INTO `sys_action_log` VALUES ('466', '用户状态', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auditStatus', null, null, '启用ID:[3]', '2019-03-18 22:51:44', '1'); INSERT INTO `sys_action_log` VALUES ('467', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '169', '更新菜单:学生管理', '2019-03-18 22:53:51', '1'); INSERT INTO `sys_action_log` VALUES ('468', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '169', '更新菜单:学生列表', '2019-03-18 22:54:12', '1'); INSERT INTO `sys_action_log` VALUES ('469', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 23:04:09', '1'); INSERT INTO `sys_action_log` VALUES ('470', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 23:05:42', '1'); INSERT INTO `sys_action_log` VALUES ('471', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '2', '角色授权成功:教师', '2019-03-18 23:07:14', '1'); INSERT INTO `sys_action_log` VALUES ('472', '用户管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'save', 'sys_user', '2', '更新用户成功:1003', '2019-03-18 23:07:51', '1'); INSERT INTO `sys_action_log` VALUES ('473', '角色分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'auth', 'sys_user', '2', '角色分配成功:1003', '2019-03-18 23:08:06', '1'); INSERT INTO `sys_action_log` VALUES ('474', '班级分配', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.UserController', 'authGlass', null, null, '', '2019-03-18 23:08:44', '1'); INSERT INTO `sys_action_log` VALUES ('475', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 23:09:05', '2'); INSERT INTO `sys_action_log` VALUES ('476', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 23:09:34', '1'); INSERT INTO `sys_action_log` VALUES ('477', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '3', '角色授权成功:学生', '2019-03-18 23:16:25', '1'); INSERT INTO `sys_action_log` VALUES ('478', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 23:17:15', '3'); INSERT INTO `sys_action_log` VALUES ('479', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 23:19:07', '1'); INSERT INTO `sys_action_log` VALUES ('480', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '172', '添加菜单:修改密码', '2019-03-18 23:19:58', '1'); INSERT INTO `sys_action_log` VALUES ('481', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '173', '添加菜单:班级分配', '2019-03-18 23:20:32', '1'); INSERT INTO `sys_action_log` VALUES ('482', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '174', '添加菜单:修改状态', '2019-03-18 23:21:43', '1'); INSERT INTO `sys_action_log` VALUES ('483', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '175', '添加菜单:新增', '2019-03-18 23:22:18', '1'); INSERT INTO `sys_action_log` VALUES ('484', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '176', '添加菜单:编辑', '2019-03-18 23:22:52', '1'); INSERT INTO `sys_action_log` VALUES ('485', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '177', '添加菜单:修改密码', '2019-03-18 23:23:36', '1'); INSERT INTO `sys_action_log` VALUES ('486', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '178', '添加菜单:班级分配', '2019-03-18 23:23:54', '1'); INSERT INTO `sys_action_log` VALUES ('487', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '179', '添加菜单:修改状态', '2019-03-18 23:24:21', '1'); INSERT INTO `sys_action_log` VALUES ('488', '菜单管理', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.MenuController', 'save', 'sys_menu', '180', '添加菜单:编辑', '2019-03-18 23:24:53', '1'); INSERT INTO `sys_action_log` VALUES ('489', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '2', '角色授权成功:教师', '2019-03-18 23:25:31', '1'); INSERT INTO `sys_action_log` VALUES ('490', '角色授权', '1', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.RoleController', 'auth', 'sys_role', '3', '角色授权成功:学生', '2019-03-18 23:25:45', '1'); INSERT INTO `sys_action_log` VALUES ('491', '用户登录', '2', '0:0:0:0:0:0:0:1', 'com.linln.admin.system.controller.LoginController', 'login', null, null, '后台登录成功', '2019-03-18 23:25:56', '3'); -- ---------------------------- -- Table structure for sys_course -- ---------------------------- DROP TABLE IF EXISTS `sys_course`; CREATE TABLE `sys_course` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `dept_id` bigint(20) DEFAULT NULL COMMENT '系别', `name` varchar(255) DEFAULT NULL COMMENT '课程名称', `score` int(10) DEFAULT '0' COMMENT '学分', `course_time` varchar(255) DEFAULT NULL COMMENT '课程时间', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `create_date` datetime DEFAULT NULL COMMENT '创建时间', `update_date` datetime DEFAULT NULL COMMENT '更新时间', `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户', `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户', `status` tinyint(4) DEFAULT NULL COMMENT '状态(1:正常,2:冻结,3:删除)', PRIMARY KEY (`id`), KEY `FKdkwvv0rm6j3d5l6hwsy2dplol` (`create_by`), KEY `FKrouqqi3f2bgc5o83wdstlh6q4` (`update_by`), KEY `FKipeuwq315xuyxo08b7vakhv8l` (`dept_id`), CONSTRAINT `FKipeuwq315xuyxo08b7vakhv8l` FOREIGN KEY (`dept_id`) REFERENCES `sys_dept` (`id`), CONSTRAINT `sys_course_ibfk_1` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`), CONSTRAINT `sys_course_ibfk_2` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_course -- ---------------------------- INSERT INTO `sys_course` VALUES ('5', '7', 'C语言程序设计', '4', '周一10:30到12:00; 周四14:00到17:30', '', '2019-03-17 16:36:28', '2019-03-18 22:54:55', '1', '1', '1'); -- ---------------------------- -- Table structure for sys_course_user -- ---------------------------- DROP TABLE IF EXISTS `sys_course_user`; CREATE TABLE `sys_course_user` ( `course_id` bigint(20) NOT NULL, `user_id` bigint(20) NOT NULL, PRIMARY KEY (`course_id`,`user_id`), KEY `sys_course_user_ibfk_1` (`course_id`) USING BTREE, KEY `sys_course_user_ibfk_2` (`user_id`), CONSTRAINT `sys_course_user_ibfk_1` FOREIGN KEY (`course_id`) REFERENCES `sys_course` (`id`), CONSTRAINT `sys_course_user_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_course_user -- ---------------------------- -- ---------------------------- -- Table structure for sys_dept -- ---------------------------- DROP TABLE IF EXISTS `sys_dept`; CREATE TABLE `sys_dept` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `title` varchar(255) DEFAULT NULL COMMENT '部门名称', `pid` bigint(20) DEFAULT NULL COMMENT '父级ID', `pids` varchar(255) DEFAULT NULL COMMENT '所有父级编号', `sort` int(11) DEFAULT NULL COMMENT '排序', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `create_date` datetime DEFAULT NULL COMMENT '创建时间', `update_date` datetime DEFAULT NULL COMMENT '更新时间', `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户', `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户', `status` tinyint(4) DEFAULT NULL COMMENT '状态(1:正常,2:冻结,3:删除)', PRIMARY KEY (`id`), KEY `FKifwd1h4ciusl3nnxrpfpv316u` (`create_by`), KEY `FK83g45s1cjqqfpifhulqhv807m` (`update_by`), CONSTRAINT `FK83g45s1cjqqfpifhulqhv807m` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`), CONSTRAINT `FKifwd1h4ciusl3nnxrpfpv316u` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_dept -- ---------------------------- INSERT INTO `sys_dept` VALUES ('1', '学校', '0', '[0]', '1', '', '2018-12-02 17:41:23', '2019-03-17 21:51:45', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('2', '教务处', '1', '[0],[1]', '1', '', '2018-12-02 17:51:04', '2019-03-17 12:22:29', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('6', '电子系', '1', '[0],[1]', '2', '', '2019-03-17 12:25:10', '2019-03-17 12:25:10', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('7', '软件系', '1', '[0],[1]', '3', '', '2019-03-17 12:25:31', '2019-03-17 12:25:31', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('8', '网络系', '1', '[0],[1]', '4', '', '2019-03-17 12:25:48', '2019-03-17 12:25:48', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('9', '数码系', '1', '[0],[1]', '5', '', '2019-03-17 17:59:23', '2019-03-17 17:59:23', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('10', '游戏系', '1', '[0],[1]', '6', '', '2019-03-17 17:59:44', '2019-03-17 17:59:44', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('11', '管理系', '1', '[0],[1]', '7', '', '2019-03-17 17:59:53', '2019-03-17 17:59:53', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('12', '计算机系', '1', '[0],[1]', '8', '', '2019-03-17 18:00:11', '2019-03-17 18:00:11', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('13', '财会系', '1', '[0],[1]', '9', '', '2019-03-17 18:00:31', '2019-03-17 18:00:31', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('14', '国贸系', '1', '[0],[1]', '10', '', '2019-03-17 18:00:46', '2019-03-17 18:00:46', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('15', '外语系', '1', '[0],[1]', '11', '', '2019-03-17 18:00:55', '2019-03-17 18:00:55', '1', '1', '1'); INSERT INTO `sys_dept` VALUES ('16', 'ces', '2', '[0],[1],[2]', '1', '', '2019-03-17 22:16:09', '2019-03-17 22:28:45', '1', '1', '3'); -- ---------------------------- -- Table structure for sys_dict -- ---------------------------- DROP TABLE IF EXISTS `sys_dict`; CREATE TABLE `sys_dict` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `title` varchar(255) DEFAULT NULL COMMENT '字典名称', `name` varchar(255) DEFAULT NULL COMMENT '字典键名', `type` tinyint(4) DEFAULT NULL COMMENT '字典类型', `value` text COMMENT '字典键值', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `create_date` datetime DEFAULT NULL COMMENT '创建时间', `update_date` datetime DEFAULT NULL COMMENT '更新时间', `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户', `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户', `status` tinyint(4) DEFAULT NULL COMMENT '状态(1:正常,2:冻结,3:删除)', PRIMARY KEY (`id`), KEY `FKag4shuprf2tjot9i1mhh37kk6` (`create_by`), KEY `FKoyng5jlifhsme0gc1lwiub0lr` (`update_by`), CONSTRAINT `FKag4shuprf2tjot9i1mhh37kk6` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`), CONSTRAINT `FKoyng5jlifhsme0gc1lwiub0lr` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_dict -- ---------------------------- INSERT INTO `sys_dict` VALUES ('3', '数据状态', 'DATA_STATUS', '2', '1:正常,2:冻结,3:删除', '', '2018-10-05 16:03:11', '2018-10-05 16:11:41', '1', '1', '1'); INSERT INTO `sys_dict` VALUES ('5', '字典类型', 'DICT_TYPE', '2', '2:键值对', '', '2018-10-05 20:08:55', '2019-01-17 23:39:23', '1', '1', '1'); INSERT INTO `sys_dict` VALUES ('6', '用户性别', 'USER_SEX', '2', '1:男,2:女', '', '2018-10-05 20:12:32', '2018-10-05 20:12:32', '1', '1', '1'); INSERT INTO `sys_dict` VALUES ('7', '菜单类型', 'MENU_TYPE', '2', '1:一级菜单,2:子级菜单,3:不是菜单', '', '2018-10-05 20:24:57', '2018-10-13 13:56:05', '1', '1', '1'); INSERT INTO `sys_dict` VALUES ('8', '搜索栏状态', 'SEARCH_STATUS', '2', '1:正常,2:冻结', '', '2018-10-06 19:41:32', '2018-10-18 19:22:03', '1', '1', '1'); INSERT INTO `sys_dict` VALUES ('9', '日志类型', 'LOG_TYPE', '2', '1:业务,2:登录,3:系统', '', '2018-10-14 20:36:19', '2018-10-15 10:34:56', '1', '1', '1'); -- ---------------------------- -- Table structure for sys_file -- ---------------------------- DROP TABLE IF EXISTS `sys_file`; CREATE TABLE `sys_file` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `name` varchar(255) DEFAULT NULL COMMENT '文件名', `path` varchar(255) DEFAULT NULL COMMENT '文件路径', `mime` varchar(255) DEFAULT NULL COMMENT 'MIME文件类型', `size` bigint(20) DEFAULT NULL COMMENT '文件大小', `md5` varchar(255) DEFAULT NULL COMMENT 'MD5值', `sha1` varchar(255) DEFAULT NULL COMMENT 'SHA1值', `create_by` bigint(20) DEFAULT NULL COMMENT '上传者', `create_date` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`), KEY `FKkkles8yp0a156p4247cc22ovn` (`create_by`), CONSTRAINT `FKkkles8yp0a156p4247cc22ovn` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_file -- ---------------------------- INSERT INTO `sys_file` VALUES ('41', '44d8d8faf65b4b7a9d2addbceca04719.jpg', '/upload/picture/20181207/44d8d8faf65b4b7a9d2addbceca04719.jpg', 'image/jpeg', '20028', '89345293b4217b7abd4cb239cd6d9448', 'c7a1006fda886c6da001b2f4ddd4342cd3a791d9', '1', '2018-12-07 01:45:41'); INSERT INTO `sys_file` VALUES ('42', '8681f62fb5e9436794af274d733023cc.jpg', '/upload/picture/20181207/8681f62fb5e9436794af274d733023cc.jpg', 'image/jpeg', '15042', 'f2941f8bcb866c996c542c1f8660e8c2', '1d834f5e73c2224031fff1eb94d045123f6aa62c', '1', '2018-12-07 01:46:05'); INSERT INTO `sys_file` VALUES ('43', 'aeb7371e621f4cbaad4035ef06408e07.jpg', '/upload/picture/20181207/aeb7371e621f4cbaad4035ef06408e07.jpg', 'image/jpeg', '14920', '749f06cca25b497ed3778f23f8f86169', 'e44e13f21f2981970d8e991c154e7971c8646bfa', '1', '2018-12-07 01:49:27'); INSERT INTO `sys_file` VALUES ('44', '1f7767bff6dd4fe0ac4aa8720c6e5a47.png', '/upload/picture/20181207/1f7767bff6dd4fe0ac4aa8720c6e5a47.png', 'image/png', '60894', '4ea94eac706a4887a2e0aff362f73eaa', '67bb77f310341d31a9800c350f2d15396ffac3c3', '1', '2018-12-07 01:49:34'); INSERT INTO `sys_file` VALUES ('45', '7233fbd0dd374f7cb6fa5872a87029c0.jpg', '/upload/images/20181207/7233fbd0dd374f7cb6fa5872a87029c0.jpg', 'image/jpeg', '888414', '3d932ba207206df79d67cd2befe446d4', '50722998a3665eadec22bce30b0853123690dba9', '1', '2018-12-07 01:51:17'); INSERT INTO `sys_file` VALUES ('46', 'dfb2598b0f2e4a129b1379641697e5e9.jpg', '/upload/images/20181207/dfb2598b0f2e4a129b1379641697e5e9.jpg', 'image/jpeg', '611314', 'a8c0bdd497e602277c195afddadc42e0', '581a790cea7712364e2c65f392ccf568b3b00634', '1', '2018-12-07 01:56:30'); INSERT INTO `sys_file` VALUES ('47', 'd668556e88074a289815b63f019771e8.jpg', '/upload/images/20181207/d668556e88074a289815b63f019771e8.jpg', 'image/jpeg', '3210554', 'd0348f9fdc838345225893540d4f4c86', 'b8d9bb58d4e7425f0d36ee3c2775e48ae7f984ef', '1', '2018-12-07 01:56:30'); INSERT INTO `sys_file` VALUES ('48', 'a215c323e1e646838e52db4af824b6c0.jpg', '/upload/images/20181207/a215c323e1e646838e52db4af824b6c0.jpg', 'image/jpeg', '330100', '4d133d7ce8a80e2a823963ebf8d7ba8a', '492e52d205ca2a667cbd4ec78bf435fc68c63ad9', '1', '2018-12-07 02:08:33'); INSERT INTO `sys_file` VALUES ('49', 'd1e43304bf504597928229645b14326e.jpg', '/upload/images/20181207/d1e43304bf504597928229645b14326e.jpg', 'image/jpeg', '499979', '25ed5cc684fd6b589d409754978ff8ca', '25ec8df4753932ccd2b98c6d35a57474efe859f7', '1', '2018-12-07 02:08:41'); INSERT INTO `sys_file` VALUES ('50', '65db6654411e415894ddbbbe8c4330c7.jpg', '/upload/images/20181207/65db6654411e415894ddbbbe8c4330c7.jpg', 'image/jpeg', '74536', 'cc5b27b59e717a3a3334fda16489d1cd', '641f43dfce92cc19d771bdb8cceab1953a414927', '1', '2018-12-07 02:16:59'); INSERT INTO `sys_file` VALUES ('51', 'ad5d3b408c4149afa5af6accdbc85c0f.jpg', '/upload/images/20181207/ad5d3b408c4149afa5af6accdbc85c0f.jpg', 'image/jpeg', '106833', 'ae58c66eb37c46f97877ff9cac660b39', 'd640a7330ff78c06076d68af805110f314f94b4d', '1', '2018-12-07 02:17:01'); INSERT INTO `sys_file` VALUES ('52', '3c6d252aaad04936952cac7623274979.jpg', '/upload/images/20181207/3c6d252aaad04936952cac7623274979.jpg', 'image/jpeg', '1135181', 'b73e44a2a04f539b7bf6a7f12928989d', '5f5c1df60fb8ae309adf7512c06b4fa13103fde7', '1', '2018-12-07 02:19:31'); -- ---------------------------- -- Table structure for sys_glass -- ---------------------------- DROP TABLE IF EXISTS `sys_glass`; CREATE TABLE `sys_glass` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `dept_id` bigint(20) DEFAULT NULL, `title` varchar(255) DEFAULT NULL COMMENT '班级名称', `name` varchar(255) DEFAULT NULL COMMENT '编辑编号', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `create_date` datetime DEFAULT NULL COMMENT '创建时间', `update_date` datetime DEFAULT NULL COMMENT '更新时间', `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户', `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户', `status` tinyint(4) DEFAULT NULL COMMENT '状态(1:正常,2:冻结,3:删除)', PRIMARY KEY (`id`), KEY `FKdkwvv0rm6j3d5l6hwsy2dplol` (`create_by`), KEY `FKrouqqi3f2bgc5o83wdstlh6q4` (`update_by`), KEY `FK6lsuq9iq87d2ngfd9e9au88gf` (`dept_id`), CONSTRAINT `FK6lsuq9iq87d2ngfd9e9au88gf` FOREIGN KEY (`dept_id`) REFERENCES `sys_dept` (`id`), CONSTRAINT `sys_glass_ibfk_1` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`), CONSTRAINT `sys_glass_ibfk_2` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_glass -- ---------------------------- INSERT INTO `sys_glass` VALUES ('4', '6', '15通信2班', '1001', '', '2019-03-17 14:49:36', '2019-03-17 18:51:57', '1', '1', '1'); INSERT INTO `sys_glass` VALUES ('5', '7', '15计算机1班', '1002', '', '2019-03-17 18:52:18', '2019-03-17 18:52:18', '1', '1', '1'); -- ---------------------------- -- Table structure for sys_goodrecord -- ---------------------------- DROP TABLE IF EXISTS `sys_goodrecord`; CREATE TABLE `sys_goodrecord` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `user_id` bigint(20) DEFAULT NULL COMMENT '学生', `dept_id` bigint(20) DEFAULT NULL COMMENT '系别', `glass_id` bigint(20) DEFAULT NULL COMMENT '班级', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `create_date` datetime DEFAULT NULL COMMENT '创建时间', `update_date` datetime DEFAULT NULL COMMENT '更新时间', `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户', `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户', `status` tinyint(4) DEFAULT NULL COMMENT '状态(1:正常,2:冻结,3:删除)', `isPass` int(4) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FKdkwvv0rm6j3d5l6hwsy2dplol` (`create_by`), KEY `FKrouqqi3f2bgc5o83wdstlh6q4` (`update_by`), CONSTRAINT `sys_goodrecord_ibfk_1` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`), CONSTRAINT `sys_goodrecord_ibfk_2` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_goodrecord -- ---------------------------- -- ---------------------------- -- Table structure for sys_menu -- ---------------------------- DROP TABLE IF EXISTS `sys_menu`; CREATE TABLE `sys_menu` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `title` varchar(255) DEFAULT NULL COMMENT '菜单名称', `pid` bigint(20) DEFAULT NULL COMMENT '父级编号', `pids` varchar(255) DEFAULT NULL COMMENT '所有父级编号', `url` varchar(255) DEFAULT NULL COMMENT 'URL地址', `icon` varchar(255) DEFAULT NULL COMMENT '图标', `type` tinyint(4) DEFAULT NULL COMMENT '类型(1:一级菜单,2:子级菜单,3:不是菜单)', `sort` int(11) DEFAULT NULL COMMENT '排序', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `create_date` datetime DEFAULT NULL COMMENT '创建时间', `update_date` datetime DEFAULT NULL COMMENT '更新时间', `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户', `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户', `status` tinyint(4) DEFAULT NULL COMMENT '状态(1:正常,2:冻结,3:删除)', PRIMARY KEY (`id`), KEY `FKoxg2hi96yr9pf2m0stjomr3we` (`create_by`), KEY `FKsiko0qcr8ddamvrxf1tk4opgc` (`update_by`), CONSTRAINT `FKoxg2hi96yr9pf2m0stjomr3we` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`), CONSTRAINT `FKsiko0qcr8ddamvrxf1tk4opgc` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=181 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_menu -- ---------------------------- INSERT INTO `sys_menu` VALUES ('1', '菜单管理', '2', '[0],[2]', '/menu/index', '', '2', '3', '', '2018-09-29 00:02:10', '2018-11-13 21:48:58', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('2', '系统管理', '0', '[0]', '#', 'fa fa-user-o', '1', '3', '', '2018-09-29 00:05:50', '2019-03-18 14:04:34', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('3', '添加', '1', '[0],[2],[1]', '/menu/add', null, '3', '1', null, '2018-09-29 00:06:57', '2018-09-29 00:06:59', '1', null, '1'); INSERT INTO `sys_menu` VALUES ('4', '角色管理', '2', '[0],[2]', '/role/index', '', '2', '2', '', '2018-09-29 00:08:14', '2018-11-13 21:48:58', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('5', '添加', '4', '[0],[2],[4]', '/role/add', null, '3', '1', null, '2018-09-29 00:09:04', '2018-09-29 00:09:09', null, null, '1'); INSERT INTO `sys_menu` VALUES ('6', '主页', '0', '[0]', '/index', 'layui-icon layui-icon-home', '1', '1', '', '2018-09-29 00:09:56', '2019-03-17 10:58:54', null, '1', '1'); INSERT INTO `sys_menu` VALUES ('7', '用户管理', '2', '[0],[2]', '/user/index', '', '2', '1', '', '2018-09-29 00:43:50', '2018-11-13 21:48:58', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('8', '编辑', '1', '[0],[2],[1]', '/menu/edit', null, '3', '2', null, '2018-09-29 00:57:33', '2018-09-29 00:57:38', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('9', '详细', '1', '[0],[2],[1]', '/menu/detail', '', '3', '3', '', '2018-09-29 01:03:00', '2018-09-29 01:03:00', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('10', '修改状态', '1', '[0],[2],[1]', '/menu/status', '', '3', '4', '', '2018-09-29 01:03:43', '2018-09-29 01:03:43', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('11', '编辑', '4', '[0],[2],[4]', '/role/edit', '', '3', '2', '', '2018-09-29 01:06:13', '2018-09-29 01:06:13', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('12', '授权', '4', '[0],[2],[4]', '/role/auth', '', '3', '3', '', '2018-09-29 01:06:57', '2018-09-29 01:06:57', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('13', '详细', '4', '[0],[2],[4]', '/role/detail', '', '3', '4', '', '2018-09-29 01:08:00', '2018-09-29 01:08:00', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('14', '修改状态', '4', '[0],[2],[4]', '/role/status', '', '3', '5', '', '2018-09-29 01:08:22', '2018-09-29 01:08:22', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('15', '编辑', '7', '[0],[2],[7]', '/user/edit', '', '3', '2', '', '2018-09-29 21:17:17', '2018-09-29 21:17:17', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('16', '添加', '7', '[0],[2],[7]', '/user/add', '', '3', '1', '', '2018-09-29 21:17:58', '2018-09-29 21:17:58', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('17', '修改密码', '7', '[0],[2],[7]', '/user/pwd', '', '3', '3', '', '2018-09-29 21:19:40', '2018-09-29 21:19:40', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('18', '权限分配', '7', '[0],[2],[7]', '/user/role', '', '3', '4', '', '2018-09-29 21:20:35', '2018-09-29 21:20:35', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('19', '详细', '7', '[0],[2],[7]', '/user/detail', '', '3', '5', '', '2018-09-29 21:21:00', '2018-09-29 21:21:00', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('20', '修改状态', '7', '[0],[2],[7]', '/user/status', '', '3', '6', '', '2018-09-29 21:21:18', '2018-09-29 21:21:18', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('21', '字典管理', '2', '[0],[2]', '/dict/index', '', '2', '5', '', '2018-10-05 00:55:52', '2019-03-17 10:57:47', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('22', '字典添加', '21', '[0],[2],[21]', '/dict/add', '', '3', '1', '', '2018-10-05 00:56:26', '2019-03-17 10:57:47', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('23', '字典编辑', '21', '[0],[2],[21]', '/dict/edit', '', '3', '2', '', '2018-10-05 00:57:08', '2019-03-17 10:57:47', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('24', '字典详细', '21', '[0],[2],[21]', '/dict/detail', '', '3', '3', '', '2018-10-05 00:57:42', '2019-03-17 10:57:47', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('25', '修改状态', '21', '[0],[2],[21]', '/dict/status', '', '3', '4', '', '2018-10-05 00:58:27', '2019-03-17 10:57:47', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('26', '行为日志', '2', '[0],[2]', '/actionLog/index', '', '2', '6', '', '2018-10-14 16:52:01', '2019-03-17 10:57:52', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('27', '日志详细', '26', '[0],[2],[26]', '/actionLog/detail', '', '3', '1', '', '2018-10-14 21:07:11', '2019-03-17 10:57:52', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('28', '日志删除', '26', '[0],[2],[26]', '/actionLog/delete', '', '3', '2', '', '2018-10-14 21:08:17', '2019-03-17 10:57:52', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('30', '开发设置', '0', '[0]', '#', 'fa fa-gavel', '1', '5', '', '2018-10-19 16:38:23', '2019-03-18 11:15:03', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('31', '代码生成', '30', '[0],[30]', '/code/index', '', '2', '1', '', '2018-10-19 16:39:04', '2018-11-10 19:34:42', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('125', '表单构建', '30', '[0],[30]', '/dev/build', '', '2', '2', '表单构建工具', '2018-11-25 16:12:23', '2018-11-25 16:12:23', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('136', '系别管理', '2', '[0],[2]', '/dept/index', '', '2', '4', '', '2018-12-02 16:33:23', '2019-03-17 13:40:15', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('137', '添加', '136', '[0],[2],[136]', '/dept/add', '', '3', '1', '', '2018-12-02 16:33:23', '2018-12-02 16:38:37', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('138', '编辑', '136', '[0],[2],[136]', '/dept/edit', null, '3', '2', null, '2018-12-02 16:33:23', '2018-12-02 16:38:37', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('139', '详细', '136', '[0],[2],[136]', '/dept/detail', null, '3', '3', null, '2018-12-02 16:33:23', '2018-12-02 16:38:37', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('140', '改变状态', '136', '[0],[2],[136]', '/dept/status', null, '3', '4', null, '2018-12-02 16:33:23', '2018-12-02 16:38:37', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('141', '三级目录', '26', '[0],[2],[26]', '/actionLog/index', '', '2', '3', '', '2018-12-05 16:42:43', '2018-12-05 18:06:44', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('142', '按钮1', '141', '[0],[2],[26],[141]', 'client/add', '', '3', '1', '', '2018-12-05 16:44:45', '2018-12-05 18:06:44', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('143', '按钮2', '141', '[0],[2],[26],[141]', '/wuwu', 'wuwu-icon', '3', '2', '', '2018-12-05 16:50:23', '2018-12-05 18:06:44', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('144', '三级目录2', '26', '[0],[2],[26]', '/wuwu2', '', '2', '4', '', '2018-12-05 17:57:18', '2018-12-05 18:06:52', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('145', '城建', '26', '[0],[2],[26]', '#', 'fa fa-gavel', '2', '3', '', '2018-12-05 19:40:11', '2018-12-05 19:40:54', '1', '1', '3'); INSERT INTO `sys_menu` VALUES ('146', '数据接口', '30', '[0],[30]', '/dev/swagger', '', '2', '3', '', '2018-12-09 21:11:11', '2018-12-09 21:11:11', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('147', '字典管理', '30', '[0],[30]', '/dict/index', '', '2', '4', '', '2019-03-17 10:56:48', '2019-03-17 10:56:48', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('148', '行为日志', '30', '[0],[30]', '/actionLog/index', '', '2', '5', '', '2019-03-17 10:57:26', '2019-03-17 10:57:26', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('149', '班级管理', '2', '[0],[2]', '/glass/index', '', '2', '5', '', '2019-03-17 14:37:38', '2019-03-17 14:37:38', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('150', '课程管理', '2', '[0],[2]', '/course/index', null, '2', '7', null, '2019-03-17 15:11:26', '2019-03-17 20:21:13', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('151', '添加', '150', '[0],[2],[150]', '/course/add', null, '3', '4', null, '2019-03-17 15:11:27', '2019-03-17 15:11:27', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('152', '编辑', '150', '[0],[2],[150]', '/course/edit', null, '3', '1', null, '2019-03-17 15:11:27', '2019-03-17 15:11:27', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('153', '详细', '150', '[0],[2],[150]', '/course/detail', null, '3', '2', null, '2019-03-17 15:11:27', '2019-03-17 15:11:27', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('154', '改变状态', '150', '[0],[2],[150]', '/course/status', null, '3', '3', null, '2019-03-17 15:11:27', '2019-03-17 15:11:27', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('155', '班级分配', '7', '[0],[2],[7]', '/user/glass', '', '3', '7', '', '2019-03-17 19:04:33', '2019-03-17 19:04:33', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('156', '添加', '149', '[0],[2],[149]', '/glass/add', '', '3', '1', '', '2019-03-17 19:05:45', '2019-03-17 19:05:45', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('157', '编辑', '149', '[0],[2],[149]', '/glass/edit', '', '3', '2', '', '2019-03-17 19:06:23', '2019-03-17 19:06:23', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('158', '详细', '149', '[0],[2],[149]', '/glass/detail', '', '3', '3', '', '2019-03-17 19:06:55', '2019-03-17 19:06:55', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('159', '改变状态', '149', '[0],[2],[149]', '/glass/status', '', '3', '4', '', '2019-03-17 19:07:26', '2019-03-17 19:07:26', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('160', '成绩列表', '165', '[0],[2]', '/score/index', 'fa fa-vcard', '2', '1', '', '2019-03-17 20:21:13', '2019-03-18 11:15:26', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('161', '添加', '160', '[0],[2],[160]', '/score/add', null, '3', '4', null, '2019-03-17 20:21:13', '2019-03-17 20:21:13', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('162', '编辑', '160', '[0],[2],[160]', '/score/edit', null, '3', '1', null, '2019-03-17 20:21:13', '2019-03-17 20:21:13', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('163', '详细', '160', '[0],[2],[160]', '/score/detail', null, '3', '2', null, '2019-03-17 20:21:13', '2019-03-17 20:21:13', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('164', '改变状态', '160', '[0],[2],[160]', '/score/status', null, '3', '3', null, '2019-03-17 20:21:13', '2019-03-17 20:21:13', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('165', '成绩管理', '0', '[0]', '#', 'fa fa-vcard', '1', '4', '', '2019-03-18 11:15:03', '2019-03-18 14:04:34', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('166', '用户管理', '0', '[0]', '#', 'fa fa-user-o', '1', '2', '', '2019-03-18 14:04:34', '2019-03-18 14:04:34', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('167', '管理员列表', '166', '[0],[166]', '/user/indexAdmin', '', '2', '1', '', '2019-03-18 14:06:05', '2019-03-18 14:07:04', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('168', '教师列表', '166', '[0],[166]', '/user/indexTeacher', '', '1', '2', '', '2019-03-18 14:06:54', '2019-03-18 14:06:54', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('169', '学生列表', '166', '[0],[166]', '/user/indexStu', '', '1', '3', '', '2019-03-18 14:07:41', '2019-03-18 22:54:12', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('170', '评奖管理', '165', '[0],[165]', '/score/indexPrize', '', '2', '2', '', '2019-03-18 19:47:00', '2019-03-18 19:47:00', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('171', '评优管理', '165', '[0],[165]', '/user/indexGood', '', '2', '3', '', '2019-03-18 22:42:47', '2019-03-18 22:42:47', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('172', '修改密码', '168', '[0],[166],[168]', '/user/pwd', '', '3', '1', '', '2019-03-18 23:19:58', '2019-03-18 23:19:58', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('173', '班级分配', '168', '[0],[166],[168]', '/glass/glass', '', '3', '2', '', '2019-03-18 23:20:32', '2019-03-18 23:20:32', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('174', '修改状态', '168', '[0],[166],[168]', '/user/status', '', '3', '3', '', '2019-03-18 23:21:43', '2019-03-18 23:21:43', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('175', '新增', '168', '[0],[166],[168]', '/user/add', '', '3', '4', '', '2019-03-18 23:22:18', '2019-03-18 23:22:18', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('176', '编辑', '168', '[0],[166],[168]', '/user/edit', '', '3', '5', '', '2019-03-18 23:22:52', '2019-03-18 23:22:52', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('177', '修改密码', '169', '[0],[166],[169]', '/user/pwd', '', '3', '1', '', '2019-03-18 23:23:36', '2019-03-18 23:23:36', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('178', '班级分配', '169', '[0],[166],[169]', '/user/glass', '', '3', '2', '', '2019-03-18 23:23:54', '2019-03-18 23:23:54', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('179', '修改状态', '169', '[0],[166],[169]', '/user/status', '', '3', '3', '', '2019-03-18 23:24:21', '2019-03-18 23:24:21', '1', '1', '1'); INSERT INTO `sys_menu` VALUES ('180', '编辑', '169', '[0],[166],[169]', '/user/edit', '', '3', '4', '', '2019-03-18 23:24:53', '2019-03-18 23:24:53', '1', '1', '1'); -- ---------------------------- -- Table structure for sys_role -- ---------------------------- DROP TABLE IF EXISTS `sys_role`; CREATE TABLE `sys_role` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `title` varchar(255) DEFAULT NULL COMMENT '角色名称(中文名)', `name` varchar(255) DEFAULT NULL COMMENT '标识名称', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `create_date` datetime DEFAULT NULL COMMENT '创建时间', `update_date` datetime DEFAULT NULL COMMENT '更新时间', `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户', `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户', `status` tinyint(4) DEFAULT NULL COMMENT '状态(1:正常,2:冻结,3:删除)', PRIMARY KEY (`id`), KEY `FKdkwvv0rm6j3d5l6hwsy2dplol` (`create_by`), KEY `FKrouqqi3f2bgc5o83wdstlh6q4` (`update_by`), CONSTRAINT `FKdkwvv0rm6j3d5l6hwsy2dplol` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`), CONSTRAINT `FKrouqqi3f2bgc5o83wdstlh6q4` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_role -- ---------------------------- INSERT INTO `sys_role` VALUES ('1', '管理员', 'admin', '', '2019-03-29 00:12:40', '2019-03-17 20:21:13', '1', '1', '1'); INSERT INTO `sys_role` VALUES ('2', '教师', 'teacher', '', '2019-03-29 00:12:40', '2019-03-18 23:25:31', '1', '1', '1'); INSERT INTO `sys_role` VALUES ('3', '学生', 'student', '', '2019-03-29 00:12:40', '2019-03-18 23:25:45', '1', '1', '1'); -- ---------------------------- -- Table structure for sys_role_menu -- ---------------------------- DROP TABLE IF EXISTS `sys_role_menu`; CREATE TABLE `sys_role_menu` ( `role_id` bigint(20) NOT NULL, `menu_id` bigint(20) NOT NULL, PRIMARY KEY (`role_id`,`menu_id`), KEY `FKf3mud4qoc7ayew8nml4plkevo` (`menu_id`), CONSTRAINT `FKf3mud4qoc7ayew8nml4plkevo` FOREIGN KEY (`menu_id`) REFERENCES `sys_menu` (`id`), CONSTRAINT `FKkeitxsgxwayackgqllio4ohn5` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_role_menu -- ---------------------------- INSERT INTO `sys_role_menu` VALUES ('1', '1'); INSERT INTO `sys_role_menu` VALUES ('1', '2'); INSERT INTO `sys_role_menu` VALUES ('2', '2'); INSERT INTO `sys_role_menu` VALUES ('3', '2'); INSERT INTO `sys_role_menu` VALUES ('1', '3'); INSERT INTO `sys_role_menu` VALUES ('1', '4'); INSERT INTO `sys_role_menu` VALUES ('1', '5'); INSERT INTO `sys_role_menu` VALUES ('1', '6'); INSERT INTO `sys_role_menu` VALUES ('2', '6'); INSERT INTO `sys_role_menu` VALUES ('3', '6'); INSERT INTO `sys_role_menu` VALUES ('1', '7'); INSERT INTO `sys_role_menu` VALUES ('1', '8'); INSERT INTO `sys_role_menu` VALUES ('1', '9'); INSERT INTO `sys_role_menu` VALUES ('1', '10'); INSERT INTO `sys_role_menu` VALUES ('1', '11'); INSERT INTO `sys_role_menu` VALUES ('1', '12'); INSERT INTO `sys_role_menu` VALUES ('1', '13'); INSERT INTO `sys_role_menu` VALUES ('1', '14'); INSERT INTO `sys_role_menu` VALUES ('1', '15'); INSERT INTO `sys_role_menu` VALUES ('1', '16'); INSERT INTO `sys_role_menu` VALUES ('1', '17'); INSERT INTO `sys_role_menu` VALUES ('1', '18'); INSERT INTO `sys_role_menu` VALUES ('1', '19'); INSERT INTO `sys_role_menu` VALUES ('1', '20'); INSERT INTO `sys_role_menu` VALUES ('1', '30'); INSERT INTO `sys_role_menu` VALUES ('1', '31'); INSERT INTO `sys_role_menu` VALUES ('1', '125'); INSERT INTO `sys_role_menu` VALUES ('1', '136'); INSERT INTO `sys_role_menu` VALUES ('1', '137'); INSERT INTO `sys_role_menu` VALUES ('1', '138'); INSERT INTO `sys_role_menu` VALUES ('1', '139'); INSERT INTO `sys_role_menu` VALUES ('1', '140'); INSERT INTO `sys_role_menu` VALUES ('1', '146'); INSERT INTO `sys_role_menu` VALUES ('1', '147'); INSERT INTO `sys_role_menu` VALUES ('1', '148'); INSERT INTO `sys_role_menu` VALUES ('1', '149'); INSERT INTO `sys_role_menu` VALUES ('1', '150'); INSERT INTO `sys_role_menu` VALUES ('2', '150'); INSERT INTO `sys_role_menu` VALUES ('3', '150'); INSERT INTO `sys_role_menu` VALUES ('1', '151'); INSERT INTO `sys_role_menu` VALUES ('1', '152'); INSERT INTO `sys_role_menu` VALUES ('1', '153'); INSERT INTO `sys_role_menu` VALUES ('2', '153'); INSERT INTO `sys_role_menu` VALUES ('3', '153'); INSERT INTO `sys_role_menu` VALUES ('1', '154'); INSERT INTO `sys_role_menu` VALUES ('1', '160'); INSERT INTO `sys_role_menu` VALUES ('1', '161'); INSERT INTO `sys_role_menu` VALUES ('1', '162'); INSERT INTO `sys_role_menu` VALUES ('1', '163'); INSERT INTO `sys_role_menu` VALUES ('1', '164'); INSERT INTO `sys_role_menu` VALUES ('2', '165'); INSERT INTO `sys_role_menu` VALUES ('3', '165'); INSERT INTO `sys_role_menu` VALUES ('2', '166'); INSERT INTO `sys_role_menu` VALUES ('3', '166'); INSERT INTO `sys_role_menu` VALUES ('3', '168'); INSERT INTO `sys_role_menu` VALUES ('2', '169'); INSERT INTO `sys_role_menu` VALUES ('3', '169'); INSERT INTO `sys_role_menu` VALUES ('2', '170'); INSERT INTO `sys_role_menu` VALUES ('3', '170'); INSERT INTO `sys_role_menu` VALUES ('2', '177'); INSERT INTO `sys_role_menu` VALUES ('2', '178'); INSERT INTO `sys_role_menu` VALUES ('2', '179'); INSERT INTO `sys_role_menu` VALUES ('2', '180'); -- ---------------------------- -- Table structure for sys_score -- ---------------------------- DROP TABLE IF EXISTS `sys_score`; CREATE TABLE `sys_score` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `user_id` bigint(20) DEFAULT NULL COMMENT '学生名称', `course_id` bigint(20) DEFAULT NULL COMMENT '课程名称', `glass_id` bigint(20) DEFAULT NULL, `score` int(10) DEFAULT '0' COMMENT '学业基础分', `behavior_score` int(10) DEFAULT '0' COMMENT '行为基础分', `year` int(4) DEFAULT '2019' COMMENT '年份', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `create_date` datetime DEFAULT NULL COMMENT '创建时间', `update_date` datetime DEFAULT NULL COMMENT '更新时间', `create_by` bigint(20) DEFAULT NULL COMMENT '创建用户', `update_by` bigint(20) DEFAULT NULL COMMENT '更新用户', `status` tinyint(4) DEFAULT NULL COMMENT '状态(1:正常,2:冻结,3:删除)', PRIMARY KEY (`id`), KEY `index_create_by` (`create_by`) USING BTREE, KEY `index_update_by` (`update_by`) USING BTREE, KEY `FK4bwh56e7tg408nu77wc8kbc6m` (`user_id`), KEY `index_course_id11` (`course_id`) USING BTREE, KEY `FKk10svauujjvdnrhrn77pwi8bd` (`glass_id`), CONSTRAINT `FK4bwh56e7tg408nu77wc8kbc6m` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`), CONSTRAINT `FKk10svauujjvdnrhrn77pwi8bd` FOREIGN KEY (`glass_id`) REFERENCES `sys_glass` (`id`), CONSTRAINT `index_course_id11` FOREIGN KEY (`course_id`) REFERENCES `sys_course` (`id`), CONSTRAINT `index_create_by` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`), CONSTRAINT `index_update_by` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_score -- ---------------------------- INSERT INTO `sys_score` VALUES ('8', '2', '5', '4', '4', '6', null, null, '2019-03-18 19:25:36', '2019-03-18 19:25:36', '1', '1', '1'); -- ---------------------------- -- Table structure for sys_user -- ---------------------------- DROP TABLE IF EXISTS `sys_user`; CREATE TABLE `sys_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `username` varchar(255) DEFAULT NULL COMMENT '用户名', `nickname` varchar(255) DEFAULT NULL COMMENT '用户昵称', `password` varchar(255) DEFAULT NULL COMMENT '密码', `salt` varchar(255) DEFAULT NULL COMMENT '密码盐', `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID', `picture` varchar(255) DEFAULT NULL COMMENT '头像', `sex` varchar(255) DEFAULT NULL COMMENT '性别(1:男,2:女)', `email` varchar(255) DEFAULT NULL COMMENT '邮箱', `phone` varchar(255) DEFAULT NULL COMMENT '电话号码', `is_role` tinyint(4) DEFAULT NULL COMMENT '是否拥有角色', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `create_date` datetime DEFAULT NULL COMMENT '创建时间', `update_date` datetime DEFAULT NULL COMMENT '更新时间', `status` tinyint(4) DEFAULT NULL COMMENT '状态(1:正常,2:冻结,3:删除)', `auditstatus` int(10) DEFAULT '0' COMMENT '0 初始 1申请评优 2评优不通过 3评优通过', `honor` varchar(255) DEFAULT NULL COMMENT '荣誉称号', PRIMARY KEY (`id`), KEY `FKb3pkx0wbo6o8i8lj0gxr37v1n` (`dept_id`), KEY `FKcelh37iybbjd7rtf0k687cuve` (`auditstatus`), CONSTRAINT `FKb3pkx0wbo6o8i8lj0gxr37v1n` FOREIGN KEY (`dept_id`) REFERENCES `sys_dept` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_user -- ---------------------------- INSERT INTO `sys_user` VALUES ('1', 'admin', '管理员', '673b87294c3fc7978cba2faf4599bcad176c223b5b15dffd9cfb196c4aad2bae', 'UW7TsX', '2', null, '1', '<EMAIL>', '10086', '1', '', '2019-03-17 13:22:13', '2019-03-17 14:24:07', '1', '0', null); INSERT INTO `sys_user` VALUES ('2', '1003', '张老师', 'a289208df2024f64355fc9f05ffc83198cc87e07d4e45c024c85b91155da351d', '8YD0KM', '6', null, '1', '<EMAIL>', '10086', '1', '', '2019-03-17 13:22:13', '2019-03-18 23:08:44', '1', '0', null); INSERT INTO `sys_user` VALUES ('3', '1001', '学生002', 'dc0d15291dd35975156cc95e1619888f3aacef71ea7eaa4cfc8055df9c16ef69', 'V4GEVk', '7', null, '1', '<EMAIL>', '15845678910', '1', '', '2019-03-17 14:22:18', '2019-03-17 19:10:01', '1', '2', '优秀共青团员'); INSERT INTO `sys_user` VALUES ('4', '1002', '李四', '7bcabf3a1885331371b99574c4862d84e10bab5fd953539484374874a2b1821b', 'DaeBic', '7', null, '1', '<EMAIL>', '15845678910', '1', '', '2019-03-17 17:33:22', '2019-03-17 18:50:06', '1', '0', null); -- ---------------------------- -- Table structure for sys_user_glass -- ---------------------------- DROP TABLE IF EXISTS `sys_user_glass`; CREATE TABLE `sys_user_glass` ( `user_id` bigint(20) NOT NULL, `glass_id` bigint(20) NOT NULL, PRIMARY KEY (`user_id`,`glass_id`), KEY `sys_user_glass_ibfk_1` (`glass_id`) USING BTREE, KEY `sys_user_glass_ibfk_2` (`user_id`) USING BTREE, CONSTRAINT `sys_user_glass_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`), CONSTRAINT `sys_user_glass_ibfk_2` FOREIGN KEY (`glass_id`) REFERENCES `sys_glass` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_user_glass -- ---------------------------- INSERT INTO `sys_user_glass` VALUES ('2', '4'); INSERT INTO `sys_user_glass` VALUES ('3', '4'); INSERT INTO `sys_user_glass` VALUES ('2', '5'); -- ---------------------------- -- Table structure for sys_user_role -- ---------------------------- DROP TABLE IF EXISTS `sys_user_role`; CREATE TABLE `sys_user_role` ( `user_id` bigint(20) NOT NULL, `role_id` bigint(20) NOT NULL, PRIMARY KEY (`user_id`,`role_id`), KEY `FKhh52n8vd4ny9ff4x9fb8v65qx` (`role_id`), CONSTRAINT `FKb40xxfch70f5qnyfw8yme1n1s` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`), CONSTRAINT `FKhh52n8vd4ny9ff4x9fb8v65qx` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_user_role -- ---------------------------- INSERT INTO `sys_user_role` VALUES ('1', '1'); INSERT INTO `sys_user_role` VALUES ('2', '2'); INSERT INTO `sys_user_role` VALUES ('4', '2'); INSERT INTO `sys_user_role` VALUES ('3', '3');
<reponame>cuba-platform/cuba-thesis -- $Id$ -- Description: create table SEC_TAB_HISTORY ( ID uuid, CREATE_TS timestamp, CREATED_BY varchar(50), CREATOR_ID uuid, CAPTION varchar(255), URL varchar(4000), primary key (ID) ); alter table SEC_TAB_HISTORY add constraint FK_SEC_HISTORY_USER foreign key (CREATOR_ID) references SEC_USER (ID);
-- Use this file to run an end to end test ------------------ -- Replace <USERNAME> with your current user ------------------ -- USE ROLE ACCOUNTADMIN; -- GRANT ROLE ROLE_INGEST TO USER <USERNAME>; -- GRANT ROLE ROLE_TRANSFORM TO USER <USERNAME>; -- GRANT ROLE ROLE_REPORT TO USER <USERNAME>; ------------------ -- TEST LOAD ------------------ -- By default, all DE users have the DE role which means we can do sandbox queries -- USE ROLE prod_db_sndbx_rwx_rl; USE WAREHOUSE PROD_ADHOC_WH; USE SCHEMA PROD_CTF_SANDBOX.USR_SANDBOX; CREATE OR REPLACE TABLE PROD_CTF_SANDBOX.USR_SANDBOX.MYTABLE (AMOUNT NUMBER); INSERT INTO MYTABLE VALUES(1); SELECT * FROM MYTABLE; ------------------ -- TEST TRANSFORM ------------------ USE WAREHOUSE PROD_ADHOC_WH; USE SCHEMA PROD_CTF_SANDBOX.USR_SANDBOX; CREATE OR REPLACE TABLE PROD_CTF_SANDBOX.USR_SANDBOX.MATERIALISED_TABLE AS (SELECT AMOUNT*2.5 AS SALES_AMOUNT FROM PROD_CTF_SANDBOX.USR_SANDBOX.MYTABLE); CREATE OR REPLACE VIEW PROD_CTF_SANDBOX.USR_SANDBOX.BUSINESS_VIEW AS (SELECT * FROM MATERIALISED_TABLE); SELECT * FROM BUSINESS_VIEW; ------------------ -- TEST REPORT ------------------ USE WAREHOUSE PROD_ADHOC_WH; SELECT * FROM MATERIALISED_TABLE; SELECT * FROM BUSINESS_VIEW;
DROP TABLE hosts,disks,loadavg,memory,ioblocks,cpustats,swap,cputimes,ionets;
<gh_stars>0 CREATE SEQUENCE cwf_workflowitem_seq; CREATE SEQUENCE cwf_collectionrole_seq; CREATE SEQUENCE cwf_workflowitemrole_seq; CREATE SEQUENCE cwf_claimtask_seq; CREATE SEQUENCE cwf_in_progress_user_seq; CREATE SEQUENCE cwf_pooltask_seq; CREATE TABLE cwf_workflowitem ( workflowitem_id INTEGER PRIMARY KEY, item_id INTEGER REFERENCES item(item_id) UNIQUE, collection_id INTEGER REFERENCES collection(collection_id), -- Answers to questions on first page of submit UI multiple_titles NUMBER(1), published_before NUMBER(1), multiple_files NUMBER(1) -- Note: stage reached not applicable here - people involved in workflow -- can always jump around submission UI ); -- TODO: it seems like this index is already created by the 'unique' constraint in the table creation -- CREATE INDEX xmlwf_wf_item_fk_idx ON xmlwf_workflowitem(item_id); CREATE INDEX xmlwf_wf_coll_fk_idx ON xmlwf_workflowitem(collection_id); CREATE TABLE xmlwf_collectionrole ( collectionrole_id INTEGER PRIMARY KEY, role_id VARCHAR2(256), collection_id integer REFERENCES collection(collection_id), group_id integer REFERENCES epersongroup(eperson_group_id) ); ALTER TABLE xmlwf_collectionrole ADD CONSTRAINT xmlwf_collectionrole_unique UNIQUE (role_id, collection_id, group_id); CREATE INDEX xmlwf_cr_coll_role_fk_idx ON xmlwf_collectionrole(collection_id,role_id); CREATE INDEX xmlwf_cr_coll_fk_idx ON xmlwf_collectionrole(collection_id); CREATE TABLE xmlwf_workflowitemrole ( workflowitemrole_id INTEGER PRIMARY KEY, role_id VARCHAR2(256), workflowitem_id integer REFERENCES xmlwf_workflowitem(workflowitem_id), eperson_id integer REFERENCES eperson(eperson_id), group_id integer REFERENCES epersongroup(eperson_group_id) ); ALTER TABLE xmlwf_workflowitemrole ADD CONSTRAINT xmlwf_workflowitemrole_unique UNIQUE (role_id, workflowitem_id, eperson_id); CREATE INDEX xmlwf_wfir_item_role_fk_idx ON xmlwf_workflowitemrole(workflowitem_id,role_id); CREATE INDEX xmlwf_wfir_item_fk_idx ON xmlwf_workflowitemrole(workflowitem_id); CREATE TABLE xmlwf_pooltask ( pooltask_id INTEGER PRIMARY KEY, workflowitem_id INTEGER REFERENCES xmlwf_workflowitem(workflowitem_id), workflow_id VARCHAR2(256), step_id VARCHAR2(256), action_id VARCHAR2(256), eperson_id INTEGER REFERENCES EPerson(eperson_id), group_id INTEGER REFERENCES epersongroup(eperson_group_id) ); CREATE INDEX cwf_pt_epers_fk_idx ON cwf_pooltask(eperson_id); CREATE INDEX cwf_pt_wf_fk_idx ON cwf_pooltask(workflowitem_id); CREATE INDEX cwf_pt_wf_epers_fk_idx ON cwf_pooltask(eperson_id,workflowitem_id); CREATE TABLE cwf_claimtask ( claimtask_id INTEGER PRIMARY KEY, workflowitem_id integer REFERENCES cwf_workflowitem(workflowitem_id), workflow_id VARCHAR2(256), step_id VARCHAR2(256), action_id VARCHAR2(256), owner_id integer REFERENCES eperson(eperson_id) ); ALTER TABLE cwf_claimtask ADD CONSTRAINT cwf_claimtask_unique UNIQUE (step_id, workflowitem_id, workflow_id, owner_id, action_id); CREATE INDEX cwf_ct_wf_fk_idx ON cwf_claimtask(workflowitem_id); CREATE INDEX cwf_ct_wf_epers_fk_idx ON cwf_claimtask(workflowitem_id,owner_id); CREATE INDEX cwf_ct_epers_fk_idx ON cwf_claimtask(owner_id); CREATE INDEX cwf_ct_wf_step_fk_idx ON cwf_claimtask(workflowitem_id,step_id); CREATE INDEX cwf_ct_wf_step_act_fk_idx ON cwf_claimtask(workflowitem_id,step_id,action_id); CREATE INDEX cwf_ct_wf_st_ac_ep_fk_idx ON cwf_claimtask(workflowitem_id,step_id,action_id,owner_id); CREATE TABLE cwf_in_progress_user ( in_progress_user_id INTEGER PRIMARY KEY, workflowitem_id integer REFERENCES cwf_workflowitem(workflowitem_id), user_id integer REFERENCES eperson(eperson_id), finished NUMBER(1) ); ALTER TABLE cwf_in_progress_user ADD CONSTRAINT cwf_in_progress_user_unique UNIQUE (workflowitem_id, user_id); CREATE INDEX cwf_ipu_wf_fk_idx ON cwf_in_progress_user(workflowitem_id); CREATE INDEX cwf_ipu_epers_fk_idx ON cwf_in_progress_user(user_id); -- TODO: it seems like this index is already created by the 'unique' constraint in the table creation -- CREATE INDEX xmlwf_ipu_wf_epers_fk_idx ON xmlwf_in_progress_user(workflowitem_id,user_id);
<filename>datafiles/schemas/inno_b.sql DROP TABLE IF EXISTS inno_b; CREATE TABLE IF NOT EXISTS innodb_compact2 ( id INT AUTO_INCREMENT PRIMARY KEY, username VARCHAR(100) NOT NULL, userlastname VARCHAR(77) , email VARCHAR(100), sex ENUM('Male', 'Female') NOT NULL, interest ENUM('Male', 'Female','Wookie','Noneofyourbusiness') NOT NULL, birthdate TIMESTAMP, favedate TIMESTAMP ) ENGINE=InnoDB;
<gh_stars>1-10 -- Based on the information in the below fits file -- spAll-master.fits create table catalogdb.sdssv_boss_spall ( programname text, -- format = '12a' chunk text, -- format = '17a' survey text, -- format = '7A' platequality text, -- format = '4a' platesn2 real, -- format = 'e' deredsn2 real, -- format = 'e' primtarget integer, -- format = 'j' sectarget integer, -- format = 'j' lambda_eff real, -- format = 'e' bluefiber integer, -- format = 'j' zoffset real, -- format = 'e' xfocal real, -- format = 'e' yfocal real, -- format = 'e' specprimary smallint, -- format = 'b' specboss smallint, -- format = 'b' boss_specobj_id integer, -- format = 'j' nspecobs smallint, -- format = 'i' calibflux real[5], -- format = '5e' calibflux_ivar real[5], -- format = '5e' gaia_bp real, -- format = 'e' gaia_rp real, -- format = 'e' gaia_g real, -- format = 'e' firstcarton text, -- format = '48a' mag real[5], -- format = '5e' plate smallint, -- format = 'i' designid smallint, -- format = 'I' nexp smallint, -- format = 'i' exptime smallint, -- format = 'i' airmass real, -- format = 'e' healpix integer, -- format = 'J' healpixgrp smallint, -- format = 'I' healpix_dir text, -- format = '68A' mjd_final real, -- format = 'E' mjd_list text, -- format = '41A' tai_list text, -- format = '68A' catalogid bigint, -- format = 'k' sdssv_boss_target0 bigint, -- format = 'k' field integer, -- format = 'j' tile integer, -- format = 'j' mjd integer, -- format = 'j' fiberid integer, -- format = 'j' run2d text, -- format = '6a' run1d text, -- format = '6a' objtype text, -- format = '16a' plug_ra double precision, -- format = 'd' plug_dec double precision, -- format = 'd' class text, -- format = '6a' subclass text, -- format = '21a' z real, -- format = 'e' z_err real, -- format = 'e' rchi2 real, -- format = 'e' dof integer, -- format = 'j' rchi2diff real, -- format = 'e' tfile text, -- format = '24a' tcolumn integer[10], -- format = '10j' npoly integer, -- format = 'j' theta real[10], -- format = '10e' vdisp real, -- format = 'e' vdisp_err real, -- format = 'e' vdispz real, -- format = 'e' vdispz_err real, -- format = 'e' vdispchi2 real, -- format = 'e' vdispnpix real, -- format = 'e' vdispdof integer, -- format = 'j' wavemin real, -- format = 'e' wavemax real, -- format = 'e' wcoverage real, -- format = 'e' zwarning integer, -- format = 'j' sn_median real[5], -- format = '5e' sn_median_all real, -- format = 'e' chi68p real, -- format = 'e' fracnsigma real[10], -- format = '10e' fracnsighi real[10], -- format = '10e' fracnsiglo real[10], -- format = '10e' spectroflux real[5], -- format = '5e' spectroflux_ivar real[5], -- format = '5e' spectrosynflux real[5], -- format = '5e' spectrosynflux_ivar real[5], -- format = '5e' spectroskyflux real[5], -- format = '5e' anyandmask integer, -- format = 'j' anyormask integer, -- format = 'j' spec1_g real, -- format = 'e' spec1_r real, -- format = 'e' spec1_i real, -- format = 'e' elodie_filename text, -- format = '16a' elodie_object text, -- format = '9a' elodie_sptype text, -- format = '12a' elodie_bv real, -- format = 'e' elodie_teff real, -- format = 'e' elodie_logg real, -- format = 'e' elodie_feh real, -- format = 'e' elodie_z real, -- format = 'e' elodie_z_err real, -- format = 'e' elodie_z_modelerr real, -- format = 'e' elodie_rchi2 real, -- format = 'e' elodie_dof integer, -- format = 'j' z_noqso real, -- format = 'e' z_err_noqso real, -- format = 'e' znum_noqso integer, -- format = 'j' zwarning_noqso integer, -- format = 'j' class_noqso text, -- format = '6a' subclass_noqso text, -- format = '21a' rchi2diff_noqso real, -- format = 'e' specobjid bigint -- format = 'k' );
-- Kyaru -- Author: liuxi, chjimmy -------------------------------------------------------------- INSERT INTO LocalizedText (Language, Tag, Text) VALUES ('zh_Hant_HK', 'LOC_AGENDA_PCR_KYARU_NAME', '傲嬌的貓咪' ), ('zh_Hant_HK', 'LOC_AGENDA_PCR_KYARU_DESCRIPTION', '喜歡幸福快樂的文明,討厭幸福度低的文明。' ), ('zh_Hant_HK', 'LOC_DIPLO_MODIFIER_KYARU_HIGH_HAPPINESS', '凱留喜歡公民快樂幸福的文明' ), ('zh_Hant_HK', 'LOC_DIPLO_MODIFIER_KYARU_LOW_HAPPINESS', '凱留討厭公民不高興的文明' ), ('zh_Hant_HK', 'LOC_DIPLO_KUDO_EXIT_LEADER_PCR_KYARU_ANY', '誒?你問我……為什麼要在公會的外面看你?[NEWLINE]真是的……你們公會在幹什麼我才沒有感興趣呢,我可是一點都沒有喜歡你哦?' ), ('zh_Hant_HK', 'LOC_DIPLO_WARNING_EXIT_LEADER_PCR_KYARU_ANY', '搞什麼嘛…你的公會這麼無趣,大家生活的如此辛苦,早晚有一天所有人都會離你而去!' ),/* Kyaru Scene 1 */ ('zh_Hant_HK', 'LOC_DIPLO_FIRST_MEET_LEADER_PCR_KYARU_ANY', '那個…你,你,你好!今、今天天氣真好呢♪[NEWLINE]那個……好,好巧啊!你在這裡做什麼呢?' ),/* Kyaru Scene 1 */ ('zh_Hant_HK', 'LOC_DIPLO_FIRST_MEET_VISIT_RECIPIENT_LEADER_PCR_KYARU_ANY', '誒?你想問路?你迷路了?……好,我改變主意了,[NEWLINE]我來給你帶路。有困難的時候就該互相幫助~對吧?' ),/* Kyaru Scene 1 */ ('zh_Hant_HK', 'LOC_DIPLO_FIRST_MEET_NEAR_INITIATOR_POSITIVE_LEADER_PCR_KYARU_ANY', '(呵呵呵,真是笨蛋……不知不覺之間,你就引狼入室了哦。多學學懷疑他人吧,不然這代價會有點高哦。)' ),/* Kyaru Scene 1 */ ('zh_Hant_HK', 'LOC_DIPLO_FIRST_MEET_NO_MANS_INFO_EXCHANGE_LEADER_PCR_KYARU_ANY', '(啊,這說不定是個好機會。知道了這傢伙的落腳之處,然後我也住在附近,就可以不分晝夜的監視他了。)' ),/* Kyaru Scene 8 */ ('zh_Hant_HK', 'LOC_DIPLO_GREETING_LEADER_PCR_KYARU_ANY', '喵!?嚇我一跳~[NEWLINE]抱歉……因為我剛才太專心了,好像沒有聽到周圍的聲音。' ),/* Kyaru Scene 3 */ ('zh_Hant_HK', 'LOC_DIPLO_ACCEPT_DELEGATION_FROM_HUMAN_LEADER_PCR_KYARU_ANY', '走這條小路,出了那個門就能到蘭德索爾的市區了。[NEWLINE]我陪你一起走過去吧,真是的……' ),/* Kyaru Scene 3 */ ('zh_Hant_HK', 'LOC_DIPLO_REJECT_DELEGATION_FROM_HUMAN_LEADER_PCR_KYARU_ANY', '不行,就算你要散步,也要挑挑地方啊。[NEWLINE]在我這裡亂晃的話,就會被王宮騎士團抓起來哦。' ), ('zh_Hant_HK', 'LOC_DIPLO_DELEGATION_FROM_AI_LEADER_PCR_KYARU_ANY', '我派王宮騎士團的代表給您帶去了一些魔法飾品,還有一些宮殿裡的小貓咪,你的公會會接納她們的吧?' ),/* Kyaru Scene 8 */ ('zh_Hant_HK', 'LOC_DIPLO_ACCEPT_DECLARE_FRIEND_FROM_HUMAN_LEADER_PCR_KYARU_ANY', '等下,不要摸我的頭!?為,為什麼要對我那麼溫柔啊?[NEWLINE]不,我倒是很高興啦……' ),/* Kyaru Scene 8 */ ('zh_Hant_HK', 'LOC_DIPLO_REJECT_DECLARE_FRIEND_FROM_HUMAN_LEADER_PCR_KYARU_ANY', '你幹嘛擅自覺得我們關係很好啊,我和你應該只見過幾次而已吧!?' ), ('zh_Hant_HK', 'LOC_DIPLO_DECLARE_FRIEND_FROM_AI_LEADER_PCR_KYARU_ANY', '感覺好幸福啊……這大概也是因為有你在吧。所以,那個……' ), ('zh_Hant_HK', 'LOC_DIPLO_ACCEPT_DECLARE_FRIEND_FROM_AI_LEADER_PCR_KYARU_ANY', '那個,謝……沒,沒什麼!' ),/* Kyaru Scene 1 */ ('zh_Hant_HK', 'LOC_DIPLO_REJECT_DECLARE_FRIEND_FROM_AI_LEADER_PCR_KYARU_ANY', '搞什麼嘛,信不信我殺了你!?' ), ('zh_Hant_HK', 'LOC_DIPLO_MAKE_ALLIANCE_FROM_AI_LEADER_PCR_KYARU_ANY', '你,你看到了對吧,我秘密進行的魔法特訓。既然如此,你也要陪我一起訓練!' ), ('zh_Hant_HK', 'LOC_DIPLO_ACCEPT_MAKE_DEAL_FROM_AI_LEADER_PCR_KYARU_ANY', '哼哼♪ 這些可都是我精心挑選的。' ), ('zh_Hant_HK', 'LOC_DIPLO_REJECT_MAKE_DEAL_FROM_AI_LEADER_PCR_KYARU_ANY', '誒!?你…你說裡面有蟲子?' ),/* Kyaru Scene 1 */ ('zh_Hant_HK', 'LOC_DIPLO_DENOUNCE_FROM_HUMAN_LEADER_PCR_KYARU_ANY', '你可不要說什麼奇怪的話,不准亂開玩笑,不然我殺掉你哦!' ), ('zh_Hant_HK', 'LOC_DIPLO_DENOUNCE_FROM_AI_LEADER_PCR_KYARU_ANY', '你和你的公會又骯髒又粗俗…啊呀!別過來!敢靠近我殺了你哦![NEWLINE](譴責你)' ), ('zh_Hant_HK', 'LOC_DIPLO_DECLARE_WAR_FROM_HUMAN_LEADER_PCR_KYARU_ANY', '你這傢伙……已經做好覺悟了嗎?格林炸裂!' ),/* Kyaru Scene 4 */ ('zh_Hant_HK', 'LOC_DIPLO_DECLARE_WAR_FROM_AI_LEADER_PCR_KYARU_ANY', '啊,煩死了!你這傢伙能不能去死啊![NEWLINE]做好覺悟了嗎?格林炸裂!' ),/* Kyaru Scene 4 */ ('zh_Hant_HK', 'LOC_DIPLO_MAKE_PEACE_AI_ACCEPT_DEAL_LEADER_PCR_KYARU_ANY', '哼,我就姑且感謝你一下吧。[NEWLINE]我可是記住你的臉了。下次再讓我見到你,我可要好好算算這次這筆賬。' ),/* Kyaru Scene 4 */ ('zh_Hant_HK', 'LOC_DIPLO_MAKE_PEACE_AI_REFUSE_DEAL_LEADER_PCR_KYARU_ANY', '這就要來和解嗎?但是很遺憾,我才不相信他人的親切!' ), ('zh_Hant_HK', 'LOC_DIPLO_MAKE_PEACE_FROM_AI_LEADER_PCR_KYARU_ANY', '已經…夠了吧……再這樣下去對我們都沒有好處。難不成你真想讓我殺了你?' ),/* Act 5 Scene 4 */ ('zh_Hant_HK', 'LOC_DIPLO_DEFEAT_FROM_AI_LEADER_PCR_KYARU_ANY', '我……我會聽話的……所以,請別再折磨我了……' ),/* Act 5 Scene 4 */ ('zh_Hant_HK', 'LOC_DIPLO_DEFEAT_FROM_HUMAN_LEADER_PCR_KYARU_ANY', '我……我會聽話的……所以,請別再折磨我了……' ),/* Kyaru Scene 4 */ ('zh_Hant_HK', 'LOC_DIPLO_WARNING_TOO_MANY_TROOPS_NEAR_ME_LEADER_PCR_KYARU_ANY', '你,你幹什麼?在我的邊境放這麼多軍隊,想打架嗎?[NEWLINE]想打一架的話,我很樂意奉陪!' ),/* Kyaru Scene 1 */ ('zh_Hant_HK', 'LOC_DIPLO_WARNING_TOO_MANY_TROOPS_NEAR_ME_AI_RESPONSE_POSITIVE_LEADER_PCR_KYARU_ANY', '誒?你問我,找你有什麼事?還有……是不是軍隊一直在跟著你?[NEWLINE]不不,你在說什麼?我才沒有在跟蹤你呢~你是不是自我意識過剩啊?' ),/* Kyaru Scene 1 */ ('zh_Hant_HK', 'LOC_DIPLO_WARNING_TOO_MANY_TROOPS_NEAR_ME_AI_RESPONSE_NEGATIVE_LEADER_PCR_KYARU_ANY', '不是吧,被發現了?我的跟蹤明明是完美的!?[NEWLINE]事到如今,只能殺掉你了吧……已經做好覺悟了嗎?' ), ('zh_Hant_HK', 'LOC_DIPLO_WARNING_DONT_SETTLE_NEAR_ME_AI_LEADER_PCR_KYARU_ANY', '你的城市太離得近了!不許你離我們的公會這麼靠近,聽到沒有?' ),/* Kyaru Scene 4 */ ('zh_Hant_HK', 'LOC_DIPLO_WARNING_DONT_SETTLE_NEAR_ME_AI_RESPONSE_POSITIVE_LEADER_PCR_KYARU_ANY', '嗯?這麼說來,確實是這樣的……我就姑且先說一聲抱歉吧。' ),/* Kyaru Scene 4 */ ('zh_Hant_HK', 'LOC_DIPLO_WARNING_DONT_SETTLE_NEAR_ME_AI_RESPONSE_NEGATIVE_LEADER_PCR_KYARU_ANY', '別管我!這根本就是多管閒事,笨蛋!' ),/* Kyaru Scene 1 */ ('zh_Hant_HK', 'LOC_DIPLO_WARNING_DONT_SETTLE_NEAR_ME_HUMAN_RESPONSE_POSITIVE_LEADER_PCR_KYARU_ANY', '嗯嗯,明白就好♪' ),/* Kyaru Scene 1 */ ('zh_Hant_HK', 'LOC_DIPLO_WARNING_DONT_SETTLE_NEAR_ME_HUMAN_RESPONSE_NEGATIVE_LEADER_PCR_KYARU_ANY', '搞什麼嘛,信不信我殺了你!?' ),/* Kyaru Scene 1 */ ('zh_Hant_HK', 'LOC_DIPLO_WARNING_STOP_SPYING_ON_ME_AI_RESPONSE_NEGATIVE_LEADER_PCR_KYARU_ANY', '不不,你在說什麼?我才沒有在監視你呢~你是不是自我意識過剩啊?' );
<gh_stars>1-10 -- Any app on "Home" is always featured. -- On category browse pages the top three apps with 16px icons are featured. update download_sources set name = 'mkt-category-featured' where name = 'mkt-featured'; -- Add separate ones for /apps/. insert into download_sources (name, type, created) values ('mkt-browse', 'full', NOW()), ('mkt-browse-featured', 'full', NOW());
<filename>siremis/modules/contact/mod.uninstall.sql DROP TABLE IF EXISTS `contact`; DROP TABLE IF EXISTS `contact_type`;
-- @testpoint: 创建行存表以及行存表Gin索引 drop table if exists table_t3; create table table_t3(a int, b text); DROP INDEX if exists gin_test; create index cgin_test on table_t3 using gin(to_tsvector('ngram', b)); DROP INDEX if exists gin_test; drop table if exists table_t3;
<filename>database/web-innomedic.sql # Host: localhost (Version 8.0.17) # Date: 2020-07-02 10:33:47 # Generator: MySQL-Front 6.0 (Build 2.20) # # Structure for table "t_areas" # DROP TABLE IF EXISTS `t_areas`; CREATE TABLE `t_areas` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `icon` varchar(255) DEFAULT NULL, `description` text, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_areas" # INSERT INTO `t_areas` VALUES (1,'\r\nOdontología','icon-dental','Consiste en solicitar al paciente que, tras una inspiración máxima, expulse todo el aire de sus pulmones durante el tiempo que necesite para ello. Permite la medición de los llamados “volúmenes estáticos”.'),(2,'Medicina','icon-medicine','En Medicina estudian la prevención, el diagnóstico, el pronóstico, el tratamiento y el alivio de las enfermedades y la prevención de sus secuelas; y las prácticas clínica, familiar y comunitaria o las acciones sociales en salud.'),(3,'Terapia física ','fas fa-hiking fa-lg','Nuestra experiencia en este servicio permite que nuestros profesionales altamente calificados puedan realizar el tratamiento de los pacientes con limitaciones funcionales agudas o crónicas, que se presentan como resultado de enfermedades o lesiones.'),(4,'Radiología','fas fa-file-prescription fa-lg','Para lograr un diagnóstico acertado, esta especialidad se encarga de generar imágenes del interior del cuerpo utilizando Rayos X, Ultrasonido y Campos Magnéticos.'),(5,'Triaje','fa fa-medkit fa-lg','En triage es un sistema de ​selección y clasificación de pacientes en los servicios de urgencia, basado en sus necesidades terapéuticas y los recursos disponibles para atenderlo.'),(6,'Electrocardiograma','fa fa-file-medical-alt fa-lg','Un electrocardiograma es un procedimiento simple e indoloro que mide la actividad eléctrica del corazón. Cada vez que el corazón late, una señal eléctrica circula a través de él. Un electrocardiograma muestra si su corazón está latiendo a un ritmo y con una fuerza normal. También muestra el tamaño y la posición de las cámaras del corazón. Un electrocardiograma anormal puede ser un signo de daño o enfermedad del corazón.'),(7,'Laboratorio','icon-lab','El laboratorio tiene un historial superior de desempeño de alta calidad y está dedicado a proporcionar un servicio preciso, oportuno y rentable a nuestros médicos, sus pacientes y la comunidad en general.'),(8,'Cardiología','icon-cardiology','Nuestra especialidad de Cardiología se centra en el diagnóstico, tratamiento y prevención de problemas de salud relacionados con el corazón, las arterias y venas que componen el sistema cardiovascular.'),(9,'Oftalmología','fas fa-glasses fa-lg','Esta especialidad esta encargada del tratamiento de las enfermedades de los ojos, incluyendo el globo ocular, su musculatura, el sistema lagrimal y los párpados.'),(10,'Audiometría','fa fa-stethoscope fa-lg','La audiometría es una prueba que evalúa el funcionamiento del sistema auditivo, que permite determinar la capacidad de una persona para escuchar los sonidos y la fase del proceso de audición que está alterada.'),(11,'Espirometría','fas fa-head-side-cough-slash fa-lg','Consiste en solicitar al paciente que, tras una inspiración máxima, expulse todo el aire de sus pulmones durante el tiempo que necesite para ello. Permite la medición de los llamados “volúmenes estáticos”, por lo que obtendremos algunos de los siguientes volúmenes y capacidades.'),(12,'Psicología','icon-brain','Brindamos una gama completa de servicios de salud mental con diferentes niveles de intensidad.'); # # Structure for table "t_blog" # DROP TABLE IF EXISTS `t_blog`; CREATE TABLE `t_blog` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `created` datetime DEFAULT '0000-00-00 00:00:00', `img` varchar(255) DEFAULT NULL, `estado` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_blog" # # # Structure for table "t_busqueda" # DROP TABLE IF EXISTS `t_busqueda`; CREATE TABLE `t_busqueda` ( `Id` int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "t_busqueda" # # # Structure for table "t_categoria_empleado" # DROP TABLE IF EXISTS `t_categoria_empleado`; CREATE TABLE `t_categoria_empleado` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `categoria` varchar(255) DEFAULT NULL, `categoria_` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8; # # Data for table "t_categoria_empleado" # INSERT INTO `t_categoria_empleado` VALUES (1,'Coordinador Médico','CoordinadorMédico'),(2,'Médico Auditor','MédicoAuditor'),(4,'Licenciado en Enfermeria','LicenciadoenEnfermeria'),(6,'CAOHC y NIOSH','CAOHCyNIOSH'),(10,'Licenciado en Psicología','LicenciadoenPsicología'),(11,'Médico Auditor','MédicoAuditor'),(12,'Médico Cardiólogo','MédicoCardiólogo'),(13,'Médico Neumólogo','MédicoNeumólogo'),(14,'Médico Oftalmólogo','MédicoOftalmólogo'),(15,'Médico Ocupacional','MédicoOcupacional'),(16,'Médico Otorrinolaringólogo','MédicoOtorrinolaringólogo'),(17,'Médico Radiológo','MédicoRadiológo'),(18,'Terapia Física y Rehabilitación','TerapiaFísicayRehabilitación'); # # Structure for table "t_cita" # DROP TABLE IF EXISTS `t_cita`; CREATE TABLE `t_cita` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `phone` varchar(255) DEFAULT NULL, `time` varchar(255) DEFAULT NULL, `date` datetime DEFAULT '0000-00-00 00:00:00', `service` varchar(255) DEFAULT NULL, `age` varchar(255) DEFAULT NULL, `message` text, `employe` varchar(255) DEFAULT NULL, `ruc` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_cita" # INSERT INTO `t_cita` VALUES (1,'Web-delete','<EMAIL>','123456734',NULL,'2020-06-09 11:16:57',NULL,NULL,'edwqdqqqqqqqqqqqqqqqqqqqqqqqqqqqq','ESCUDERO HUILLCAMASCCO EVARISTO','10727571499'),(2,'Web-delete','<EMAIL>','123456789',NULL,'2020-06-09 11:18:17',NULL,NULL,'hola deseo que se contacten conmigo por whasapt','ESCUDERO HUILLCAMASCCO EVARISTO','10727571499'),(3,'dwdwdw','<EMAIL>','',NULL,'2020-06-09 11:44:13',NULL,NULL,'','',''),(4,'dwqdqwdqwdwqd','<EMAIL>','',NULL,'2020-06-09 11:46:02',NULL,NULL,'dwqddd','',''),(5,'evaristo <NAME>','<EMAIL>','924543121',NULL,'2020-06-09 12:19:31',NULL,NULL,'dsdwdwdwdwdwdwdqwd dwqdwqdwqd','ESCUDERO HUILLCAMASCCO EVARISTO','10727571499'),(6,'dwdw','<EMAIL>','234567331',NULL,'2020-06-09 05:46:00',NULL,NULL,'dwdqwdqwdddqwdwqdwdwqdwqdwdwdw','ESCUDERO HUILLCAMASCCO EVARISTO','10727571499'),(7,'fewfewf','<EMAIL>','123456789',NULL,'2020-06-11 09:35:39',NULL,NULL,'w3ffwf fwf wwdwdwdwd','ESCUDERO HUILLCAMASCCO EVARISTO','10727571499'),(8,'sqsqwsdqwd','<EMAIL>','123456789',NULL,'2020-06-11 09:37:51',NULL,NULL,'dwqqqqqqqqqqqqqqqqqqqqqqqqqqq','ESCUDERO HUILLCAMASCCO EVARISTO','10727571499'),(9,'Web-delete','<EMAIL>','213456890',NULL,'2020-06-11 09:44:01',NULL,NULL,'er2wquikjhgf fefe fewf ewff fewfewfwefwef','ESCUDERO HUILLCAMASCCO EVARISTO','10727571499'),(10,'<NAME>','<EMAIL>','924543121',NULL,'2020-06-11 10:16:41',NULL,NULL,'Buenas tardes deswo que se comuniquen conmigo','<NAME>','10764079081'); # # Structure for table "t_clientes_empresas" # DROP TABLE IF EXISTS `t_clientes_empresas`; CREATE TABLE `t_clientes_empresas` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `description` text, `img` varchar(255) DEFAULT NULL, `subtitle` varchar(255) DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `status` int(11) DEFAULT '0', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_clientes_empresas" # INSERT INTO `t_clientes_empresas` VALUES (1,'Savar ','Cooporación Logística','special-photo-01.png','Logística','http://www.savar.com.pe/websavar/new/principal.php',1),(2,'Ingeco','Ingeniería de la construcción','special-photo-02.png','Ingeniería','http://ingeco.com.pe/',1),(3,'Insn','Instituto nacional de salud del niño','special-photo-03.png','Salud','http://www.insn.gob.pe/',1),(4,'Sat','Servicio de administración tributaria de Lima','special-photo-04.png','Administración','https://www.sat.gob.pe/Websitev9',1),(5,'McDonald\'s','McDonald\'s es una cadena de restaurantes de comida rápida estadounidense','mcdonalds-logo.png','Cadena de restaurantes','https://www.mcdonalds.com.pe/',1),(6,'Club de Regatas ','El Club de Regatas \"Lima\", es una asociación civil no lucrativa de la ciudad de Lima, Perú. ','club-regatas.png','Deporte','https://www.crl.pe/',1),(7,'Gelarti',' <NAME>','gelarti.png','Heladeria','http://www.gelarti.com.pe/',1),(8,'Creditex','Creditex, la empresa textil con mayor integración vertical en el Perú.','Creditex.png','Textil ','http://www.creditex.com.pe/',1),(9,'Securitas','En Securitas Perú estamos preparados para brindarles Servicios de Protección','securitas.png','Protección ','https://www.securitasperu.com/',1),(10,'Cesel','CESEL S.A. es una empresa consultora con 45 años desarrollando consultoría...','cesel.png','Consultora ','http://www.cesel.com.pe/',1),(11,'Odisea',' Empresa líder en Prevención de Pérdidas y Riesgos del mercado peruano..','odisea.png','Seguridad ','http://www.grupoodisea.com.pe/',1),(12,'Falabella','Banco Falabella es un banco perteneciente al grupo Solari ...','falabella.png','Banco ','https://www.bancofalabella.pe/home/',1),(13,'Alteliza','Especialistas en Limpieza, Saneamiento y Administración de Instalaciones','alteliza.png','Alteliza Limpieza, saneamiento y mantenimiento.','http://www.alteliza.com.pe/',1),(14,'Americatel','<NAME> es una empresa de telecomunicaciones y tecnologías de la información del Grupo Entel','americatel.png','Telecomunicaciones y tecnologías de la información.','https://www.americatel.com.pe/',1),(15,'Adex','ADEX es el gremio empresarial líder del comercio exterior peruano, trabaja por el desarrollo del país y promoción de las exportaciones peruanas','asociaciondeexportadoresadex.png','Asociación de Exportadores ','https://www.adexperu.org.pe/',1),(16,'c',NULL,NULL,NULL,NULL,2),(17,'sc',NULL,NULL,NULL,NULL,2),(18,'sc',NULL,NULL,NULL,NULL,2),(19,'s',NULL,NULL,NULL,NULL,2),(20,'cs',NULL,NULL,NULL,NULL,2),(21,'cs',NULL,NULL,NULL,NULL,2),(22,'c',NULL,NULL,NULL,NULL,2),(23,'sc',NULL,NULL,NULL,NULL,2),(24,'sc',NULL,NULL,NULL,NULL,2),(25,'sc',NULL,NULL,NULL,NULL,2),(26,'s',NULL,NULL,NULL,NULL,2),(27,'c',NULL,NULL,NULL,NULL,2),(28,'sc',NULL,NULL,NULL,NULL,2),(29,'s',NULL,NULL,NULL,NULL,2),(30,'c',NULL,NULL,NULL,NULL,2),(31,'sc',NULL,NULL,NULL,NULL,2); # # Structure for table "t_consultorias" # DROP TABLE IF EXISTS `t_consultorias`; CREATE TABLE `t_consultorias` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `img` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `img_small` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_consultorias" # INSERT INTO `t_consultorias` VALUES (1,'slider-gallery-00.jpg','Admisión','slider-gallery-00-sm.jpg'),(2,'slider-gallery-01.jpg','Medicina','slider-gallery-01-sm.jpg'),(4,'slider-gallery-07.jpg','Audiometría','slider-gallery-07-sm.jpg'),(5,'slider-gallery-06.jpg','Oftalmología','slider-gallery-06-sm.jpg'),(6,'slider-gallery-08.jpg','Electrocardiograma','slider-gallery-08-sm.jpg'),(7,'slider-gallery-03.jpg','Laboratorio','slider-gallery-03-sm.jpg'),(8,'slider-gallery-05.jpg','Rayos x','slider-gallery-05-sm.jpg'),(9,'slider-gallery-04.jpg','Psicología','slider-gallery-04-sm.jpg'); # # Structure for table "t_empleado" # DROP TABLE IF EXISTS `t_empleado`; CREATE TABLE `t_empleado` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT '', `description` varchar(255) DEFAULT '', `image` varchar(255) DEFAULT '', `fecha` datetime DEFAULT '0000-00-00 00:00:00', `cip` varchar(255) DEFAULT NULL, `estado` varchar(255) DEFAULT NULL, `categoria` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_empleado" # INSERT INTO `t_empleado` VALUES (1,'<NAME> <NAME>','Coordinadora Médico ','photodos.png','0000-00-00 00:00:00','534535','2','CoordinadorMédico'),(2,'Dra. <NAME>','Médico Auditor','photouno.png','0000-00-00 00:00:00',NULL,'2','MédicoAuditor'),(3,'Dr. <NAME>','Médico Auditor','Dr. Alvaro Smelin Aguilar Montoya.png','0000-00-00 00:00:00',NULL,'2','MédicoAuditor'),(4,'Dr. <NAME>','Médico Cardiólogo','Dr. <NAME> Montoya Goicochea.png','0000-00-00 00:00:00',NULL,'1','MédicoCardiólogo'),(5,'Dr. <NAME> <NAME>','Médico Neumólogo','Dr. <NAME> Rivera Mendoza.png','0000-00-00 00:00:00',NULL,'1','MédicoNeumólogo'),(6,'Dra. <NAME>','Médico Ocupacional','Dra. <NAME>.png','0000-00-00 00:00:00',NULL,'2','MédicoOcupacional'),(7,'Dr. <NAME>','Médico Otorrinolaringólogo','Dr. <NAME>una.png','0000-00-00 00:00:00',NULL,'1','MédicoOtorrinolaringólogo'),(8,'Dra. <NAME>','Médico Oftalmólogo','Dra. C<NAME> Aquino.png','0000-00-00 00:00:00',NULL,'1','MédicoOftalmólogo'),(9,'Dr. <NAME>','Médico Radiológo','Dr. Percy Alfredo Espinal Bravo.png','0000-00-00 00:00:00',NULL,'1','MédicoRadiológo'),(10,'Lic. <NAME>','Certificado en CAOHC y NIOSH','Lic. <NAME> Briceno.png','0000-00-00 00:00:00',NULL,'1','CAOHCyNIOSH'),(11,'Lic. <NAME>','Licenciado en Psicología','phototres.png','0000-00-00 00:00:00',NULL,'2','LicenciadoenPsicología'),(12,'Lic. <NAME>','Licenciado en Psicología','phonocuatro.png','0000-00-00 00:00:00',NULL,'2','LicenciadoenPsicología'),(13,'Lic. <NAME> ','Licenciado en Enfermeria','Lic. Jaimes Bazan Jhon Brian.png','0000-00-00 00:00:00',NULL,'2','LicenciadoenEnfermeria'),(14,'Lic. <NAME> ','Licenciado en Enfermeria','Lic. Valverde Alberco Diana Carolina.png','0000-00-00 00:00:00',NULL,'2','LicenciadoenEnfermeria'),(15,'Lic. <NAME> ','Licenciado en Enfermeria','Lic. Mogollon Montero Yathya Yanina.png','0000-00-00 00:00:00',NULL,'1','LicenciadoenEnfermeria'),(16,'Lic. <NAME>','Tecnólogo Médico en Terapia Física y Rehabilitación','Lic. Cla<NAME> Quispe Porras.png','0000-00-00 00:00:00',NULL,'1','TerapiaFísicayRehabilitación'),(17,'Lic. Reynaldo Artica Vicente','Tecnólogo Médico en Laboratorio Clínico','Lic. Reynaldo Artica Vicente.png','0000-00-00 00:00:00',NULL,'2','LaboratorioClínico'),(18,'Lic. <NAME>','Tecnólogo Médico en Laboratorio Clínico','Lic. <NAME> Masias.png','0000-00-00 00:00:00',NULL,'2','LaboratorioClínico'),(19,'Lic. <NAME>','Tecnólogo Médico en Optometría Clinica','Lic. R<NAME> Yparraguirre Santander.png','0000-00-00 00:00:00',NULL,'1','LaboratorioClínico'); # # Structure for table "t_eventos" # DROP TABLE IF EXISTS `t_eventos`; CREATE TABLE `t_eventos` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `img` varchar(255) DEFAULT NULL, `status` varchar(255) DEFAULT NULL, `date` datetime DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; # # Data for table "t_eventos" # # # Structure for table "t_gallery" # DROP TABLE IF EXISTS `t_gallery`; CREATE TABLE `t_gallery` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `img_about` text, `img_about1` text, `img_about2` text, `img_about3` text, `img_about4` text, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_gallery" # INSERT INTO `t_gallery` VALUES (1,'about-01.jpg','about-02.jpg','about-03.jpg','about-04.jpg','banner-right.jpg'); # # Structure for table "t_oficina" # DROP TABLE IF EXISTS `t_oficina`; CREATE TABLE `t_oficina` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `subtitle` varchar(255) DEFAULT NULL, `desc` text, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_oficina" # INSERT INTO `t_oficina` VALUES (1,'Nuestras Áreas','Comodidades','<!--Nuestra clínica cuenta con la última generación en la tecnología, capaz de manejar todas sus necesidades.-->'); # # Structure for table "t_preguntas" # DROP TABLE IF EXISTS `t_preguntas`; CREATE TABLE `t_preguntas` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `phone` varchar(255) DEFAULT NULL, `message` text, `date` datetime DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; # # Data for table "t_preguntas" # INSERT INTO `t_preguntas` VALUES (1,'<NAME>','<EMAIL>','924543121','hola tengo una pregunta, de como realizar el mensaje de texto','2020-06-10 06:38:38'),(2,'qwertyuiolk,mjhfvdc','<EMAIL>','123456789','dqw usdhqusdhbq dcwqudnqwudwqd','2020-06-11 09:39:26'); # # Structure for table "t_preguntas_frecuentes" # DROP TABLE IF EXISTS `t_preguntas_frecuentes`; CREATE TABLE `t_preguntas_frecuentes` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `description` text, `status` int(11) DEFAULT '0', `identificador` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; # # Data for table "t_preguntas_frecuentes" # INSERT INTO `t_preguntas_frecuentes` VALUES (1,'¿Como ingresar a la plataforma web de resultados?','<p>Ingresar a la Pagina web:&nbsp;<span style=\"color: #ff0000;\"><a title=\"Innomedic International\" href=\"http://www.innomedic.pe/\" target=\"_blank\" rel=\"noopener\"><strong>www.innomedic.pe</strong></a></span> opcion <span style=\"color: #000000;\"><strong>\"En linea\"</strong></span> seguidamente ingresar a la opci&oacute;n <strong><span style=\"color: #000000;\">\"Resultados\".</span></strong><br />o caso contrario, ingresar directamente en el siguiente link:&nbsp;<span style=\"color: #ff0000;\"><strong><a title=\"Innomedic International\" href=\"http://172.16.58.3:8021/\" target=\"_blank\" rel=\"noopener\">Click aqu&iacute;!.</a></strong>&nbsp; </span>Ingresar su Usuario y Contrase&ntilde;a y la opcion <strong><span style=\"color: #000000;\">\"Ingresar\"</span></strong></p>',1,'edit1'),(2,'¿Como puedo ver los resultados de mis trabajadores?','<p>Ingresar a la Pagina web:&nbsp;<span style=\"color: #ff0000;\"><a title=\"Innomedic International\" href=\"http://www.innomedic.pe/\" target=\"_blank\" rel=\"noopener\"><strong>www.innomedic.pe</strong></a></span> opcion <span style=\"color: #000000;\"><strong>\"En linea\"</strong></span> seguidamente ingresar a la opci&oacute;n <strong><span style=\"color: #000000;\">\"Resultados\".</span></strong><br />o caso contrario, ingresar directamente en el siguiente link:&nbsp;<span style=\"color: #ff0000;\"><strong><a title=\"Innomedic International\" href=\"http://172.16.58.3:8021/\" target=\"_blank\" rel=\"noopener\">Click aqu&iacute;!.</a></strong>&nbsp; </span>Ingresar su Usuario y Contrase&ntilde;a y la opcion <strong><span style=\"color: #000000;\">\"Ingresar\",&nbsp;</span></strong><span style=\"color: #000000;\">Una vez ingresado al sistema le aparacer&aacute;<strong> \"Resultados en Linea\"</strong>&nbsp;con las opciones de busqueda como:&nbsp;<br /><strong>Fecha Inicio, Apellidos y Nombres, Formato, Empresa, Proyecto, Fecha Final, Doc. de Identidad, Aptitud, Perfil</strong> y el boton <strong>\"Buscar\"</strong>. La busqueda mas r&aacute;pida es Ingresar la fecha que ingreso del examen del trabajador, hacer Click en el boton <strong>\"Buscar\".</strong>&nbsp;Caso contrario llenar todo los filtros que sea necesario y hacer click en boton <strong>\"Buscar\".</strong></span></p>\n<p><span style=\"color: #000000;\">Una vez realizado el proceso el sistema deber&aacute; de cargar los registros de los trabajadores. Una vez cargado en el sistema hacer click en el icono de <strong>Impresora</strong>.</span></p>\n<p><span style=\"color: #000000;\">Hacer Click en <strong>Imprimir,</strong>&nbsp;guardar como <strong>PDF</strong>. </span></p>',1,'edit2'),(3,'¿Como puedo programar una cita para mis trabajadores?','<p>Ingresar a la Pagina web:&nbsp;<span style=\"color: #ff0000;\"><a title=\"Innomedic International\" href=\"http://www.innomedic.pe/\" target=\"_blank\" rel=\"noopener\"><strong>www.innomedic.pe</strong></a></span> opcion <span style=\"color: #000000;\"><strong>\"En linea\"</strong></span> seguidamente ingresar a la opci&oacute;n <strong><span style=\"color: #000000;\">\"Resultados\".</span></strong><br />o caso contrario, ingresar directamente en el siguiente link:&nbsp;<span style=\"color: #ff0000;\"><strong><a title=\"Innomedic International\" href=\"http://172.16.58.3:8021/\" target=\"_blank\" rel=\"noopener\">Click aqu&iacute;!.</a></strong>&nbsp; </span>Ingresar su Usuario y Contrase&ntilde;a y la opcion <strong><span style=\"color: #000000;\">\"Ingresar\",&nbsp;</span></strong><span style=\"color: #000000;\">Una vez ingresado al sistema le aparacer&aacute;<strong> \"Programar Cita\"</strong>&nbsp;con las opciones como:&nbsp;<br /><strong>Empresa, Fecha de Programaci&oacute;n, DNi, Apellido Paterno, Apellido Materno, Nombres, Fecha de Nacimiento, Correo Electronico, Telefono, Proyecto,Perfil,</strong><br /><strong>&Aacute;rea, Puesto( Caso contrario de no encontrar el puesto agregar \"Nuevo puesto\"), Formatos, Tipo Examen, Observaciones</strong> y el boton<strong> \"Grabar</strong>\". Una vez ingresado todo los campos requeridos hacer click en <strong>\"Grabar\",</strong> el sistema validar&aacute; los datos que se ingreso. Un ves validado se guarda en la base de datos, se muestra en al interfaz <strong>\"Citas Programadas\".</strong></span></p>',1,'edit3'); # # Structure for table "t_sede" # DROP TABLE IF EXISTS `t_sede`; CREATE TABLE `t_sede` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `maps` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_sede" # INSERT INTO `t_sede` VALUES (1,'La Victoria ',' Av. Canadá 1335 - 1339, La Victoria, Lima, Perú',NULL),(2,'San borja',' Av. Javier Prado Este 2638, San Borja, Lima, Perú',NULL); # # Structure for table "t_servicio" # DROP TABLE IF EXISTS `t_servicio`; CREATE TABLE `t_servicio` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `icon` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; # # Data for table "t_servicio" # INSERT INTO `t_servicio` VALUES (1,'Servicio Agil Y Eficaz','Contamos con avanzados sistemas de información y equipos de última tecnología que nos permite brindarte el mejor servicio.','icon-first-aid-kit'),(2,'Servicios Completos en Salud Ocupacional','Brindamos Servicios Ocupacionales del más alto nivel, cumpliendo con la normativa obligatoria vigente Nº29.783, correspondiente a la \"Ley de Seguridad y Salud en el Trabajo\".','icon-flask'),(3,'Médicos Profesionales','Médicos calificados y certificados para atención médica de calidad.','icon-doctor'); # # Structure for table "t_slider" # DROP TABLE IF EXISTS `t_slider`; CREATE TABLE `t_slider` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `title` text, `description` text, `img` varchar(255) DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `btn` varchar(255) DEFAULT NULL, `estado` int(11) DEFAULT '0', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_slider" # INSERT INTO `t_slider` VALUES (1,'LIDERES EN SALUD OCUPACIONAL','Con la filosofía de mejora continua.','slide-02.jpg',NULL,'Saber mas',1),(2,'MAS DE 7 DE AÑOS DE EXPERIENCIA','En salud ocupacional ','slide-01.jpg',NULL,'Mas Información',1),(3,'LA SEGURIDAD DE SALUD, SE INICIA AQUÍ','La salud es nuestros pacientes es nuestra prioridad','slide-03.jpg',NULL,'Saber mas',1),(4,'Aperturamos las programaciones en Linea',NULL,'slide-04.png','','Programación en Linea',2); # # Structure for table "t_static" # DROP TABLE IF EXISTS `t_static`; CREATE TABLE `t_static` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `description` text, `image` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_static" # INSERT INTO `t_static` VALUES (1,'\r\n¿Busca un especialista certificado?','¡Siempre estamos aceptando nuevos clientes! Creemos en proporcionar la mejor atención posible a todos nuestros pacientes existentes y damos la bienvenida a nuevos clientes para que prueben el servicio que tenemos para ofrecer.','banner-callus.jpg'); # # Structure for table "t_static_one" # DROP TABLE IF EXISTS `t_static_one`; CREATE TABLE `t_static_one` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `description` text, `subtitle` varchar(255) DEFAULT NULL, `created` date DEFAULT '0000-00-00', `subtitle_reser` varchar(255) DEFAULT NULL, `video` text, `img` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_static_one" # INSERT INTO `t_static_one` VALUES (1,'Clínica Innomedic International','Innomedic es una clinica con mas de 7 años de experiencia en el mercado especializado en el servicio de Salud Ocupacional, brinda servicios de calidad que nos permite garantizar el cumplimiento de todas las evaluaciones de acuerdo a la <b>ley 29783. Ley de Seguridad y Salud en el trabajo, su reglamento y modificación Ley Nº 30222.</b>','7 años de una excelencia en servicio','2012-01-13','Realizar una cotización',NULL,NULL); # # Structure for table "t_suscriptor" # DROP TABLE IF EXISTS `t_suscriptor`; CREATE TABLE `t_suscriptor` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) DEFAULT NULL, `fecha` datetime DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_suscriptor" # INSERT INTO `t_suscriptor` VALUES (1,'<EMAIL>','2020-06-09 09:14:48'),(2,'<EMAIL>','2020-06-09 09:34:11'),(3,'<EMAIL>','2020-06-09 05:45:19'),(4,'<EMAIL>','2020-06-11 10:06:35'); # # Structure for table "t_time_job" # DROP TABLE IF EXISTS `t_time_job`; CREATE TABLE `t_time_job` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `dia` varchar(255) DEFAULT NULL, `hours` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_time_job" # INSERT INTO `t_time_job` VALUES (1,'Lunes','07:00 AM - 17:00 PM'),(2,'Martes','07:00 AM - 17:00 PM'),(3,'Miercoles','07:00 AM - 17:00 PM'),(4,'Jueves','07:00 AM - 17:00 PM'),(5,'Viernes','07:00 AM - 17:00 PM'),(6,'Sabado','07:00 AM - 17:00 PM'),(7,'Domingo ','Cerrado'); # # Structure for table "t_valores" # DROP TABLE IF EXISTS `t_valores`; CREATE TABLE `t_valores` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `img` varchar(255) DEFAULT NULL, `description` text, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_valores" # INSERT INTO `t_valores` VALUES (1,'Excelencia en el servicio','icon-compassion','Demostrar cuidado y sensibilidad por los diversos antecedentes de nuestros pacientes y colegas y generosidad en nuestras comunidades.'),(2,'Profesionalismo','icon-doctor','\r\n Cómo se pronuncia\r\nAdopte el cambio, fomente la invención y permanezca continuamente a la vanguardia de los avances en salud oral por el bien de nuestros pacientes.'),(3,'Ética profesional.','icon-integrity','Adherirse a altos estándares éticos y profesionales, demostrando compromiso con nuestras responsabilidades con confianza, honestidad y respeto por todos.'),(4,'Honestidad','icon-team','Lorem ipsum dolor sit amet, consectetur adipisicing elit. Commodi fugit ipsam laudantium animi adipisci consequuntur nobis, ab maiores voluptatem reiciendis dolores minima debitis atque iure ut magnam omnis, dolore unde.'),(5,'Responsabilidad','icon-innovation ','Lorem ipsum dolor sit amet, consectetur adipisicing elit. Commodi fugit ipsam laudantium animi adipisci consequuntur nobis, ab maiores voluptatem reiciendis dolores minima debitis atque iure ut magnam omnis, dolore unde.'),(6,'Puntualidad','icon-clock2','Lorem ipsum dolor sit amet, consectetur adipisicing elit. Commodi fugit ipsam laudantium animi adipisci consequuntur nobis, ab maiores voluptatem reiciendis dolores minima debitis atque iure ut magnam omnis, dolore unde.'); # # Structure for table "t_ventajas" # DROP TABLE IF EXISTS `t_ventajas`; CREATE TABLE `t_ventajas` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT '', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_ventajas" # INSERT INTO `t_ventajas` VALUES (1,'Entrega de certificado de aptitud el mismo día.'),(2,'Placas de Rayos X digitalizada.'),(3,'Triple control de Calidad para los resultados.'),(4,'Sede: San Borja '),(5,'Precios Competitivos.'),(6,'Personal altamente Calificado.'),(7,'\nPlataforma MEDIWEB.'); # # Structure for table "t_view_service" # DROP TABLE IF EXISTS `t_view_service`; CREATE TABLE `t_view_service` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `desc` text, `img` varchar(255) DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `img_view` varchar(255) DEFAULT NULL, `icon` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_view_service" # /*!40000 ALTER TABLE `t_view_service` DISABLE KEYS */; INSERT INTO `t_view_service` VALUES (1,'Exámenes médicos ocupacionales','<ul class=\"marker-list-md\">\r\n\t<li>Evaluación médica pre ocupacional.</li>\r\n\t<li>Evaluación médica ocupacional periódica.</li>\r\n\t<li>Evaluación médica por cambio de puesto.</li>\r\n\t<li> Evaluación médica por reinserción laboral</li>\r\n\t<li> Evaluación médica post ocupacional (retiro).</li>\r\n\t<li> Evaluación médica IN HOUSE.</li>\r\n</ul>\r\n\r\n','SERVICIOS-01 (1).png',NULL,'services-01.jpg','icon-cardiology'),(5,'Monitoreos ergonómicos y de riesgos psicosociales.','Evaluaciones para identificación de factores de riesgo psicosocial y el impacto psicológico que aquellos producen en los trabajadores.\nEvaluaciones ergonómicas en los puestos de trabajo.','SERVICIOS-01 (5).png',NULL,'services-05.jpg','icon-terapevt'),(6,'Vigilancia médica','<ul class=\"marker-list-md\">\r\n\t<li>Vigilancia médica ocupacional (asesoría y supervisión).</li>\r\n\t<li>Supervisiones periódicas opinadas e inopinadas del sistema de gestión en la seguridad de la empresa.</li>\r\n\t<li>Evaluaciones de aptitud médica y psicológica para postulantes al puesto de brigadista.</li>\r\n\t<li>Capacitaciones / charlas / talleres en salud ocupacional.</li>\r\n</ul>','SERVICIOS-01 (4).png',NULL,NULL,'icon-team'),(7,'Auditorías','Evalúa el Sistema de Gestión de Seguridad y Salud en cada uno de los procesos y actividades de los colaboradores en forma sistemática con el objeto de minimizar los riesgos y corregir las desviaciones de los estándares en los que se basa el programa de control de riesgos, y proporcionar oportunidades para medir las exigencias del objetivo programado.\n','SERVICIOS-01 (2).png',NULL,'services-04.jpg','icon-pencil-writing'),(8,'Capacitaciones en salud, seguridad e higiene empresarial','El trabajador debe recibir elementos teóricos y prácticos de prevención y control de enfermedades comunes y profesionales, accidentes e incidentes y primeros auxilios, esto contribuye a la corrección de actitudes del personal en el puesto de trabajo.\n','SERVICIOS-01 (3).png',NULL,'services-03.jpg','icon-doctor'); /*!40000 ALTER TABLE `t_view_service` ENABLE KEYS */; # # Structure for table "t_visitas" # DROP TABLE IF EXISTS `t_visitas`; CREATE TABLE `t_visitas` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `fecha` datetime DEFAULT '0000-00-00 00:00:00', `direccionip` varchar(255) DEFAULT NULL, `direccionip4` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "t_visitas" # INSERT INTO `t_visitas` VALUES (1,'2020-06-09 15:56:14','192.168.0.130','3232235650'),(2,'2020-06-09 15:56:14','192.168.0.130','3232235650'),(3,'2020-06-09 15:59:04','192.168.0.130','3232235650'),(4,'2020-06-09 18:00:12','192.168.0.130','3232235650'),(5,'2020-06-10 08:18:21','192.168.0.130','3232235650'),(6,'2020-06-10 14:23:57','192.168.0.130','3232235650'),(7,'2020-06-11 08:02:58','192.168.0.130','3232235650'),(8,'2020-06-11 10:14:42','192.168.0.112','3232235632'),(9,'2020-06-11 14:01:16','192.168.0.130','3232235650'),(10,'2020-06-11 16:39:28','192.168.0.130','3232235650'),(11,'2020-06-12 08:48:24','192.168.0.130','3232235650'),(12,'2020-06-12 13:10:39','192.168.0.130','3232235650'),(13,'2020-06-12 17:19:44','192.168.0.130','3232235650'),(14,'2020-06-12 19:36:12','192.168.0.130','3232235650'),(15,'2020-06-12 19:36:25','192.168.0.130','3232235650'),(16,'2020-06-13 08:25:36','192.168.0.130','3232235650'),(17,'2020-06-13 08:37:55','192.168.0.130','3232235650'),(18,'2020-06-13 12:51:27','192.168.0.130','3232235650'),(19,'2020-06-13 16:05:19','192.168.0.130','3232235650'),(20,'2020-06-15 13:30:29','192.168.0.130','3232235650'),(21,'2020-06-22 10:09:59','192.168.0.130','3232235650'),(22,'2020-06-22 11:55:02','192.168.0.130','3232235650'),(23,'2020-06-23 09:08:57','192.168.0.130','3232235650'),(24,'2020-06-24 09:48:04','192.168.0.130','3232235650'),(25,'2020-07-01 11:10:59','192.168.0.130','3232235650'),(26,'2020-07-01 14:59:57','192.168.0.130','3232235650'),(27,'2020-07-01 16:09:58','192.168.0.130','3232235650'),(28,'2020-07-02 08:03:17','192.168.0.130','3232235650'),(29,'2020-07-02 09:03:56','192.168.0.130','3232235650'),(30,'2020-07-02 09:45:32','192.168.0.130','3232235650'); # # Structure for table "th_employe" # DROP TABLE IF EXISTS `th_employe`; CREATE TABLE `th_employe` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `address_one` varchar(255) DEFAULT NULL, `telephone` varchar(255) DEFAULT NULL, `phone_one` varchar(255) DEFAULT NULL, `facebook` varchar(255) DEFAULT NULL, `instagram` varchar(255) DEFAULT NULL, `twiter` varchar(255) DEFAULT NULL, `google` varchar(255) DEFAULT NULL, `views` text, `about` text, `sms_mail` text, `phone_emergencia` varchar(255) DEFAULT NULL, `logo` varchar(255) DEFAULT NULL, `linkedin` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; # # Data for table "th_employe" # INSERT INTO `th_employe` VALUES (1,' Av. Canadá 1335 - 1339, La Victoria, Lima, Perú','<EMAIL>',' Av. Canadá 1335 - 1339, La Victoria, Lima, Perú',' Av. <NAME> Este 2638, San Borja, Lima, Perú','(+51) 946 887 798','(+51) 914 007 682','https://es-la.facebook.com/InnomedicInternational/','https://www.instagram.com/innomedic_internacional/','https://twitter.com/Innomedic_Peru',NULL,'<h3 class=\" theme-color display-5 \">Misi&oacute;n&nbsp;</h3>\n<p class=\" text-justify \">Brindar un servicio de calidad a los colaboradores de nuestros clientes, asegur&aacute;ndonos que sean atendidos de la mejor manera y que sientan la seguridad de nuestras evaluaciones y resultados.</p>\n<h3 class=\" theme-color \">Visi&oacute;n&nbsp;</h3>\n<p class=\" text-justify \">Ser reconocidos como un centro de evaluaciones ocupacionales de prestigio gracias a la calidez de nuestro trato, el cumplimiento de los acuerdos con nuestros clientes, el recurso humano con el que contamos y la tecnolog&iacute;a e infraestructura de la que disponemos, todo esto con el respaldo de nuestros clientes.</p>\n','<p class=\"text-justify \">Innomedic es una clínica con mas de 7 a&ntilde;os de experiencia en el mercado especializado en el servicio de Salud Ocupacional, brinda servicios de calidad que nos permite garantizar el cumplimiento de todas las evaluaciones de acuerdo a la ley 29783.<strong> Ley de Seguridad y Salud en el trabajo, su reglamento&nbsp;</strong><strong>y modificaci&oacute;n Ley N&ordm; 30222.</strong></p>\n<p><strong><img style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"http://www.innomedic.pe/assets/images/content/xxxxxxxx.png\" alt=\"DIGESA\"/></strong></p>','Para recibir comunicados por correo electrónico, simplemente proporcione\r\nsu correo electrónico a continuación',NULL,'logo.png','https://www.linkedin.com/in/innomedic-international-300125ba/');
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 03, 2020 at 01:00 PM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `appointment_doctor` -- -- -------------------------------------------------------- -- -- Table structure for table `administrations` -- CREATE TABLE `administrations` ( `id` int(11) NOT NULL, `name` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `phone` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `firebase_token` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `type` int(11) NOT NULL, `type_id` int(11) DEFAULT 0, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `administrations` -- INSERT INTO `administrations` (`id`, `name`, `email`, `phone`, `password`, `remember_token`, `firebase_token`, `type`, `type_id`, `created_at`, `updated_at`) VALUES (1, 'Admin', '<EMAIL>', '01010101010', '$2y$10$ma47cwrqn1IFhHDgrqxvWeQrVMZMSmGr2jLuWSPN.i4al12UD7A/m', NULL, 'dCt4yX8Mf_TiaVU_NvJeDQ:APA91bH82T0Av-haiyH2Wxbuqz5lsn7KXYx7qQhgkLObr7GwbcqIKgWoXigJIVP9KnK283HyQjg7D_DleqyTvytvU4isroKM-BA8C_xSENfZcbi2u_MDchWBAqNf26aiZrBcOCM3WVas', 1, NULL, '2020-07-02 00:19:08', NULL), (2, '<NAME>', '<EMAIL>', '01255889966', '$2y$10$zlCZSebvR3h9yBpZv7/Y5OxPpf1gr2EUspJblilR9Vz7/ZafgdKpu', NULL, '', 2, 3, '2020-07-03 10:05:07', NULL); -- -------------------------------------------------------- -- -- Table structure for table `appointments` -- CREATE TABLE `appointments` ( `appointment_id` int(11) NOT NULL, `appointment_date` date NOT NULL, `appointment_time` time NOT NULL, `patient_id` int(11) NOT NULL, `doctor_id` int(11) NOT NULL, `status_id` int(11) NOT NULL, `appointment_read` tinyint(1) NOT NULL DEFAULT 0, `notify_read` tinyint(1) NOT NULL DEFAULT 0, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `appointments` -- INSERT INTO `appointments` (`appointment_id`, `appointment_date`, `appointment_time`, `patient_id`, `doctor_id`, `status_id`, `appointment_read`, `notify_read`, `created_at`, `updated_at`) VALUES (4, '2020-07-06', '11:04:00', 1, 2, 2, 1, 1, '2020-07-02 21:04:13', '2020-07-02 23:02:34'), (5, '2020-07-07', '17:00:00', 1, 1, 2, 1, 1, '2020-07-03 01:52:47', '2020-07-03 10:57:19'), (6, '2020-07-07', '17:52:00', 1, 1, 3, 1, 1, '2020-07-03 01:53:34', '2020-07-03 02:32:33'), (7, '2020-07-11', '07:54:00', 1, 2, 2, 1, 1, '2020-07-03 01:54:20', '2020-07-03 02:35:45'), (8, '2020-07-17', '05:55:00', 1, 2, 3, 1, 1, '2020-07-03 01:55:13', '2020-07-03 02:41:20'), (9, '2020-07-07', '10:57:00', 1, 1, 1, 1, 1, '2020-07-03 02:52:32', NULL), (10, '2020-07-10', '17:00:00', 1, 3, 2, 0, 1, '2020-07-03 10:34:58', '2020-07-03 10:47:22'); -- -------------------------------------------------------- -- -- Table structure for table `countries` -- CREATE TABLE `countries` ( `country_id` int(11) NOT NULL, `country_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `countries` -- INSERT INTO `countries` (`country_id`, `country_name`, `created_at`, `updated_at`) VALUES (1, 'Alexandria', '2020-07-01 21:33:25', NULL), (2, 'cairo', '2020-07-01 21:33:25', NULL); -- -------------------------------------------------------- -- -- Table structure for table `doctors` -- CREATE TABLE `doctors` ( `doctor_id` int(11) NOT NULL, `doctor_first_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL, `doctor_last_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL, `doctor_phone` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL, `doctor_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `specialization_id` int(11) NOT NULL, `doctor_start` time NOT NULL, `doctor_end` time NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `doctors` -- INSERT INTO `doctors` (`doctor_id`, `doctor_first_name`, `doctor_last_name`, `doctor_phone`, `doctor_email`, `specialization_id`, `doctor_start`, `doctor_end`, `created_at`, `updated_at`) VALUES (1, 'Mohamed', 'Gamal', '01066365287', '<EMAIL>', 2, '12:00:00', '18:00:00', '2020-07-02 13:50:40', NULL), (2, 'Hazwe', 'Omar', '01225588996', '<EMAIL>', 2, '08:00:00', '14:00:00', '2020-07-02 13:51:34', NULL), (3, 'Abdo', 'Moahmed', '01255889966', '<EMAIL>', 2, '12:00:00', '18:00:00', '2020-07-03 10:05:06', NULL); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `order_id` int(11) NOT NULL, `patient_id` int(11) NOT NULL, `pain_id` int(11) NOT NULL, `order_comment` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status_id` int(11) NOT NULL, `order_read` tinyint(1) NOT NULL DEFAULT 0, `notify_read` tinyint(1) NOT NULL DEFAULT 0, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `orders` -- INSERT INTO `orders` (`order_id`, `patient_id`, `pain_id`, `order_comment`, `status_id`, `order_read`, `notify_read`, `created_at`, `updated_at`) VALUES (1, 1, 9, NULL, 4, 1, 1, '2020-07-01 23:03:09', NULL), (2, 1, 4, NULL, 1, 1, 1, '2020-07-03 01:46:27', NULL), (3, 1, 4, NULL, 1, 1, 1, '2020-07-03 01:46:55', NULL), (4, 1, 4, NULL, 1, 1, 1, '2020-07-03 01:49:30', NULL), (5, 1, 4, NULL, 1, 1, 1, '2020-07-03 01:50:21', NULL), (6, 1, 3, NULL, 4, 1, 1, '2020-07-03 01:51:16', NULL), (7, 1, 1, NULL, 1, 1, 1, '2020-07-03 02:17:11', NULL), (8, 1, 1, NULL, 4, 1, 1, '2020-07-03 02:29:42', NULL), (9, 1, 1, NULL, 4, 1, 1, '2020-07-03 02:30:43', NULL); -- -------------------------------------------------------- -- -- Table structure for table `pains` -- CREATE TABLE `pains` ( `pain_id` int(11) NOT NULL, `pain_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `pains` -- INSERT INTO `pains` (`pain_id`, `pain_name`, `created_at`, `updated_at`) VALUES (1, 'Constipation', '2020-07-01 23:00:17', NULL), (2, 'Nausea', '2020-07-01 23:00:17', NULL), (3, 'Dizziness', '2020-07-01 23:00:17', NULL), (4, 'Sedation', '2020-07-01 23:00:17', NULL), (5, 'Itching', '2020-07-01 23:00:17', NULL), (6, 'Addiction', '2020-07-01 23:00:17', NULL), (7, 'Vomiting', '2020-07-01 23:00:17', NULL), (8, 'Abdominal pain', '2020-07-01 23:00:17', NULL), (9, 'Headache', '2020-07-01 23:00:17', NULL), (10, 'Dry mouth', '2020-07-01 23:00:17', NULL); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `specialization` -- CREATE TABLE `specialization` ( `specialize_id` int(11) NOT NULL, `specialize_title` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `specialize_description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `specialization` -- INSERT INTO `specialization` (`specialize_id`, `specialize_title`, `specialize_description`, `created_at`, `updated_at`) VALUES (2, 'Podiatrist', 'Podiatrists are specialists in the feet and the lower limbs', '2020-07-02 13:13:49', NULL); -- -------------------------------------------------------- -- -- Table structure for table `status` -- CREATE TABLE `status` ( `status_id` int(11) NOT NULL, `status_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `status` -- INSERT INTO `status` (`status_id`, `status_name`, `created_at`, `updated_at`) VALUES (1, 'pending', '2020-07-02 14:49:32', NULL), (2, 'accepted', '2020-07-02 14:49:32', NULL), (3, 'rejected', '2020-07-02 14:49:32', NULL), (4, 'finished', '2020-07-02 15:39:13', NULL); -- -------------------------------------------------------- -- -- Table structure for table `status_history` -- CREATE TABLE `status_history` ( `status_history_id` int(11) NOT NULL, `appointment_id` int(11) NOT NULL, `status_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `status_history` -- INSERT INTO `status_history` (`status_history_id`, `appointment_id`, `status_id`, `created_at`, `updated_at`) VALUES (1, 4, 2, '2020-07-02 23:02:34', NULL), (2, 6, 1, '2020-07-03 01:53:34', NULL), (3, 7, 1, '2020-07-03 01:54:21', NULL), (4, 8, 1, '2020-07-03 01:55:13', NULL), (5, 5, 3, '2020-07-03 02:31:41', NULL), (6, 6, 3, '2020-07-03 02:32:33', NULL), (7, 7, 2, '2020-07-03 02:34:28', NULL), (8, 7, 2, '2020-07-03 02:35:45', NULL), (9, 8, 2, '2020-07-03 02:39:32', NULL), (10, 8, 2, '2020-07-03 02:39:53', NULL), (11, 5, 1, '2020-07-03 00:40:59', NULL), (12, 8, 2, '2020-07-03 02:41:17', NULL), (13, 8, 3, '2020-07-03 02:41:20', NULL), (14, 9, 1, '2020-07-03 02:52:32', NULL), (15, 10, 1, '2020-07-03 10:34:58', NULL), (16, 10, 2, '2020-07-03 10:47:22', NULL), (17, 5, 2, '2020-07-03 10:57:19', NULL); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `first_name` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `last_name` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `phone` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `birth_of_date` date DEFAULT NULL, `gender` enum('male','female') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `country_id` int(11) DEFAULT NULL, `occupation` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `firebase_token` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `email`, `email_verified_at`, `first_name`, `last_name`, `phone`, `birth_of_date`, `gender`, `country_id`, `occupation`, `password`, `remember_token`, `firebase_token`, `created_at`, `updated_at`) VALUES (1, 'HassanGamal', '<EMAIL>', NULL, 'Hassan', 'Gamal', '01272252219', '1996-10-31', 'male', 1, 'Back End Web Developer', '$2y$10$WkcwbbYJS82NGsDm7wOveueiHBiPeVPkAfeWlB9Op4XgKVvgID/gm', 'J0Rxuse2h59SPUMZL3ILhpymw51kr80RMU3A6KNhV5vl3D0ApEEhmpoaTTRD', 'cK7GvAXHqgFVi2CiGNaS76:APA91bElvcL6IkW9h3o-enkMVxHo1kpPbEtFNRwfctj9zlSufNEl7syNGVYma2pORt5n02yQOgbgJ30knsExG01s3nVCg-sVE_-J1kSW45baz_YvOAkxfntFfGDkmET6-OIKa6JfkXXQ', '2020-07-01 09:36:26', '2020-07-01 09:36:26'), (4, 'OmarGamal', '<EMAIL>', NULL, 'Omar', 'Gamal', '01066365287', '1998-10-25', 'male', 1, 'Front End Web Developer', '$2y$10$joP2qhBoPB3vGC3tnkCvnO6H60wCP<KEY>', NULL, NULL, NULL, NULL); -- -- Indexes for dumped tables -- -- -- Indexes for table `administrations` -- ALTER TABLE `administrations` ADD PRIMARY KEY (`id`), ADD KEY `id` (`id`); -- -- Indexes for table `appointments` -- ALTER TABLE `appointments` ADD PRIMARY KEY (`appointment_id`), ADD KEY `appointment_id` (`appointment_id`), ADD KEY `patient_id` (`patient_id`), ADD KEY `doctor_id` (`doctor_id`), ADD KEY `status_id` (`status_id`); -- -- Indexes for table `countries` -- ALTER TABLE `countries` ADD PRIMARY KEY (`country_id`), ADD KEY `country_id` (`country_id`); -- -- Indexes for table `doctors` -- ALTER TABLE `doctors` ADD PRIMARY KEY (`doctor_id`), ADD KEY `doctor_id` (`doctor_id`), ADD KEY `specialization_id` (`specialization_id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`order_id`), ADD KEY `order_id` (`order_id`), ADD KEY `patient_id` (`patient_id`), ADD KEY `pain_id` (`pain_id`); -- -- Indexes for table `pains` -- ALTER TABLE `pains` ADD PRIMARY KEY (`pain_id`), ADD KEY `pain_id` (`pain_id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `specialization` -- ALTER TABLE `specialization` ADD PRIMARY KEY (`specialize_id`), ADD KEY `specialize_id` (`specialize_id`); -- -- Indexes for table `status` -- ALTER TABLE `status` ADD PRIMARY KEY (`status_id`), ADD KEY `status_id` (`status_id`); -- -- Indexes for table `status_history` -- ALTER TABLE `status_history` ADD PRIMARY KEY (`status_history_id`), ADD KEY `status_history_id` (`status_history_id`), ADD KEY `appointment_id` (`appointment_id`), ADD KEY `status_id` (`status_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`), ADD KEY `id` (`id`), ADD KEY `country_id` (`country_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `administrations` -- ALTER TABLE `administrations` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `appointments` -- ALTER TABLE `appointments` MODIFY `appointment_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `countries` -- ALTER TABLE `countries` MODIFY `country_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `doctors` -- ALTER TABLE `doctors` MODIFY `doctor_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `order_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `pains` -- ALTER TABLE `pains` MODIFY `pain_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `specialization` -- ALTER TABLE `specialization` MODIFY `specialize_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `status` -- ALTER TABLE `status` MODIFY `status_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `status_history` -- ALTER TABLE `status_history` MODIFY `status_history_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- Constraints for dumped tables -- -- -- Constraints for table `appointments` -- ALTER TABLE `appointments` ADD CONSTRAINT `appointments_ibfk_1` FOREIGN KEY (`patient_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `appointments_ibfk_2` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`doctor_id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `appointments_ibfk_3` FOREIGN KEY (`status_id`) REFERENCES `status` (`status_id`) ON DELETE NO ACTION ON UPDATE CASCADE; -- -- Constraints for table `doctors` -- ALTER TABLE `doctors` ADD CONSTRAINT `doctors_ibfk_1` FOREIGN KEY (`specialization_id`) REFERENCES `specialization` (`specialize_id`) ON DELETE NO ACTION ON UPDATE CASCADE; -- -- Constraints for table `orders` -- ALTER TABLE `orders` ADD CONSTRAINT `orders_ibfk_1` FOREIGN KEY (`patient_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `orders_ibfk_2` FOREIGN KEY (`pain_id`) REFERENCES `pains` (`pain_id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `status_history` -- ALTER TABLE `status_history` ADD CONSTRAINT `status_history_ibfk_1` FOREIGN KEY (`status_id`) REFERENCES `status` (`status_id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `status_history_ibfk_2` FOREIGN KEY (`appointment_id`) REFERENCES `appointments` (`appointment_id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `users` -- ALTER TABLE `users` ADD CONSTRAINT `users_ibfk_1` FOREIGN KEY (`country_id`) REFERENCES `countries` (`country_id`) ON DELETE NO ACTION ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 18 Okt 2017 pada 18.11 -- Versi Server: 10.1.13-MariaDB -- PHP Version: 7.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `data_gbi` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `baptisan` -- CREATE TABLE `baptisan` ( `id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `tgl_baptis` date DEFAULT NULL, `agama_sebelum` varchar(100) DEFAULT NULL, `pekerjaan` varchar(100) DEFAULT NULL, `nama_ayah` varchar(100) DEFAULT NULL, `nama_ibu` varchar(100) DEFAULT NULL, `dibaptis` varchar(100) DEFAULT NULL, `nama_gkm` varchar(100) DEFAULT NULL, `telp_gkm` varchar(100) DEFAULT NULL, `nama_km` varchar(100) DEFAULT NULL, `status` int(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `baptisan` -- INSERT INTO `baptisan` (`id`, `user_id`, `tgl_baptis`, `agama_sebelum`, `pekerjaan`, `nama_ayah`, `nama_ibu`, `dibaptis`, `nama_gkm`, `telp_gkm`, `nama_km`, `status`, `created_at`, `updated_at`) VALUES (1, 4, NULL, 'Islam', 'Pengangguran', 'Ayah asd', 'Ibu asd', 'Pendeta', 'Hendra', 'Hendra', 'Bedebah', 0, '2017-09-18 05:54:07', '2017-09-20 20:59:42'); -- -------------------------------------------------------- -- -- Struktur dari tabel `pemberkatan_nikah` -- CREATE TABLE `pemberkatan_nikah` ( `id` int(11) NOT NULL, `user_id` int(11) DEFAULT NULL, `nama_p` varchar(100) DEFAULT NULL, `tempat_lahir_p` varchar(100) DEFAULT NULL, `tgl_lahir_p` date DEFAULT NULL, `alamat_p` varchar(100) DEFAULT NULL, `telp_p` varchar(12) DEFAULT NULL, `nama_ayah_p` varchar(100) DEFAULT NULL, `nama_ibu_p` varchar(100) DEFAULT NULL, `tgl_acara` date DEFAULT NULL, `tempat` varchar(100) DEFAULT NULL, `oleh` varchar(100) DEFAULT NULL, `status` int(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `pemberkatan_nikah` -- INSERT INTO `pemberkatan_nikah` (`id`, `user_id`, `nama_p`, `tempat_lahir_p`, `tgl_lahir_p`, `alamat_p`, `telp_p`, `nama_ayah_p`, `nama_ibu_p`, `tgl_acara`, `tempat`, `oleh`, `status`, `created_at`, `updated_at`) VALUES (1, 4, 'asd', 'asdhk', '2017-09-19', 'aqwe', '12312', 'sqwe', 'asasd', '2017-09-29', 'weqwe', 'asdasd', 2, '2017-09-19 05:18:15', '2017-09-20 21:08:25'); -- -------------------------------------------------------- -- -- Struktur dari tabel `penyerahan_anak` -- CREATE TABLE `penyerahan_anak` ( `id` int(11) NOT NULL, `user_id` int(11) DEFAULT NULL, `nama_anak` varchar(100) DEFAULT NULL, `anak_ke` int(1) DEFAULT NULL, `pendeta` varchar(100) DEFAULT NULL, `satelit` varchar(100) DEFAULT NULL, `tgl_penyerahan` date DEFAULT NULL, `img` varchar(100) DEFAULT NULL, `status` int(1) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `penyerahan_anak` -- INSERT INTO `penyerahan_anak` (`id`, `user_id`, `nama_anak`, `anak_ke`, `pendeta`, `satelit`, `tgl_penyerahan`, `img`, `status`, `created_at`, `updated_at`) VALUES (3, 4, '<NAME>', 1, 'Test', 'Denpasar', '2017-10-01', '726f4d2246a1dc3e92d60c547e5b5b65.jpg', 2, '2017-09-19 01:46:08', '2017-09-19 06:24:00'), (4, 4, 'Bedebah', 2, 'asdas', 'Denpasar', '2017-09-24', '2521bbc798304cc43c352856f9641f38.jpg', 1, '2017-09-20 01:36:03', '2017-10-18 07:17:16'); -- -------------------------------------------------------- -- -- Struktur dari tabel `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `phone` varchar(12) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tempat_lahir` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama_ayah` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama_ibu` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `jenis_kelamin` int(1) DEFAULT NULL, `tgl_lahir` date DEFAULT NULL, `isActive` int(1) NOT NULL DEFAULT '1', `img` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `type` int(1) DEFAULT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data untuk tabel `users` -- INSERT INTO `users` (`id`, `name`, `email`, `password`, `phone`, `address`, `tempat_lahir`, `nama_ayah`, `nama_ibu`, `jenis_kelamin`, `tgl_lahir`, `isActive`, `img`, `type`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'admin', '<EMAIL>', <PASSWORD>', '082247464746', 'Jalan Nangka', 'Denpasar', NULL, NULL, NULL, '1990-06-06', 1, 'baced32b8004c1864a1dbb1c7f03fcfa.jpg', 1, 'Prv6tnPR777DaXP8IgoFq3J23wSaZwFan9HWYSzpphWFXmCPp26Smm16j1iP', '2017-09-13 23:02:28', '2017-09-19 05:41:39'), (2, 'Test', '<EMAIL>', <PASSWORD>C<PASSWORD>R.d<PASSWORD>', '048849847', 'Jalan Nangka', 'Denpasar', NULL, NULL, NULL, '2010-06-09', 1, NULL, 2, NULL, '2017-09-15 01:54:04', '2017-09-15 02:09:01'), (3, 'test admin', '<EMAIL>', <PASSWORD>', '0837464837', 'Jalan Nangka', 'Denpasar', NULL, NULL, NULL, '1990-06-14', 1, '947646207a54bc1d0039efbe76601b05.jpg', 1, 'K4dwFcpzGioZ5PSGt4gwdCC25xPLW43YO1XbmHiSC94pPa1TYnIEp7WVPVbi', '2017-09-16 07:13:10', '2017-09-16 07:43:44'), (4, 'Member Baru', '<EMAIL>', <PASSWORD>', '086487637', 'Jalan Raya Kematian No.666', 'Denpasar', 'Ayah Awesome', 'Ibu Awesome', 1, '2010-06-09', 1, '10d19b9b9256bf74d4350ecbf49d6cac.jpg', 2, 'BaTLGDV3ZNsXXEjH5876ZFEjWvnG503tcXTBSMuWhlF21NBsKo1bEg7wBMPo', '2017-09-16 07:53:36', '2017-09-19 02:06:00'), (7, 'I Made <NAME>', '<EMAIL>', <PASSWORD>', '082247464196', 'Jalan Raya Pemogan No.18A', 'Tabanan', 'Ayah', 'Ibu', 1, '1994-08-06', 1, NULL, 2, NULL, '2017-09-20 08:47:21', '2017-09-20 08:47:21'); -- -- Indexes for dumped tables -- -- -- Indexes for table `baptisan` -- ALTER TABLE `baptisan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `pemberkatan_nikah` -- ALTER TABLE `pemberkatan_nikah` ADD PRIMARY KEY (`id`); -- -- Indexes for table `penyerahan_anak` -- ALTER TABLE `penyerahan_anak` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`(191)); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `baptisan` -- ALTER TABLE `baptisan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `pemberkatan_nikah` -- ALTER TABLE `pemberkatan_nikah` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `penyerahan_anak` -- ALTER TABLE `penyerahan_anak` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>krachi9/Todos -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Gép: 127.0.0.1 -- Létrehozás ideje: 2020. Jún 03. 12:27 -- Kiszolgáló verziója: 10.4.11-MariaDB -- PHP verzió: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Adatbázis: `todos` -- -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `subjects` -- CREATE TABLE `subjects` ( `id` int(11) NOT NULL, `name` varchar(45) NOT NULL, `short` varchar(45) NOT NULL, `user_id` varchar(45) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- A tábla adatainak kiíratása `subjects` -- INSERT INTO `subjects` (`id`, `name`, `short`, `user_id`) VALUES (4, 'test', 'test', '4'), (5, 'Programozás', 'Prog', '4'), (6, 'Digitális technika', 'Digit', '4'), (7, 'Programozás', 'Prog', '6'), (8, 'Matek', 'Mat', '4'); -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `tasks` -- CREATE TABLE `tasks` ( `id` int(11) NOT NULL, `priority` int(11) NOT NULL, `user_id` int(11) NOT NULL, `subject_id` int(11) NOT NULL, `type` varchar(45) NOT NULL, `deadline` datetime NOT NULL, `name` varchar(45) NOT NULL, `done` tinyint(4) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- A tábla adatainak kiíratása `tasks` -- INSERT INTO `tasks` (`id`, `priority`, `user_id`, `subject_id`, `type`, `deadline`, `name`, `done`) VALUES (10, 1, 4, 4, 'Report', '2020-06-03 02:13:00', 'ZH', 0), (11, 4, 4, 4, 'Exam', '2023-03-21 12:31:00', 'Vizsga', 0), (12, 2, 4, 4, 'Assignment', '1232-01-23 13:12:00', 'Teszt', 1), (13, 4, 4, 5, 'Assignment', '2019-12-23 14:33:00', 'Beadandó', 1), (14, 5, 4, 5, 'Report', '2021-12-31 12:11:00', 'ZH', 0), (15, 5, 4, 6, 'Exam', '2020-01-31 02:12:00', 'Teszt', 1), (16, 4, 6, 7, 'Report', '2020-06-05 00:30:00', 'ZH', 0), (17, 4, 4, 8, 'Test', '2021-12-31 03:02:00', 'Vizsga', 0); -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, `salt` varchar(100) NOT NULL, `email` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- A tábla adatainak kiíratása `users` -- INSERT INTO `users` (`id`, `username`, `password`, `salt`, `email`) VALUES (4, 'test', '<PASSWORD>', '-vu&PZwXa;iA,$Vws?07', '<EMAIL>'), (5, 'asd', '<PASSWORD>', 'w2cE^\"p|aj[P!USiYp..', '<EMAIL>'), (6, 'ert', '<PASSWORD>', 'bYK\\ePNr]VgN}/_7JRO\"', '<EMAIL>'), (7, 'qwe', '<PASSWORD>', '&in8WKHkW[l}0$l~zjr!', '<EMAIL>'); -- -- Indexek a kiírt táblákhoz -- -- -- A tábla indexei `subjects` -- ALTER TABLE `subjects` ADD PRIMARY KEY (`id`); -- -- A tábla indexei `tasks` -- ALTER TABLE `tasks` ADD PRIMARY KEY (`id`); -- -- A tábla indexei `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- A kiírt táblák AUTO_INCREMENT értéke -- -- -- AUTO_INCREMENT a táblához `subjects` -- ALTER TABLE `subjects` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT a táblához `tasks` -- ALTER TABLE `tasks` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT a táblához `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>SkillsFundingAgency/DC-Alpha-EasyWrapperPaaS -- ===================================================================================================== -- Cranked by hand -- Date: 8TH JUNE 2017 -- Profile: -- Rulebase Version: ILR NCS Validation, Version 1718.01 -- ===================================================================================================== use [$(IntrajobDatabase)] go insert into [Input].[CollectionDetails] ( [CollectionDetails_Id] ,[FilePreparationDate] ,[CalendarMonth] ,[CalendarYear] ) select [CollectionDetails_Id] ,[FilePreparationDate] ,[CalendarMonth] ,[CalendarYear] from [$(FromILRDatabase)].[$(FromILRSchema)].[CollectionDetailsDenorm] CollectionDetails go insert into [Input].[NCS_OffenderAggregate] ( [NumberOfAccreditedLearningOutcomesInCustody] ,[NumberOfCareerManagementOutcomesInCustody] ,[NumberOf2ndCareerManagementOutcomesInCustody] ,[NumberOfCareerProgressionOutcomesInCustody] ,[NumberOfCustomerSatisfactionOutcomesInCustody] ,[NumberOfCustomersSeenInCustody] ,[NumberOfSustainableEmploymentOutcomesInCustody] ) select [NumberOfAccreditedLearningOutcomesInCustody] ,[NumberOfCareerManagementOutcomesInCustody] ,[NumberOf2ndCareerManagementOutcomesInCustody] ,[NumberOfCareerProgressionOutcomesInCustody] ,[NumberOfCustomerSatisfactionOutcomesInCustody] ,[NumberOfCustomersSeenInCustody] ,[NumberOfSustainableEmploymentOutcomesInCustody] from [$(FromILRDatabase)].[$(FromILRSchema)].[NCS_OffenderAggregate] go insert into [Input].[NCS_Contractor] ( [NumberOfEmployersActual] ,[NumberOfSchoolsActual] ,[TotalMonthlyInspirationSpendActual] ) select [NumberOfEmployersActual] ,[NumberOfSchoolsActual] ,[TotalMonthlyInspirationSpendActual] from [$(FromILRDatabase)].[$(FromILRSchema)].[NCS_Contractor] go insert into [Input].[Source] ( [TouchpointID] ,[UKPRN] ) select [TouchpointID] ,[UKPRN] from [$(FromILRDatabase)].[$(FromILRSchema)].[Source] go insert into [Input].[NCS_Customer] ( [CdsCustomerID] ,[CustomerType] ,[DateOfBirth] ,[DisabilityType] ,[Ethnicity] ,[EUCitizen] ,[FamilyName] ,[Gender] ,[GivenName] ,[LearningDifficulty] ,[LLAAccountNumber] ,[NINumber] ,[ParticipateResearchEvaluation] ,[TerminationOfServiceReason] ,[TouchpointCustomerID] ) select [CdsCustomerID] ,[CustomerType] ,[DateOfBirth] ,[DisabilityType] ,[Ethnicity] ,[EUCitizen] ,[FamilyName] ,[Gender] ,[GivenName] ,[LearningDifficulty] ,[LLAAccountNumber] ,[NINumber] ,[ParticipateResearchEvaluation] ,[TerminationOfServiceReason] ,[TouchpointCustomerID] from [$(FromILRDatabase)].[$(FromILRSchema)].[NCS_Customer] go insert into [Input].[NCS_CustomerContact] ( [AlternativePhoneNumber] ,[ContactPreference] ,[ContactEmail] ,[PrimaryPhoneNumber] ) select [AlternativePhoneNumber] ,[ContactPreference] ,[ContactEmail] ,[PrimaryPhoneNumber] from [$(FromILRDatabase)].[$(FromILRSchema)].[NCS_CustomerContact] go insert into [Input].[NCS_CustomerAddress] ( [AlternativePostCode] ,[HomePostcode] ) select [AlternativePostCode] ,[HomePostcode] from [$(FromILRDatabase)].[$(FromILRSchema)].[NCS_CustomerAddress] go insert into [Input].[NCS_CustomerActionPlan] ( [TouchpointCustomerID] ,[ActionPlanID] ,[BenefitType] ,[MainDeliveryType] ,[PriorityGroupL1] ,[ReferralType] ,[SessionDate] ,[SourceOfAwarenessL1] ,[SourceOfAwarenessL2] ) select [TouchpointCustomerID] ,[ActionPlanID] ,[BenefitType] ,[MainDeliveryType] ,[PriorityGroupL1] ,[ReferralType] ,[SessionDate] ,[SourceOfAwarenessL1] ,[SourceOfAwarenessL2] from [$(FromILRDatabase)].[$(FromILRSchema)].[NCS_CustomerActionPlan] go insert into [Input].[NCS_CustomerOutcome] ( [OutcomeAchieved] ,[OutcomeClaimed] ,[OutcomeEffectiveDate] ,[OutcomeID] ,[OutcomeType] ) select [OutcomeAchieved] ,[OutcomeClaimed] ,[OutcomeEffectiveDate] ,[OutcomeID] ,[OutcomeType] from [$(FromILRDatabase)].[$(FromILRSchema)].[NCS_CustomerOutcome] go insert into [Input].[NCS_CustomerPriorityGroups] ( [PriorityGroup] ) select [PriorityGroup] from [$(FromILRDatabase)].[$(FromILRSchema)].[NCS_CustomerPriorityGroups] go insert into [Input].[NCS_CustomerEducationProgression] ( [EducationAttainmentLevel] ) select [EducationAttainmentLevel] from [$(FromILRDatabase)].[$(FromILRSchema)].[NCS_CustomerEducationProgression] go insert into [Input].[NCS_CustomerEmploymentProgression] ( [EmploymentStatus] ,[LengthOfUnEmployment] ) select [EmploymentStatus] ,[LengthOfUnEmployment] from [$(FromILRDatabase)].[$(FromILRSchema)].[NCS_CustomerEmploymentProgression] go insert into [Input].[NCS_CustomerLearningProgression] ( [LearningStatus] ) select [LearningStatus] from [$(FromILRDatabase)].[$(FromILRSchema)].[NCS_CustomerLearningProgression] go
<reponame>ahsteele/ahsteele-ysod<gh_stars>0 if not exists(select * from Sites where Sites.Name = 'StackOverflow') insert into Sites( Id, TinyName,Name,LongName, Url,ImageUrl,IconUrl, DatabaseName, Tagline, TagCss, ODataEndpoint) values (1, 'so', 'StackOverflow', 'Stack Overflow', 'http://stackoverflow.com', 'http://sstatic.net/so/img/logo.png', 'http://sstatic.net/so/favicon.ico', 'StackOverflow', 'Q&A for programmers', '.post-tag{ background-color:#E0EAF1; border-bottom:1px solid #3E6D8E; border-right:1px solid #7F9FB6; color:#3E6D8E; font-size:90%; line-height:2.4; margin:2px 2px 2px 0; padding:3px 4px; text-decoration:none; white-space:nowrap; } .post-tag:hover { background-color:#3E6D8E; border-bottom:1px solid #37607D; border-right:1px solid #37607D; color:#E0EAF1; text-decoration:none;}', 'https://odata.sqlazurelabs.com/OData.svc/v0.1/rp1uiewita/StackOverflow') GO if not exists(select * from Sites where Sites.Name = 'SuperUser') insert into Sites( Id, TinyName,Name,LongName, Url,ImageUrl,IconUrl, DatabaseName, Tagline, TagCss, ODataEndpoint) values (2, 'su','SuperUser', 'Super User', 'http://superuser.com', 'http://sstatic.net/su/img/logo.png', 'http://sstatic.net/su/favicon.ico', 'SuperUser', 'Q&A for computer enthusiasts and power users', '.post-tag { -moz-border-radius:7px 7px 7px 7px; background-color:#FFFFFF; border:2px solid #14A7C6; color:#1087A4; font-size:90%; line-height:2.4; margin:2px 2px 2px 0; padding:3px 5px; text-decoration:none; white-space:nowrap; } .post-tag:visited { color:#1087A4; } .post-tag:hover { background-color:#14A7C6; border:2px solid #14A7C6; color:#F3F1D9; text-decoration:none; }', 'https://odata.sqlazurelabs.com/OData.svc/v0.1/rp1uiewita/SuperUser' ) GO if not exists(select * from Sites where Sites.Name = 'ServerFault') insert into Sites( Id, TinyName,Name,LongName, Url,ImageUrl,IconUrl, DatabaseName, Tagline, TagCss, ODataEndpoint) values (3, 'sf', 'ServerFault', 'Server Fault', 'http://serverfault.com', 'http://sstatic.net/sf/img/logo.png', 'http://sstatic.net/sf/favicon.ico', 'ServerFault', 'Q&A for system administrators and IT professionals', '.post-tag { background-color:#F3F1D9; border:1px solid #C5B849; color:#444444; font-size:90%; line-height:2.4; margin:2px 2px 2px 0; padding:3px 4px; text-decoration:none; white-space:nowrap; } .post-tag:visited { color:#444444; } .post-tag:hover { background-color:#444444; border:1px solid #444444; color:#F3F1D9; text-decoration:none }', 'https://odata.sqlazurelabs.com/OData.svc/v0.1/rp1uiewita/ServerFault') GO if not exists(select * from Sites where Sites.Name = 'Meta') insert into Sites( Id, TinyName,Name,LongName, Url,ImageUrl,IconUrl, DatabaseName, Tagline, TagCss, ODataEndpoint) values (4, 'mso', 'Meta', 'Meta Stack Overflow', 'http://meta.stackoverflow.com', 'http://sstatic.net/mso/img/logo.png','http://sstatic.net/mso/favicon.ico', 'Meta', 'Q&A about Stack Overflow, Server Fault and Super User', '.post-tag { background-color:#E7E7E7; border-bottom:1px solid #626262; border-right:1px solid #979797; color:#6F6F6F; font-size:90%; line-height:2.4; margin:2px 2px 2px 0; padding:3px 4px; text-decoration:none; white-space:nowrap; } .post-tag:visited { color:#6F6F6F; } .post-tag:hover { background-color:#626262; border-bottom:1px solid #565656; border-right:1px solid #565656; color:#E7E7E7; text-decoration:none;}', 'https://odata.sqlazurelabs.com/OData.svc/v0.1/rp1uiewita/Meta' )
SET NOCOUNT ON; /* Create Database */ IF NOT EXISTS (select * from sys.sysdatabases as s where s.name = 'DBA') BEGIN CREATE DATABASE [DBA] ON ( NAME = N'DBA', FILENAME = N'C:\MSSQL12.MSSQLSERVER\MSSQL\DATA\DBA.mdf' , SIZE = 512000KB , FILEGROWTH = 204800KB ) LOG ON ( NAME = N'DBA_log', FILENAME = N'C:\MSSQL12.MSSQLSERVER\MSSQL\DATA\DBA_log.ldf' , SIZE = 512000KB , FILEGROWTH = 200%); END GO USE DBA GO /* Create table to Store Parameter Types */ IF OBJECT_ID('[dbo].[ParamsType]') IS NULL CREATE TABLE [dbo].[ParamsType] ( [p_key] [varchar](50) NOT NULL, [p_valueExplanation] [varchar](200) NOT NULL, CONSTRAINT [pk_ParamsType] PRIMARY KEY CLUSTERED ( [p_key] ASC ) ) GO BEGIN TRY INSERT [dbo].[ParamsType] ([p_key], [p_valueExplanation]) SELECT * FROM (VALUES ('environment','Prod, Stage, QA, Dev, Test') ,('skip backup','Yes,No') ,('DefaultFullBackupDestination','Local backup directory like F:\Backups\') ) AS pt ([p_key], [p_valueExplanation]) END TRY BEGIN CATCH PRINT 'Values already exists in [dbo].[ParamsType].'; END CATCH GO -- select * from [dbo].[ParamsType] /* Create table to Store Parameter Values */ IF OBJECT_ID('[dbo].[Params]') IS NULL CREATE TABLE [dbo].[Params] ( [p_key] [varchar](50) NOT NULL, [p_value] [varchar](2048) NOT NULL, PRIMARY KEY CLUSTERED ([p_key] ASC) ) GO IF OBJECT_ID('FK_Params_ParamsType') IS NULL ALTER TABLE [dbo].[Params] WITH CHECK ADD CONSTRAINT [FK_Params_ParamsType] FOREIGN KEY([p_key]) REFERENCES [dbo].[ParamsType] ([p_key]) GO BEGIN TRY INSERT [dbo].[Params] ([p_key], [p_value]) SELECT * FROM (VALUES ('environment','Prod') ,('DefaultFullBackupDestination','F:\Backups\') ) AS pt ([p_key], [p_value]) END TRY BEGIN CATCH PRINT 'Values already added into [dbo].[Params]'; END CATCH GO -- select * from dbo.Params /* Create table for Storing Role Exceptions */ IF OBJECT_ID('[dbo].[ServerRoleMemberException]') IS NULL CREATE TABLE [dbo].[ServerRoleMemberException] ( [principal_name] [sysname] NOT NULL, [role_permission] [sysname] NOT NULL, [added_by] [sysname] NOT NULL, [startDTS] [smalldatetime] NOT NULL, [endDTS] [smalldatetime] NULL, [reason] [varchar](255) NOT NULL, [createdOn] [smalldatetime] NOT NULL, [expiredFlag] [bit] NOT NULL, CONSTRAINT [PK_ServerRoleMemberException] PRIMARY KEY CLUSTERED ( [principal_name] ASC, [role_permission] ASC ) ) ON [PRIMARY] GO IF OBJECT_ID('[dbo].[usp_AddServerRoleMemberException]') IS NULL EXEC ('CREATE PROCEDURE [dbo].[usp_AddServerRoleMemberException] AS SELECT GETDATE() AS DateToday'); GO ALTER PROCEDURE [dbo].[usp_AddServerRoleMemberException] (@p_principal_name VARCHAR(125), @p_role_permission VARCHAR(125), @p_startDTS DATETIME , @p_endDTS DATETIME, @p_reason VARCHAR(500)) AS BEGIN /* Created By: <NAME> * Created Date: 30-Apr-2018 * Purpose: To Make Data Entry into [dbo].[ServerRoleMemberException] * EXEC [dbo].[usp_AddServerRoleMemberException] DECLARE @startDTS DATETIME, @endDTS DATETIME; SELECT @startDTS = CURRENT_TIMESTAMP, @endDTS = (DATEADD(hour,24,CURRENT_TIMESTAMP)) -- 24 Hours; EXEC [dbo].[usp_AddServerRoleMemberException] @p_principal_name = 'contso\adwivedi', @p_role_permission = 'Sysadmin', @p_startDTS = @startDTS, @p_endDTS = @endDTS, @p_reason = 'For Application Setup' */ INSERT [dbo].[ServerRoleMemberException] (principal_name, role_permission, added_by, startDTS, endDTS, reason, createdOn, expiredFlag) SELECT @p_principal_name AS principal_name, @p_role_permission AS role_permission, CAST(SYSTEM_USER AS VARCHAR(125)) AS added_by, @p_startDTS AS startDTS, @p_endDTS AS endDTS, @p_reason AS reason, CURRENT_TIMESTAMP AS createdOn, expiredFlag = 0 SELECT 'Data from [ServerRoleMemberException]' as RunningQuery, principal_name, role_permission, added_by, startDTS, endDTS, reason, createdOn, expiredFlag FROM [dbo].[ServerRoleMemberException]; END GO /* Table to Store UnauthorizedPermissionsHistory */ IF OBJECT_ID('[dbo].[UnauthorizedPermissionsHistory]') IS NULL CREATE TABLE [dbo].[UnauthorizedPermissionsHistory] ( [id] [int] IDENTITY(1,1) NOT NULL, [principalName] [nvarchar](128) NOT NULL, [principalType] [nvarchar](60) NOT NULL, [rolePermission] [nvarchar](128) NOT NULL, [deletedOn] [smalldatetime] NOT NULL, CONSTRAINT [PK_UnauthorizedPermissionsHistory] PRIMARY KEY CLUSTERED ([id] ASC) ) GO IF OBJECT_ID('[dbo].[Vw_UnauthorizedServerRoleMembers]') IS NULL EXEC ('CREATE VIEW [dbo].[Vw_UnauthorizedServerRoleMembers] AS SELECT GETDATE() AS DateToday') GO ALTER VIEW [dbo].[Vw_UnauthorizedServerRoleMembers] AS /*************************************************************************************************************************************** * Created By: <NAME> * Created Date: 30-Apr-2018 * Purpose: This view returns a list of members that have been granted server-level permissions but are * not currently listed in the ServerRoleMemberException table. ***************************************************************************************************************************************/ SELECT member.name collate database_default as principal_name, member.type_desc collate database_default as type_desc, [role].name collate database_default as role_permission, 'role' as roleOrPermission FROM sys.server_principals member inner join sys.server_role_members rm on member.principal_id = rm.member_principal_id inner join sys.server_principals [role] on rm.role_principal_id = [role].principal_id where -- we're only checking server-level permissions [role].type_desc = 'SERVER_ROLE' and -- ignore sa, contso\SQL Admins, and contso\ProdSQL, Any other DBA login require sysadmin member.name not in( 'sa', 'contso\SQL Admins', 'contso\ProdSQL' ) and -- bulkadmin is OK to grant to anyone [role].name <> 'bulkadmin' and -- everything else needs an exception record not exists( select * from dbo.[ServerRoleMemberException] ex where ex.principal_name = member.name collate database_default and ex.role_permission = [role].name collate database_default ) union select pri.name as principal_name, pri.type_desc, per.permission_name as role_permission, 'permission' as roleOrPermission from sys.server_permissions per inner join sys.server_principals pri on per.grantee_principal_id = pri.principal_id and pri.name not like '##%' where -- Grants per.state = 'G' and -- sa and DBA Logins require sysadmin - ignore them pri.name not in( 'sa', 'contso\SQL Admins', 'contso\ProdSQL' ) and -- Ignore permissions we allow without an exception requirement per.permission_name not in( 'connect', 'connect sql', 'view server state', 'view any database', 'administer bulk operations' ) and -- Ignore alter trace in dev and test not ( per.permission_name = 'alter trace' and ( select lower( p_value ) from dbo.Params where p_key = 'environment' ) in( 'dev', 'test' ) ) and -- everything else needs an exception record not exists( select * from dbo.ServerRoleMemberException ex where ex.principal_name = pri.name collate database_default and ex.role_permission = per.permission_name collate database_default ); GO --select * from [dbo].[Vw_UnauthorizedServerRoleMembers] IF OBJECT_ID('dbo.usp_SecurityCheck') IS NULL EXECUTE ('CREATE PROCEDURE [dbo].[usp_SecurityCheck] AS SELECT 1 as DummyCol'); GO ALTER PROCEDURE [dbo].[usp_SecurityCheck] (@getMailOnly char(1) = 'y') AS BEGIN /******************************************************************************************************* * Created By: <NAME> * Created Date: 30-Apr-2018 * Purpose: This procedure has two major tasks related to unauthorized permissions and exceptions * 1) purges exceptions that have expired * 2) removes unauthorized permissions. * *******************************************************************************************************/ set nocount on; If (lower( @getMailOnly ) = 'y' ) Begin select * from [dbo].[Vw_UnauthorizedServerRoleMembers] Return 0 End; declare @errorFlag tinyint; declare @curExpired cursor; declare @curUnauth cursor; declare @account sysname; declare @rolePermission sysname; declare @roleOrPrmsn varchar(10 ); declare @acctType nvarchar( 60 ); declare @addedBy sysname; declare @startDate char( 16 ); declare @endDate char( 16 ); declare @sql nvarchar( 512 ); declare @logMsg nvarchar( 255 ); set @errorFlag = 0 ---------------------------------------------------------------------------------------------------- -- Set expiredFlag for expired records, then delete them -- This will ensure we can identify records in the history table that were expired by this process. ---------------------------------------------------------------------------------------------------- update dbo.ServerRoleMemberException set expiredFlag = 1 where endDTS <= getdate(); delete dbo.ServerRoleMemberException where expiredFlag = 1; ---------------------------------------------------------------------------------------------------- -- Drop unauthorized server-level permissions and log to the UnauthorizedPermissionsHistory table ---------------------------------------------------------------------------------------------------- set @curUnauth= cursor fast_forward for select principal_name, type_desc, role_permission, roleOrPermission from DBA.dbo.Vw_UnauthorizedServerRoleMembers -- Omit sa and contso\ProdSQL so we never remove permissions from these two accounts -- This is redundant because the Vw_UnauthorizedServerRoleMembers view also omits these two accounts, but -- we want redundant ensurances we do not remove these permissions. where principal_name not in( 'sa', 'contso\ProdSQL', 'contso\SQL Admins' ); open @curUnauth; fetch next from @curUnauth into @account, @acctType, @rolePermission, @roleOrPrmsn; while @@fetch_status = 0 begin insert into dbo.UnauthorizedPermissionsHistory ( principalName,principalType, rolePermission ) values( @account, @acctType, @rolePermission ); -- Log failure of insert into history table to the sql server log if @@rowCount != 1 begin raiserror( 'Error adding unauthorized permission to UnauthorizedPermissionsHistory table for account ''%s'', role ''%s''.', 16, 1, @account, @rolePermission ) with log; set @errorFlag = 1; end; -- Even if the insert into our history table fails, we still need to remove these premissions if @roleOrPrmsn = 'role' begin set @sql = 'EXEC master..sp_dropsrvrolemember @loginame = N''' + @account + ''', @rolename = N''' + @rolePermission + ''''; end else begin set @sql = 'use master; revoke ' + @rolePermission + ' to [' + @account + ']'; -- REVOKE CONTROL SERVER TO [contso\Ajay] end; --print @sql; exec( @sql ); if @@error != 0 begin raiserror( 'Error attempting to drop unauthorized permissions for account ''%s'', role ''%s''.', 16, 1, @account, @rolePermission ) with log; set @errorFlag = 1; end; fetch next from @curUnauth into @account, @acctType, @rolePermission, @roleOrPrmsn; end; if @errorFlag = 1 begin raiserror( 'One or more errors occurred in the Security Check procedure. Review the SQL Server Log for details.', 16, 1 ) with log; return 1; end; return 0; END -- procedure GO
# --- !Ups ALTER TABLE transactions ADD COLUMN archived boolean NOT NULL DEFAULT(false); # --- !Downs ALTER TABLE transactions DROP COLUMN archived;
<reponame>skrilladeville/admin<filename>database/dumps/patient_profiles.sql CREATE TABLE `patient_profiles` ( `id` INTEGER(11) NOT NULL AUTO_INCREMENT, `firstname` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL, `lastname` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL, `birthday` MEDIUMTEXT, `home_phone` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL, `cell_phone` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL, `email` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL, `health_card` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL, `emg_contact` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL, `emg_contact_phone` VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL, `archive` INTEGER(10) NOT NULL, PRIMARY KEY (`id`) )ENGINE=InnoDB AUTO_INCREMENT=144 AVG_ROW_LENGTH=284 CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci'; COMMIT; /* Data for the `patient_profiles` table (Records 1 - 125) */ INSERT INTO `patient_profiles` (`id`, `firstname`, `lastname`, `birthday`, `home_phone`, `cell_phone`, `email`, `health_card`, `emg_contact`, `emg_contact_phone`, `archive`) VALUES (6, 'Madison', 'Kaye ', '1996-10-21 00:00:00', '905-510-3322', '', '<EMAIL>', '8449828675DV', '<NAME> ', '9059315698', 0), (7, 'Paula', 'Mepham', '1973-02-05 00:00:00', '905 664 8417', '', '<EMAIL>', '5752 856 798 TG', '<NAME>', '905 634 3792', 0), (8, 'bob', 'brown', '1967-04-05 00:00:00', '540-123-4356', '', '<EMAIL>', '4325431', 'he<NAME>', '886-656-4765', 0), (10, 'David', 'Herbst-Hipgrave', '1995-12-16 00:00:00', '6476062982', '', '<EMAIL>', '1874-593-351-EJ', '<NAME>', '6478601444', 0), (11, 'Margaret', 'Solby', '1996-04-09 00:00:00', '6478601444', '', '<EMAIL>', '5629794172BF', '<NAME>', '6476062982', 0), (12, 'LAURA', 'ROGERS', '1971-07-08 00:00:00', '9055800983', '', '<EMAIL>', '4979447630 TN', 'JUST<NAME>', '2896837039', 0), (17, 'Christine', 'Kuziora', '1969-04-19 00:00:00', '905-541-6226', '', '<EMAIL>', '1043-186-517-GP', '<NAME>', '1-647-618-5123', 0), (18, 'Carolyn', 'Ross', '1964-09-28 00:00:00', '289-260-0544', '', '<EMAIL>', '3033017397 EH', '<NAME>', '905-818-0806', 0), (19, 'Adam', 'Feaver ', '1989-11-12 00:00:00', '2896831105', '', '<EMAIL>', '9535-493-911-JF', 'Tj windsor', 'Chris windsor', 0), (21, 'Murra', 'Mazza', '1943-02-08 00:00:00', '905-643-9147', '', '<EMAIL>', '1698-629-258-JE', '<NAME>', '904-643-9147', 0), (22, 'Brandon', 'Dean', '1980-02-29 00:00:00', '289-788-1629', '', '<EMAIL>', '7220037639 LA', 'Frank Lebeau', '289-824-7864', 0), (26, 'Jackson', 'Roberts', '1998-01-15 00:00:00', '289-668-2799', '', '<EMAIL>', '6143440669CD', 'Samantha Roberts', '905-329-6902', 0), (27, 'Chris ', 'Marcoux', '1980-02-19 00:00:00', '2895272907', '', '<EMAIL>', '9454-363-335-AM', '<NAME> ', '6472952228', 0), (31, 'Gordon', 'Forth', '1950-03-12 00:00:00', '905.541.2781', '', '<EMAIL>', '2842-750-396-YC', '<NAME>', '905.317.4353', 0), (32, 'Mitchel', 'Tell', '1989-08-17 00:00:00', '905319644', '', '<EMAIL>', '6274-754-610-YX', 'Ch<NAME>', '365-889-1401', 0), (33, 'Nadine', 'McEwen', '1988-12-29 00:00:00', '416-629-7581', '', '<EMAIL>', '9949248737-RD', 'Garth', '647-588-9415', 0), (34, 'Charles', 'Ryerson', '1956-07-12 00:00:00', '9058186635', '', '<EMAIL>', '6618179359', 'Debbie', '90t3185187', 0), (35, 'David', 'Paton', '1935-08-08 00:00:00', '905-525-3829', '', '<EMAIL>', '7641-131-953-EM', '<NAME>', '905-525-3829', 0), (37, 'Daniel', 'Ali', '1982-04-23 00:00:00', '9056269440', '', '<EMAIL>', '5134668994', '<NAME>', '9054311688', 0), (38, 'Kathleen', 'St.Louis', '1987-10-12 00:00:00', '9058083637', '', '<EMAIL>', '4525-528-511-WF', 'Judy', '9058252363', 0), (39, 'Patricia', 'Bauer', '1940-01-03 00:00:00', '905-634-7734', '', '<EMAIL>', '3235-017-815-WT', 'Mitchell bauer', '289-888-2100', 0), (40, 'Charles', 'Cino', '1958-11-12 00:00:00', '289-441-4952', '', '<EMAIL>', '9774-712-856-EW', '<NAME>', '905-541-4011', 0), (41, 'Shelby', 'Traverse ', '1999-01-17 00:00:00', '647-688-5429', '', '<EMAIL>', '2187973256JB', '<NAME> ', '647-688-3271', 0), (42, 'Erica', 'Fascione-Vitello', '1992-02-18 00:00:00', '2896806808', '', '<EMAIL>', '7458675688CD', '<NAME>', '9057305088', 0), (43, 'matt', 'willis', '1984-06-12 00:00:00', '9059025447', '', '<EMAIL>', '9135-086-214-ET', 'courtney low', '9055120234', 0), (44, 'Chris', 'Whitlock ', '1975-01-22 00:00:00', '905-979-9333', '', '<EMAIL>', '1769-234-756-LP', 'Rachel', '905-765-6587', 0), (45, 'Joan', 'DiStefano', '1961-09-30 00:00:00', '905 957 2317', '', '<EMAIL>', '9378-971-098-CF', '<NAME>', '289-880-1260', 0), (46, 'Ronald', 'Kay', '1958-10-10 00:00:00', '9055165253', '', '<EMAIL>', '7882-772-515-RP', 'Rose Kay', '9059758071', 0), (47, 'Amy', 'Brousseau', '1987-12-21 00:00:00', '9055805004', '', '<EMAIL>', '4491007235VK', '<NAME>', '4169906200', 0), (48, 'Tony ', 'Ross', '1968-07-22 00:00:00', '9056168245', '', '<EMAIL>', '4820-393-736-KJ', '<NAME> ', '9056168250', 0), (49, 'Kyla', 'Jobb', '1988-06-06 00:00:00', '2897754947', '', '<EMAIL>', '6232130077C', 'Elly', '9057189628', 0), (50, 'ARTHUR', 'LUECKENHOFF', '1938-07-18 00:00:00', '905-662-9726', '', '<EMAIL>', ' 1640-858-005-JD', 'IRENE LUECKENHOFF', '905-662-9726', 0), (51, 'Terry', 'Kindy', '1943-01-17 00:00:00', '905-776-2287', '', '<EMAIL>', '7274-349-237-KX', '<NAME>', '905-778-3847', 0), (52, 'Shannon', 'Keeley', '1993-03-30 00:00:00', '9053176846', '', '<EMAIL>', '2617485210rk', '<NAME> ', '2896985229', 0), (53, 'Nelson', 'Cordeiro', '1986-07-31 00:00:00', '9059204943', '', '<EMAIL>', '9729-677-436-HX', '<NAME>', '9958074981', 0), (54, 'George', 'Doughty', '1978-09-05 00:00:00', '9055376432', '', '<EMAIL>', '5117397611JM', '<NAME> (Mom)', '5195875461', 0), (55, 'Emily ', 'Jenkins-Bragg', '1999-04-01 00:00:00', '2263435736', '', '<EMAIL>', '1367154315HX', '<NAME>', '226-203-1998', 0), (56, 'Aldain ', 'Dunnon', '1989-09-12 00:00:00', '2897882931', '', '<EMAIL>', '123456789', 'Brianna ', '2899217487', 0), (57, 'Greg', 'Koens', '1970-10-01 00:00:00', '905-520-3190', '', '<EMAIL>', '9216672114RD', 'Greg', '905-318-2220', 0), (58, 'stan', 'miszuk', '1959-01-14 00:00:00', '416-779-8310', '', '<EMAIL>', '7575-530-717-GK', '<NAME>', '519-240-9181', 0), (59, 'ryan', 'Liske', '1991-09-05 00:00:00', '905-691-9317', '', '<EMAIL>', '4560229223tc', 'bev liske', '905 467 9414', 0), (60, 'Ron', 'Boser', '1948-08-06 00:00:00', '905-662-3789', '', '<EMAIL>', '8518-735-579-GR', '<NAME>', '905-662-3789', 0), (61, 'Marcel', 'Toupin', '1966-03-18 00:00:00', '9055174708', '', '<EMAIL>', '2514-796-693-VM', '<NAME>', '9055438661', 0), (62, 'Justin', 'Dosser', '1979-10-30 00:00:00', '905-570-4092', '', '<EMAIL>', '5843477877NP', '<NAME>', '289-440-1042', 0), (63, 'Arielle', 'Ross', '1987-08-14 00:00:00', '9059778005', '', '<EMAIL>', '1186-150-296-BD', '<NAME>', '2896845066', 0), (64, 'Nancy', 'Winger', '1950-04-24 00:00:00', '905 689-9148', '', '<EMAIL>', '5669-660-390-BB', '<NAME>', '905-330-5256', 0), (65, 'Angela', 'Lang', '1968-08-08 00:00:00', '289-689-2259', '', '<EMAIL>', '3864-132-042-KL', '<NAME>', '289-689-7228', 0), (66, 'connor', 'horvath', '1995-06-12 00:00:00', '5197175189', '', '<EMAIL>', '5680716635GT', '<NAME>', '5197175405', 0), (67, 'Simranjit', 'Dhaliwal', '1990-01-26 00:00:00', '647-710-3121', '', '<EMAIL>', '4419222502ceq', '<NAME>', '6478219309', 0), (68, 'Connor', 'Horvath', '1995-07-12 00:00:00', '519-717-5189', '', '<EMAIL>', '5680-716-635-gt', '<NAME>', '519-717-5189', 0), (69, 'Sebastian', 'Taboada', '1996-12-16 00:00:00', '6473787162', '', '<EMAIL>', '8200450651YV', '<NAME>', '6477725409', 0), (70, 'Rebecca', 'Smith', '1989-09-06 00:00:00', '2894395286', '', '<EMAIL>', '6514091351', '<NAME>', '5198025712', 0), (71, 'Susan', 'Braun', '1955-12-08 00:00:00', '905-383-5059', '', '<EMAIL>', '12345678', '<NAME>', '905-385-1829', 0), (72, 'Melissa', 'Difrancescantonio', '1983-06-08 00:00:00', '6475740187', '', '<EMAIL>', '8822410919-DY', '<NAME>', '6475502838', 0), (73, 'Christina', 'Mangiola', '1997-10-04 00:00:00', '416-949-3575', '', '<EMAIL>', '6042-595-857-GT', 'Teodor Tomescu', '647-993-5981', 0), (74, 'Israel', 'Gasperin', '1986-02-14 00:00:00', '416-826-1847', '', '<EMAIL>', '5679-652-403-NV', '<NAME>', '9055411980', 0), (75, 'David', 'Dowin', '1976-06-17 00:00:00', '6478566162', '', '<EMAIL>', '5380-534-916-jp', '<NAME>', '905-317-4353', 0), (76, 'David', 'Brock', '1968-11-09 00:00:00', '6479227966', '', '<EMAIL>', '7517-398-306-EK', 'Dr <NAME>', '4163185891', 0), (77, 'tiina', 'dagnall', '1965-02-16 00:00:00', '416-625-6045', '', '<EMAIL>', '7176-649-932-LC', 'tim dagnall', '647-401-3840', 0), (78, 'Kyle', 'Park', '1987-12-21 00:00:00', '6479070780', '', '<EMAIL>', '5135050879MX', '<NAME>', '2893963972', 0), (79, 'Abarna', 'Nathan', '1996-12-13 00:00:00', '6474633411', '', '<EMAIL>', '5721481918-HK', '<NAME>', '2892444675', 0), (80, 'Kyle', 'Hutcheson', '1989-06-03 00:00:00', '519-520-2236', '', '<EMAIL>', '1879980272RT', 'Katie', '905-919-0019', 0), (81, 'Lorne', 'Hamp', '1958-04-02 00:00:00', '519-758-0334', '', '<EMAIL>', '7100720791KY', '<NAME>', '519-752-5885', 0), (82, 'Vanessa', 'Medeiros', '1994-05-14 00:00:00', '5192126694', '', '<EMAIL>', '3046890590BE', '<NAME>', '5196232574', 0), (83, 'Tracy', 'Soepboer', '1963-10-21 00:00:00', '289-922-9698', '', '<EMAIL>', '2394572818xw', '<NAME>', '289-922-9710', 0), (84, 'Trevor ', 'Lynch', '1992-05-06 00:00:00', '647-680-7170', '', '<EMAIL>', '6009490803', '<NAME>', '416-560-2625', 0), (85, 'Lewis', 'MacFarlane', '1984-12-04 00:00:00', '289-527-0827', '', '<EMAIL>', '7924-522-746-MG', '<NAME>', '905-921-5271', 0), (86, 'Lori', 'Turpin', '1959-03-24 00:00:00', '226 401 1205', '', '<EMAIL>', '5153-002-430-GK', '<NAME>', '905 531 0825', 0), (87, 'Sabreana', 'Bell', '1981-01-07 00:00:00', '2894411381', '', '<EMAIL>', '4724471893', '<NAME>', '9057307650', 0), (88, 'Domenico', 'Versace', '1995-11-12 00:00:00', '2896596554', '', '<EMAIL>', '8389-147-235-BW', 'leo versace', '3892376095', 0), (89, 'Sherry', 'Miller', '1973-03-08 00:00:00', '519-757-5167', '', '<EMAIL>', '9694749392', '<NAME>', '519-761-8327', 0), (90, 'Maggie', 'Inrig', '0000-00-00 00:00:00', '905-308-4417', '', '<EMAIL>', '000000000000000000', '<NAME>', '647-521-7976', 0), (91, 'preston', 'hathaway', '1998-03-04 00:00:00', '5196152066', '', '<EMAIL>', '2629-452-018-LL', '<NAME>', '2263773051', 0), (92, 'Tristan', 'Cossins-white', '2000-03-30 00:00:00', '4033909890', '', '<EMAIL>', '58153-5711', 'Tyler ', '4034706633', 0), (93, 'BLANCHE', 'DINGLE', '1931-08-16 00:00:00', '905-627-2433', '', '<EMAIL>', '1546-260-355-GY', 'JEFF DINGLE', '905-572-1125', 0), (94, 'Aiman', 'Muhammad', '1996-07-09 00:00:00', '416-571-0764', '', '<EMAIL>', '5147924020AG', '<NAME>', '647-378-7162', 0), (95, 'Conner', 'Strutzel', '2000-09-30 00:00:00', '403-978-3047', '', '<EMAIL>', '2416046', '<NAME>', '403-370-9657', 0), (96, 'Ross', 'Holland', '1952-12-14 00:00:00', '9056627190', '', '<EMAIL>', '4452130653TK', '<NAME>', '9056627190', 0), (97, 'Adam', 'Fulton', '1983-11-01 00:00:00', '705-768-6189', '', '<EMAIL>', '0005381215', '<NAME>', '9022544205', 0), (98, 'Meaghan', 'Ward', '1990-05-31 00:00:00', '2897753117', '', '<EMAIL>', '8471766470LD', '<NAME> ', '2898087725', 0), (99, 'Christina', 'Martin', '1998-01-15 00:00:00', '289-684-5574', '', '<EMAIL>', '3194-629-477-GD', '<NAME>', '519-429-8803', 0), (100, 'Carrole ', 'Orme ', '1947-05-21 00:00:00', '905-528-6700', '', '<EMAIL>', '9269 740 354 EV', '<NAME> ', '519-732-0613', 0), (101, 'Amanda', 'Buer', '1989-07-18 00:00:00', '705-561-4399', '', '<EMAIL>', '18932-8471', '<NAME>', '705-920-0679', 0), (102, 'Amari', 'Trotman', '2001-10-07 00:00:00', '6479806707', '', '<EMAIL>', '6298-089-373-FG', '<NAME>', '4162763623', 0), (103, 'Travis', 'Hood', '1991-05-11 00:00:00', '2894550543', '', '<EMAIL>', '7711-391-594-ME', 'Madison Evans', '9058692838', 0), (104, 'Amber', 'Craig', '2000-03-21 00:00:00', '613 825 5185', '', '<EMAIL>', '7303123777BX', '<NAME>', '613 222 6014', 0), (105, 'David', 'Monastirsky', '1998-12-26 00:00:00', '2892426261', '', '<EMAIL>', '8480-843-138-KD', 'anna monastirsky', '6472296190', 0), (106, 'Leo', 'Versace', '1973-07-04 00:00:00', '2892376095', '', '<EMAIL>', '1117729614LJ', 'Ly<NAME>', '9055121806', 0), (107, 'Leslie', 'Wilson', '1967-02-08 00:00:00', '289-339-5559', '', '<EMAIL>', '9330-329-591-TG', 'Ron/<NAME>', '905-389-5559', 0), (108, 'Gregory', 'Redden', '1974-01-06 00:00:00', '905-243-8489', '', '<EMAIL>', '2906-179-953-FX', 'Iren', '289-688-5757', 0), (109, 'Joey', 'Banakiewicz', '1983-06-25 00:00:00', '3068383993', '', 'Jo<EMAIL>', '4700-826-151-LX', '<NAME>', '905-746-7551', 0), (110, 'Chris', 'Brack', '1989-11-22 00:00:00', '519 939 9274', '', '<EMAIL>', '7262650430DE', '<NAME> ', '???1 (519) 939-9487???', 0), (111, 'gwyneth', 'macneil', '1993-01-15 00:00:00', '9058054936', '', '<EMAIL>', '2487512606', '<NAME>', '9054667708', 0), (112, 'Tyler ', 'Jones ', '1995-05-08 00:00:00', '2499890299', '', '<EMAIL>', '5653386630MV', 'Lexi', '2499890910', 0), (113, 'Fernando', 'Liorti', '1957-06-28 00:00:00', '9053286362', '', '<EMAIL>', '8404-253-430-MM', '<NAME>', '9053286362', 0), (114, 'Tabatha', 'VanErp ', '1987-06-08 00:00:00', '519-939-7032', '', '<EMAIL>', '1907935280', '<NAME>&#039;Anno ', '4167353626', 0), (115, 'McKenna', 'McCombe', '1999-06-10 00:00:00', '5879885188', '', '<EMAIL>', '96024-9411', '<NAME>', '780-264-0846', 0), (116, 'Andrea ', 'Greyeyes', '1987-09-27 00:00:00', '289-683-3709', '', '<EMAIL>', '3348685748YN', '<NAME> (spouse)', '289-698-6807', 0), (117, 'Matthew', 'Grimmer', '1991-10-19 00:00:00', '905-758-0131', '', '<EMAIL>', '7373-094-387-KB', '<NAME>', '+1 647-992-4746', 0), (118, 'George', 'Desmond', '1995-06-08 00:00:00', '4162761480', '', '<EMAIL>', '8426 575 000 DV', '<NAME>', '343-333-6141', 0), (119, 'Joey ', 'Banakiewicz', '1983-06-25 00:00:00', '306-838-3993', '', '<EMAIL>', '4700826151LX', '<NAME>', '9055416300', 0), (120, 'Jonathon', 'Finemore', '1997-08-29 00:00:00', '519-854-0530', '', '<EMAIL>', '5764-609-896-AD', '<NAME>', ' 519-854-7204', 0), (121, 'Noah', 'Billingsley ', '2000-02-29 00:00:00', '5199014225', '', '<EMAIL>', '8014454279AM', '<NAME> ', '519-396-9329', 0), (122, 'Ted', 'Taylor', '1960-08-25 00:00:00', '7784126334', '', '<EMAIL>', '9139018427', '<NAME>', '7784126334', 0), (123, 'Kristina', 'Swatton', '1992-03-29 00:00:00', '7052412785', '', '<EMAIL>', '9936183442', '<NAME>', '7052412785', 0), (124, 'Francine', 'Herbert', '1978-05-04 00:00:00', '2262355812', '', '<EMAIL>', '6176570772ne', 'Linda', '5198663109', 0), (125, 'Sarah', 'Spicer', '1997-05-09 00:00:00', '9057167585', '', '<EMAIL>', '8037959636PJ', '<NAME>', '2503418997', 0), (126, 'Jesse', 'Greening', '1994-12-13 00:00:00', '905-818-3505', '', '<EMAIL>', '8752-327-919-DJ', '<NAME>', '905-745-2604', 0), (127, 'Robert', 'Hodichak', '1976-07-07 00:00:00', '2892359876', '', '<EMAIL>', '8805 258 335', '<NAME>', '2892359876', 0), (128, 'Jade', 'Opekokew-blenkinsop', '2001-03-30 00:00:00', '3062919390', '', '<EMAIL>', '474449963', '<NAME> ', '3062919498', 0), (129, 'Lance', 'Laverty ', '1985-05-13 00:00:00', '2894409720', '', '<EMAIL>', '3824343895mm', 'Caren laverty', '9057028195', 0), (130, 'Katie', 'Conrad', '2003-05-15 00:00:00', '+1 613-770-0488', '', '<EMAIL>', '6737-330-156-MY', 'Laura', '6134535057', 0), (131, 'Daniel', 'Batchelor', '1967-09-12 00:00:00', '5063269793', '', '<EMAIL>', '915338495', '<NAME> ', '5067214019', 0), (132, 'Dylan', 'Hill', '1999-09-15 00:00:00', '6136300040', '', '<EMAIL>', '3248506796FB', 'Cheryl', '7059286969', 0), (133, 'Ryan', 'Armstrong', '1984-08-23 00:00:00', '9058650415', '', '<EMAIL>', '5839204756MH', '<NAME> ', '2893091058', 0), (134, 'Christine', 'Calhoun', '1986-09-05 00:00:00', '2269272238', '', '<EMAIL>', '5892430611', '<NAME>', '5192812605', 0), (135, 'Cody', 'LaRose', '1998-08-09 00:00:00', '506-425-3171', '', '<EMAIL>', '922 577 184', '<NAME>', '506-425-6065', 0), (136, 'Alison ', 'Schilling ', '1968-06-05 00:00:00', '613 321 8548', '', '<EMAIL>', '8669439021FK', '<NAME> ', '613 321 8548', 0), (137, 'Jory', 'Sortland', '1992-10-04 00:00:00', '587-700-7189', '', '<EMAIL>', '37931-9800', 'Austin', '587-500-2835', 0), (138, 'Jeremy', 'Jacobs', '1998-09-16 00:00:00', '778-237-3945', '', '<EMAIL>', '9865603876', '<NAME>', '7782417474', 0), (139, 'Geramie', 'Simon-Laporte', '1999-07-18 00:00:00', '7059886772', '', '<EMAIL>', '3117080253nb', '<NAME>', '7059886772', 0), (140, 'Twila', 'Lickers', '1945-07-09 00:00:00', '519-445-4165', '', '<EMAIL>', '4556778639CM', '<NAME>', '519-770-5069', 0), (141, 'Amy', 'Norgan', '1990-09-29 00:00:00', '9052079939', '', '<EMAIL>', '9739598267BE', '<NAME>', '19052079939', 0), (142, 'Andrea', 'Mullett', '1978-09-04 00:00:00', '2267980301', '', '<EMAIL>', '5074173674TK', '<NAME>', '7059711661', 0), (143, 'Julianna', 'Bernard', '2000-08-11 00:00:00', '7788385099', '', '<EMAIL>', '9853 804 877', 'Weston Bernard', '778 984 5310', 0);
USE [ANTERO] GO /****** Object: View [dw].[v_amos_kustannuskysely_tili] Script Date: 27.4.2020 18:43:51 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER VIEW [dw].[v_amos_kustannuskysely_tili] AS SELECT [Tilastovuosi] = f.vuosi ,[Koulutuksen järjestäjä] = d1.organisaatio_fi ,[Taso 0] = d2.taso0 ,[Taso 1] = d2.taso1 ,[Taso 2] = d2.taso2 ,[Taso 3] = d2.taso3 ,[Taso 4] = d2.taso4 ,[Taso 5] = d2.taso5 ,[Taso, alin] = d2.taso_alin ,[tili_jarjestys] = case when d2.taso5 = '' then '999' else CONCAT(d2.id,'_',d2.koodi) end ,[Omistajatyyppi] = f.omistajatyyppi_nimi -- ,[Koodit Koulutuksen järjestäjä] = d1.organisaatio_koodi -- ,[avain] = CONCAT(f.vuosi, d1.organisaatio_koodi) ,[maara_euroa] FROM dw.f_amos_kustannuskysely_jarjestajakohtainen f LEFT JOIN dw.d_organisaatioluokitus d1 on d1.id = f.d_organisaatioluokitus_id LEFT JOIN dw.d_amos_kustannuskysely_tili d2 on d2.id = f.d_amos_tili_id
TRUNCATE TABLE KRIM_PHONE_TYP_T DROP STORAGE / INSERT INTO KRIM_PHONE_TYP_T (ACTV_IND,DISPLAY_SORT_CD,LAST_UPDT_DT,OBJ_ID,PHONE_TYP_CD,PHONE_TYP_NM,VER_NBR) VALUES ('Y','b',TO_DATE( '20081113140635', 'YYYYMMDDHH24MISS' ),'5B97C50B03906110E0404F8189D85213','HM','Home',1) / INSERT INTO KRIM_PHONE_TYP_T (ACTV_IND,DISPLAY_SORT_CD,LAST_UPDT_DT,OBJ_ID,PHONE_TYP_CD,PHONE_TYP_NM,VER_NBR) VALUES ('Y','c',TO_DATE( '20081113140635', 'YYYYMMDDHH24MISS' ),'5B97C50B03916110E0404F8189D85213','MBL','Mobile',1) / INSERT INTO KRIM_PHONE_TYP_T (ACTV_IND,DISPLAY_SORT_CD,LAST_UPDT_DT,OBJ_ID,PHONE_TYP_CD,PHONE_TYP_NM,VER_NBR) VALUES ('Y','d',TO_DATE( '20081113140635', 'YYYYMMDDHH24MISS' ),'5B97C50B03926110E0404F8189D85213','OTH','Other',1) / INSERT INTO KRIM_PHONE_TYP_T (ACTV_IND,DISPLAY_SORT_CD,LAST_UPDT_DT,OBJ_ID,PHONE_TYP_CD,PHONE_TYP_NM,VER_NBR) VALUES ('Y','a',TO_DATE( '20081113140635', 'YYYYMMDDHH24MISS' ),'5B97C50B03936110E0404F8189D85213','WRK','Work',1) /
/****** Object: StoredProcedure [dbo].[sp_iMart_Transform_dim_Date] Script Date: 4:40:40 PM ******/ CREATE procedure [dbo].[sp_iMart_Transform_dim_Date] ( @BeginDate date = '2001-08-01', @nbrYears int = 1 ) as -- ============================================================================ -- Script UTC date: 2019-03-28 13:35:45 -- Description: Generated by OtisEd iMart Wizard Tool -- Copyright: ©2019 Otis Educational Systems, Inc. All Rights Reserved -- ============================================================================ -- Example: exec [dbo].[sp_iMart_Transform_DIM_DATE] @BeginDate='2001-01-01', @nbrYears=30 /* <StatusList> <Status Code = "A">Assigned Waiting for mapping</Status> <Status Code = "I">Ignore for this implementation</Status> <Status Code = "M">Mapped and waiting for Review</Status> <Status Code = "U">Reviewed and deemed unacceptable.Needs Remapping</Status> <Status Code = "H">On Hold for this iteration, non-blocking</Status> <Status Code = "C"> Completed</Status> </StatusList> */ --parameter processing --<MappingInfo Table="dim_Date"> --<MappingInfoCommon> if @BeginDate is null set @BeginDate = '2001-08-01' if @nbrYears is null set @nbrYears = 1 declare @datetable table ( [date] date, seq int IDENTITY(1,1)) declare @loopdate date = @BeginDate declare @EndDate date = dateadd(YEAR,@nbrYears,@BeginDate) while @loopdate < @EndDate begin insert into @datetable ([date]) values (@loopdate) set @loopdate=dateadd(day,1,@loopdate) end -- Including Unknown low date and Unknown high date insert into @datetable ([date]) values ('1753-01-01'),('9999-12-31') --</MappingInfoCommon> select [Date_Record_Type]=convert(Char(1), --<MappingInfoStatus Status="C" Column="Date_Record_Type"> 'C' --</MappingInfoStatus> ) ,[Year_Name]=convert(Char(4), --<MappingInfoStatus Status="C" Column="Year_Name"> datepart(year,x.date) --</MappingInfoStatus> ) ,[Year_Number_Sequence]=convert(Int, --<MappingInfoStatus Status="C" Column="Year_Number_Sequence"> datepart(year,x.date) --</MappingInfoStatus> ) ,[Year_Begin_Date]=convert(Date, --<MappingInfoStatus Status="C" Column="Year_Begin_Date"> convert(varchar,datepart(year,x.date)) + '-01-01' --</MappingInfoStatus> ) ,[Year_End_Date]=convert(Date, --<MappingInfoStatus Status="C" Column="Year_End_Date"> convert(varchar,datepart(year,x.date)) + '-12-31' --</MappingInfoStatus> ) ,[Days_In_Year]=convert(SmallInt, --<MappingInfoStatus Status="C" Column="Days_In_Year"> IIF(DAY(EOMONTH(DATEFROMPARTS(datepart(year,x.date),2,1))) = 29,366,365) --</MappingInfoStatus> ) ,[Quarter_Name]=convert(Char(2), --<MappingInfoStatus Status="C" Column="Quarter_Name"> 'Q' + convert(varchar,convert(tinyint,datepart(quarter,x.date))) --</MappingInfoStatus> ) ,[Year_Quarter_Name]=convert(Char(7), --<MappingInfoStatus Status="C" Column="Year_Quarter_Name"> convert(varchar,year(x.date)) + '-Q' + convert(varchar,datepart(quarter,x.date)) --</MappingInfoStatus> ) ,[Quarter_Number_In_Year]=convert(TinyInt, --<MappingInfoStatus Status="C" Column="Quarter_Number_In_Year"> datepart(quarter,x.date) --</MappingInfoStatus> ) ,[Quarter_Number_Sequence]=convert(Int, --<MappingInfoStatus Status="C" Column="Quarter_Number_Sequence"> convert(varchar,year(x.date)) + convert(varchar,datepart(quarter,x.date)) --</MappingInfoStatus> ) ,[Quarter_Begin_Date]=convert(Date, --<MappingInfoStatus Status="C" Column="Quarter_Begin_Date"> DATEADD(qq, DATEDIFF(qq, 0, x.date), 0) --</MappingInfoStatus> ) ,[Quarter_End_Date]=convert(Date, --<MappingInfoStatus Status="C" Column="Quarter_End_Date"> case when x.date in ('1753-01-01','9999-12-31') then null else DATEADD (dd, -1, DATEADD(qq, DATEDIFF(qq, 0, x.date) +1, 0)) end --</MappingInfoStatus> ) ,[Days_In_Quarter]=convert(TinyInt, --<MappingInfoStatus Status="C" Column="Days_In_Quarter"> case when x.date in ('1753-01-01','9999-12-31') then null else DateDiff(dd, convert(date,DATEADD(qq, DATEDIFF(qq, 0, x.date), 0)), convert(date,DATEADD (dd, -1, DATEADD(qq, DATEDIFF(qq, 0, x.date) +1, 0))) ) end --</MappingInfoStatus> ) ,[Month_Name]=convert(VarChar(9), --<MappingInfoStatus Status="C" Column="Month_Name"> datename(month,x.date) --</MappingInfoStatus> ) ,[Month_Year_Name]=convert(VarChar(14), --<MappingInfoStatus Status="C" Column="Month_Year_Name"> datename(month,x.date) + ' ' + convert(varchar,year(x.date)) --</MappingInfoStatus> ) ,[Year_Month_Yyyy_Mm]=convert(Char(7), --<MappingInfoStatus Status="C" Column="Year_Month_Yyyy_Mm"> convert(varchar,year(x.date)) + '-' + convert(varchar(2),right('00' + convert(varchar,month(x.date)),2)) --</MappingInfoStatus> ) ,[Month_Abbr]=convert(Char(3), --<MappingInfoStatus Status="C" Column="Month_Abbr"> datename(month,x.date) --</MappingInfoStatus> ) ,[Month_Year_Abbr]=convert(Char(8), --<MappingInfoStatus Status="C" Column="Month_Year_Abbr"> left(datename(month,x.date),3) + ' ' + convert(VARCHAR(4),year(x.date)) --</MappingInfoStatus> ) ,[Month_Number_In_Year]=convert(TinyInt, --<MappingInfoStatus Status="C" Column="Month_Number_In_Year"> datepart(m,x.date) --</MappingInfoStatus> ) ,[Month_Number_In_Quarter]=convert(TinyInt, --<MappingInfoStatus Status="C" Column="Month_Number_In_Quarter"> case when datepart(m,x.date) in (1,4,7,10) then 1 when datepart(m,x.date) in (2,5,8,11) then 2 else 3 end --</MappingInfoStatus> ) ,[Month_Number_Sequence]=convert(Int, --<MappingInfoStatus Status="C" Column="Month_Number_Sequence"> convert(varchar,year(x.date)) + convert(varchar,month(x.date)) --</MappingInfoStatus> ) ,[Month_Begin_Date]=convert(Date, --<MappingInfoStatus Status="C" Column="Month_Begin_Date"> dateadd(dd,1,eomonth(x.date,-1)) --</MappingInfoStatus> ) ,[Month_End_Date]=convert(Date, --<MappingInfoStatus Status="C" Column="Month_End_Date"> eomonth(x.date) --</MappingInfoStatus> ) ,[Days_In_Month]=convert(TinyInt, --<MappingInfoStatus Status="C" Column="Days_In_Month"> day(eomonth(x.date)) --</MappingInfoStatus> ) ,[Week_Name]=convert(Char(7), --<MappingInfoStatus Status="C" Column="Week_Name"> 'Week ' + convert(varchar, datepart(ww,x.date)) --</MappingInfoStatus> ) ,[Week_Abbr]=convert(Char(4), --<MappingInfoStatus Status="C" Column="Week_Abbr"> 'WK ' + convert(varchar,Datepart(ww,x.date)) --</MappingInfoStatus> ) ,[Year_Week_Name]=convert(Char(12), --<MappingInfoStatus Status="C" Column="Year_Week_Name"> convert(varchar,year(x.date)) + ' Wk ' + convert(varchar,datepart(ww,x.date)) --</MappingInfoStatus> ) ,[Year_Week_Abbr]=convert(Char(9), --<MappingInfoStatus Status="C" Column="Year_Week_Abbr"> convert(varchar,year(x.date)) + '-' + right('00' + convert(varchar,datepart(week,x.date)),2) --</MappingInfoStatus> ) ,[Week_Desc_Short]=convert(Char(19), --<MappingInfoStatus Status="C" Column="Week_Desc_Short"> 'WK ' + convert(varchar, Datepart(ww,x.date)) --</MappingInfoStatus> ) ,[Week_Desc]=convert(Char(32), --<MappingInfoStatus Status="C" Column="Week_Desc"> 'Week ' + convert(varchar,datepart(ww,x.date)) --</MappingInfoStatus> ) ,[Week_Begin_Date]=convert(Date, --<MappingInfoStatus Status="C" Column="Week_Begin_Date"> case when x.date in ('1753-01-01','9999-12-31') then null else DATEADD(wk,DATEDIFF(wk,0,x.date),-1) end --</MappingInfoStatus> ) ,[Week_End_Date]=convert(Date, --<MappingInfoStatus Status="C" Column="Week_End_Date"> case when x.date in ('1753-01-01','9999-12-31') then null else DATEADD(wk,DATEDIFF(wk,0,x.date),5) end --</MappingInfoStatus> ) ,[Week_Number_In_Year]=convert(TinyInt, --<MappingInfoStatus Status="C" Column="Week_Number_In_Year"> datepart(ww,x.date) --</MappingInfoStatus> ) ,[Week_Number_Sequence]=convert(Int, --<MappingInfoStatus Status="C" Column="Week_Number_Sequence"> datepart(ww,x.date) --</MappingInfoStatus> ) ,[Date_Of_Day]=convert(Date, --<MappingInfoStatus Status="C" Column="Date_Of_Day"> x.date --</MappingInfoStatus> ) ,[Date_String]=convert(Char(10), --<MappingInfoStatus Status="C" Column="Date_String"> convert(date,x.date,120) --</MappingInfoStatus> ) ,[Date_Desc]=convert(VarChar(30), --<MappingInfoStatus Status="C" Column="Date_Desc"> x.date --</MappingInfoStatus> ) ,[Date_Desc_Short]=convert(Char(16), --<MappingInfoStatus Status="C" Column="Date_Desc_Short"> convert(date,x.date,102) --</MappingInfoStatus> ) ,[Day_Number_In_Year]=convert(SmallInt, --<MappingInfoStatus Status="C" Column="Day_Number_In_Year"> datepart(dy,x.date) --</MappingInfoStatus> ) ,[First_Day_In_Year_Ind]=convert(Char(1), --<MappingInfoStatus Status="C" Column="First_Day_In_Year_Ind"> case when datepart(d,x.date) = '01' and datepart(m,x.date) = '01' then 'Y' else 'N' end --</MappingInfoStatus> ) ,[Last_Day_In_Year_Ind]=convert(Char(1), --<MappingInfoStatus Status="C" Column="Last_Day_In_Year_Ind"> case when datepart(d,x.date) = '31' and datepart(m,x.date) = '12' then 'Y' else 'N' end --</MappingInfoStatus> ) ,[Day_Number_In_Quarter]=convert(TinyInt, --<MappingInfoStatus Status="C" Column="Day_Number_In_Quarter"> DateDiff(dd,CONVERT(DATE,dateadd(qq, datediff(qq,0, x.date),0)),x.date)+1 --</MappingInfoStatus> ) ,[First_Day_In_Quarter_Ind]=convert(Char(1), --<MappingInfoStatus Status="C" Column="First_Day_In_Quarter_Ind"> case when convert(tinyint,DateDiff(dd,CONVERT(DATE,dateadd(qq, datediff(qq,0, x.date),0)),x.date)+1) = 1 then 'Y' else 'N' end --</MappingInfoStatus> ) ,[Last_Day_In_Quarter_Ind]=convert(Char(1), --<MappingInfoStatus Status="C" Column="Last_Day_In_Quarter_Ind"> case when DATEADD(qq,DATEDIFF(qq,-1,x.date),-1) = x.date then 'Y' else 'N' end --</MappingInfoStatus> ) ,[Day_Number_In_Month]=convert(TinyInt, --<MappingInfoStatus Status="C" Column="Day_Number_In_Month"> day(x.date) --</MappingInfoStatus> ) ,[First_Day_In_Month_Ind]=convert(Char(1), --<MappingInfoStatus Status="C" Column="First_Day_In_Month_Ind"> case when day(x.date) = 1 then 'Y' else 'N' end --</MappingInfoStatus> ) ,[Last_Day_In_Month_Ind]=convert(Char(1), --<MappingInfoStatus Status="C" Column="Last_Day_In_Month_Ind"> case when eomonth(x.date) = x.date then 'Y' else 'N' end --</MappingInfoStatus> ) ,[Weekday_Name]=convert(Char(9), --<MappingInfoStatus Status="C" Column="Weekday_Name"> DateName(WEEKDAY,x.date) --</MappingInfoStatus> ) ,[Weekday_Abbr]=convert(Char(3), --<MappingInfoStatus Status="C" Column="Weekday_Abbr"> left(DateName(WEEKDAY,x.date),3) --</MappingInfoStatus> ) ,[Day_Number_In_Week]=convert(TinyInt, --<MappingInfoStatus Status="C" Column="Day_Number_In_Week"> DATEPART(DW,X.DATE) --</MappingInfoStatus> ) ,[First_Day_In_Week_Ind]=convert(Char(1), --<MappingInfoStatus Status="C" Column="First_Day_In_Week_Ind"> CASE WHEN DATEPART(day,X.DATE) = 1 THEN 'Y' else 'N' end --</MappingInfoStatus> ) ,[Last_Day_In_Week_Ind]=convert(Char(1), --<MappingInfoStatus Status="C" Column="Last_Day_In_Week_Ind"> CASE WHEN DATEPART(day,X.DATE) = 7 THEN 'Y' else 'N' end --</MappingInfoStatus> ) ,[Day_Number_Sequence]=convert(Int, --<MappingInfoStatus Status="C" Column="Day_Number_Sequence"> datepart(yyyy,x.date)*1000 + datepart(dy,x.date) --</MappingInfoStatus> ) ,[Weekday_Ind]=convert(Char(1), --<MappingInfoStatus Status="C" Column="Weekday_Ind"> case when datepart(dw,x.date) in (1,7) then 'N' else 'Y' end --</MappingInfoStatus> ) ,[Batch_Period]=convert(VarChar(50), --<MappingInfoStatus Status="C" Column="Batch_Period"> 'Static' --</MappingInfoStatus> ) ,[SAID]=convert(VarChar(30), --<MappingInfoStatus Status="C" Column="SAID"> 'OES-Zip' --</MappingInfoStatus> ) ,[Date_Stamp]=convert(DateTime2, --<MappingInfoStatus Status="C" Column="Date_Stamp"> Getdate() --</MappingInfoStatus> ) --<MappingInfoFrom> from @datetable X order by X.date --</MappingInfoFrom> --</MappingInfo>
<filename>components/automate-workflow-server/schema/verify/oauth_user_aliases.sql<gh_stars>100-1000 -- Verify delivery:user_oauth_aliases on pg BEGIN; SELECT user_id, oauth_app_id, alias FROM oauth_user_aliases WHERE FALSE; SELECT id, enterprise_id, name, ssh_pub_key, first_name, last_name, email, user_type, oauth_app_id, alias FROM user_aliases WHERE FALSE; ROLLBACK;
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : wqcms Source Server Version : 50554 Source Host : 192.168.127.12:3306 Source Database : wqcms Target Server Type : MYSQL Target Server Version : 50554 File Encoding : 65001 Date: 2017-07-24 15:41:55 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `article` -- ---------------------------- CREATE TABLE `article` ( `aid` int(11) NOT NULL AUTO_INCREMENT, `title` char(255) NOT NULL COMMENT '文章标题', `click` mediumint(9) NOT NULL DEFAULT '0' COMMENT '查看次数', `description` varchar(255) NOT NULL COMMENT '文章描述', `content` text NOT NULL COMMENT '文章内容', `source` varchar(255) NOT NULL COMMENT '文章来源', `author` varchar(255) NOT NULL COMMENT '文章作者', `orderby` smallint(6) NOT NULL DEFAULT '100' COMMENT '排序', `linkurl` varchar(255) NOT NULL COMMENT '跳转地址', `keywords` varchar(255) NOT NULL COMMENT '关键字', `iscommend` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否推荐', `ishot` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否热门', `thumb` varchar(255) NOT NULL COMMENT '缩略图', `isrecycle` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否在回收站', `category_cid` int(11) NOT NULL COMMENT '所属栏目id', `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime NOT NULL COMMENT '更新时间', `wechat_keywords` varchar(255) NOT NULL, PRIMARY KEY (`aid`) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of article -- ---------------------------- INSERT INTO `article` VALUES ('1', '满江红', '814', '爱国主义', '<p>怒发冲冠,凭阑处、潇潇雨歇。抬望眼、仰天长啸,壮怀激烈。三十功名尘与土,八千里路云和月。莫等闲,白了少年头,空悲切。\r\n &nbsp;靖康耻,犹未雪;臣子恨,何时灭。驾长车,踏破贺兰山缺。壮志饥餐胡虏肉,笑谈渴饮匈奴血。待从头、收拾旧山河,朝天阙。</p>', '满江红', '岳飞', '50', 'blog.daniel-w.cn', '爱国', '1', '1', 'attachment/2017/07/11/54661499780288.jpg', '0', '1', '0000-00-00 00:00:00', '2017-07-20 21:36:44', '满江红'); INSERT INTO `article` VALUES ('2', '过零丁洋', '834', '回想我早年由科举入仕历尽辛苦,如今战火消歇已熬过了四个年头。\r\n国家危在旦夕恰如狂风中的柳絮,个人又哪堪言说似骤雨里的浮萍。\r\n惶恐滩的惨败让我至今依然惶恐,零丁洋身陷元虏可叹我孤苦零丁。\r\n人生自古以来有谁能够长生不死?我要留一片爱国的丹心映照史册。', '<p>辛苦遭逢起一经, 干戈寥落四周星。\r\n山河破碎风飘絮, 身世浮沉雨打萍。\r\n惶恐滩头说惶恐, 零丁洋里叹零丁。\r\n人生自古谁无死, 留取丹心照汗青。</p>', '过零丁洋', '文天祥', '30', 'http://weibo.com/3895426100/profile?rightmod=1&wvr=6&mod=personinfo&is_all=1', '', '1', '1', 'attachment/2017/07/11/52831499788701.jpg', '0', '3', '0000-00-00 00:00:00', '2017-07-20 21:56:21', '过'); INSERT INTO `article` VALUES ('6', '戴维斯', '62', '啊~打~', '<p>桌球</p>', 'daniel', 'daniel', '92', 'www.baidu.com', '', '0', '0', 'attachment/2017/07/11/54661499780288.jpg', '0', '1', '2017-07-11 21:38:17', '2017-07-20 21:45:07', '111'); INSERT INTO `article` VALUES ('13', '习近平向军事科学院、国防大学、国防科技大学授军旗致训词', '205', '', '<h1 style=\"text-align: center;\">习近平向军事科学院、国防大学、国防科技大学授军旗致训词</h1><p style=\"text-align: right;\"><a href=\"http://pic.people.com.cn/NMediaFile/2017/0719/MAIN201707192113000576306528923.jpg\" id=\"pic_url\" target=\"_blank\">【查看原图】</a></p><p><span class=\"a_right\" style=\"display: inline;\"></span>\r\n &nbsp; &nbsp;<img src=\"http://pic.people.com.cn/NMediaFile/2017/0719/MAIN201707192113000576306528923.jpg\" alt=\"7月19日,新调整组建的军事科学院、国防大学、国防科技大学成立大会暨军队院校、科研机构、训练机构主要领导座谈会在北京八一大楼举行。中共中央总书记、国家主席、中央军委主席习近平向军事科学院、国防大学、国防科技大学授军旗、致训词。新华社记者 李刚 摄\" border=\"0\"/></p><p>7月19日,新调整组建的军事科学院、国防大学、国防科技大学成立大会暨军队院校、科研机构、训练机构主要领导座谈会在北京八一大楼举行。中共中央总书记、国家主席、中央军委主席习近平向军事科学院、国防大学、国防科技大学授军旗、致训词。新华社记者&nbsp;李刚&nbsp;摄</p><p><a href=\"http://pic.people.com.cn/n1/2017/0719/c1016-29416015.html\">1</a><a href=\"http://pic.people.com.cn/n1/2017/0719/c1016-29416015-2.html\">2</a><a href=\"http://pic.people.com.cn/n1/2017/0719/c1016-29416015-3.html\">3</a><a href=\"http://pic.people.com.cn/n1/2017/0719/c1016-29416015-4.html\">4</a><a href=\"http://pic.people.com.cn/n1/2017/0719/c1016-29416015-5.html\">5</a></p><p>来源:<a href=\"http://news.xinhuanet.com/politics/2017-07/19/c_1121347127.htm\" target=\"_blank\">新华社</a>&nbsp;&nbsp;2017年07月19日21:11</p><p style=\"text-indent: 2em;\">\r\n 新华社北京7月19日电(记者曹智)新调整组建的军事科学院、国防大学、国防科技大学成立大会暨军队院校、科研机构、训练机构主要领导座谈会19日在北京八一大楼举行。中共中央总书记、国家主席、中央军委主席习近平向军事科学院、国防大学、国防科技大学授军旗、致训词,出席座谈会并发表重要讲话,强调要忠实履行党和人民赋予的使命,以党在新形势下的强军目标为引领,贯彻新形势下军事战略方针,推进政治建军、改革强军、依法治军,全面实施科技兴军战略,坚持面向战场、面向部队、面向未来,建设世界一流的军事科研机构、综合性联合指挥大学、高等教育院校,努力开创军事人才培养和军事科研工作新局面,为实现中国梦强军梦不断作出新的更大的贡献。</p><p style=\"text-indent: 2em;\">\r\n 上午9时30分,成立大会开始,全场高唱国歌。习近平将军旗郑重授予军事科学院院长杨学军、政治委员方向,国防大学校长郑和、政治委员吴杰明,国防科技大学校长邓小刚、政治委员刘念光,他们从习近平手中接过军旗。全场官兵向军旗敬礼。</p><p style=\"text-indent: 2em;\">\r\n 授旗仪式后,习近平致训词。他指出,调整组建新的军事科学院、国防大学、国防科技大学,是党中央和中央军委着眼实现中国梦强军梦作出的重大决策,是推进改革强军、构建我军新型军事人才培养体系和军事科研体系的战略举措,必将对加快推进国防和军队现代化、把我军建设成为世界一流军队产生重大而深远的影响。</p><p style=\"text-indent: 2em;\">\r\n 习近平强调,军事科学院是全军军事科学研究的拳头力量。要适应军事科研工作新体制新要求,坚持军事理论和军事科技紧密结合,创新军事科研工作组织模式,推动开展协同创新,发展现代军事科学,努力建设世界一流军事科研机构。</p><p style=\"text-indent: 2em;\">\r\n 习近平强调,国防大学是培养联合作战人才和高中级领导干部的重要基地。要把握高级任职教育院校建设特点和规律,推动教学科研管理创新,突出高素质联合作战指挥和参谋人才培养,加强军事理论研究,努力建设世界一流综合性联合指挥大学。</p><p style=\"text-indent: 2em;\">\r\n 习近平强调,国防科技大学是高素质新型军事人才培养和国防科技自主创新高地。要紧跟世界军事科技发展潮流,适应打赢信息化局部战争要求,抓好通用专业人才和联合作战保障人才培养,加强核心关键技术攻关,努力建设世界一流高等教育院校。</p><p style=\"text-indent: 2em;\">\r\n 方向、吴杰明、刘念光分别代表军事科学院、国防大学、国防科技大学表示,坚决贯彻习主席训词,坚决听从党中央、中央军委和习主席指挥,坚决完成党和人民赋予的任务。</p><p style=\"text-indent: 2em;\">\r\n 成立大会结束后,习近平出席军队院校、科研机构、训练机构主要领导座谈会并发表重要讲话。他指出,把我军建设成为世界一流军队必须有一流军事人才、一流军事理论、一流军事科技。科技是现代战争的核心战斗力。我们要赢得军事竞争主动,必须下更大气力推进科技兴军,坚持向科技创新要战斗力,依靠科技进步和创新把我军建设模式和战斗力生成模式转到创新驱动发展的轨道上来。我军院校、科研机构、训练机构是推进科技兴军的骨干力量,地位重要、使命光荣,必须勇担重任、走在前列。</p><p style=\"text-indent: 2em;\">\r\n 习近平对军队院校、科研机构、训练机构的主要领导提出四点希望。一是着力把好正确政治方向,增强“四个意识”,坚决维护党中央权威和集中统一领导,在思想上政治上行动上始终同党中央保持高度一致,毫不动摇坚持党对军队绝对领导。要加强政治能力训练,增强政治敏锐性和政治鉴别力。要把管党治党责任担在肩上,做到敢管敢严、真管真严、长管长严。二是着力抓好改革任务落实,强化责任担当,增强改革执行力,抓好各项改革的协同,确保各项改革举措落地,加快形成军事人才培养和军事科研新质能力。三是着力提高领导水平和专业素养,抓紧钻研军事教育、军事科研、军事训练特点和规律,不断提高知识化、专业化水平,努力成为教学科研训练的内行领导和专门家。要坚持理论和实践相结合,打造具有中国特色和国际视野的军事学术话语体系,形成无愧于时代的当代中国军事学术思想和学术成果。要发扬创新精神,勇于创新、勇于超越,努力开拓具有我军特色的军事人才培养和军事科研新路子。四是着力培育良好作风,坚持从严治校、从严治教、从严治学、从严治训,发扬我军教学科研训练战线光荣传统和优良作风,教育和引导广大教学科研人员砥砺精神品格、端正价值追求,发扬科学精神、奉献精神、苦战作风,立足本职岗位开拓进取、追求卓越。</p><p style=\"text-indent: 2em;\">\r\n 会议期间,习近平分别接见了军事科学院、国防大学、国防科技大学领导班子成员,正师级以上军队院校、科研机构、训练机构主要领导并合影留念。</p><p style=\"text-indent: 2em;\">\r\n 中共中央政治局委员、中央军委副主席范长龙,中共中央政治局委员、中央军委副主席许其亮,中央军委委员常万全、房峰辉、张阳、赵克石、张又侠、吴胜利、马晓天、魏凤和参加活动。</p><p style=\"text-align: right;\"><em id=\"p_editor\">(责编:袁勃、刘军涛)</em><br/></p>', '人民网', '人民网', '30', 'http://pic.people.com.cn/n1/2017/0719/c1016-29416015.html', '习近平', '1', '1', 'attachment/2017/07/20/53501500539552.jpg', '0', '9', '2017-07-20 08:48:32', '2017-07-20 21:36:34', '科技'); INSERT INTO `article` VALUES ('14', 'ASs', '0', '', '', '', 'asS', '0', '', 'Sas', '0', '0', 'attachment/2017/07/11/99651499788771.jpg', '0', '8', '2017-07-20 21:37:35', '2017-07-20 21:37:35', '1'); INSERT INTO `article` VALUES ('15', 'ASD', '0', '', '', '', 'SAD', '0', '', 'ASDA', '0', '0', 'attachment/2017/07/11/58011499777504.jpg', '0', '8', '2017-07-20 21:37:51', '2017-07-20 21:37:51', 'S'); INSERT INTO `article` VALUES ('16', 'S', '0', '', '', '', 'AS', '0', '', '', '0', '0', 'attachment/2017/07/11/8311499780275.jpg', '0', '8', '2017-07-20 21:38:08', '2017-07-20 21:38:08', 'SD'); INSERT INTO `article` VALUES ('17', 'AS', '0', '', '', '', '', '0', '', '', '0', '0', 'attachment/2017/07/11/4581499779006.jpg', '0', '8', '2017-07-20 21:38:23', '2017-07-20 21:38:23', 'SDS'); INSERT INTO `article` VALUES ('18', 'qwert', '0', '', '', '', '', '0', '', '', '0', '0', 'attachment/2017/07/11/58011499777504.jpg', '0', '2', '2017-07-20 21:46:35', '2017-07-20 21:46:35', 'd'); -- ---------------------------- -- Table structure for `attachment` -- ---------------------------- CREATE TABLE `attachment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(11) NOT NULL COMMENT '会员编号', `name` varchar(80) NOT NULL, `filename` varchar(300) NOT NULL COMMENT '文件名', `path` varchar(300) NOT NULL COMMENT '文件路径', `extension` varchar(10) NOT NULL DEFAULT '' COMMENT '文件类型', `createtime` int(10) NOT NULL COMMENT '上传时间', `size` mediumint(9) NOT NULL COMMENT '文件大小', `data` varchar(100) NOT NULL DEFAULT '' COMMENT '辅助信息', `status` tinyint(1) unsigned NOT NULL COMMENT '状态', `content` text NOT NULL COMMENT '扩展数据内容', PRIMARY KEY (`id`), KEY `data` (`data`), KEY `extension` (`extension`), KEY `status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='附件'; -- ---------------------------- -- Records of attachment -- ---------------------------- INSERT INTO `attachment` VALUES ('1', '0', '16.jpg', '16', 'attachment/2017/07/11/53761499765260.jpg', 'jpg', '1499765260', '81773', '', '0', ''); INSERT INTO `attachment` VALUES ('2', '0', '29.jpg', '29', 'attachment/2017/07/11/81791499765366.jpg', 'jpg', '1499765366', '145764', '', '0', ''); INSERT INTO `attachment` VALUES ('3', '0', '29.jpg', '29', 'attachment/2017/07/11/33131499766380.jpg', 'jpg', '1499766380', '145764', '', '0', ''); INSERT INTO `attachment` VALUES ('4', '0', '09.jpg', '09', 'attachment/2017/07/11/38131499766408.jpg', 'jpg', '1499766408', '525257', '', '0', ''); INSERT INTO `attachment` VALUES ('5', '0', '18.jpg', '18', 'attachment/2017/07/11/44811499766445.jpg', 'jpg', '1499766445', '297270', '', '0', ''); INSERT INTO `attachment` VALUES ('6', '0', '10.jpg', '10', 'attachment/2017/07/11/1211499766474.jpg', 'jpg', '1499766474', '68852', '', '0', ''); INSERT INTO `attachment` VALUES ('7', '0', '3.jpg', '3', 'attachment/2017/07/11/76991499774534.jpg', 'jpg', '1499774534', '4112', '', '0', ''); INSERT INTO `attachment` VALUES ('8', '0', '04.jpg', '04', 'attachment/2017/07/11/58011499777504.jpg', 'jpg', '1499777504', '232682', '', '0', ''); INSERT INTO `attachment` VALUES ('9', '0', '03.jpg', '03', 'attachment/2017/07/11/4581499779006.jpg', 'jpg', '1499779006', '125944', '', '0', ''); INSERT INTO `attachment` VALUES ('10', '0', '18.jpg', '18', 'attachment/2017/07/11/8311499780275.jpg', 'jpg', '1499780275', '297270', '', '0', ''); INSERT INTO `attachment` VALUES ('11', '0', '19.jpg', '19', 'attachment/2017/07/11/54661499780288.jpg', 'jpg', '1499780288', '200748', '', '0', ''); INSERT INTO `attachment` VALUES ('12', '0', '08.jpg', '08', 'attachment/2017/07/11/50111499780602.jpg', 'jpg', '1499780602', '384161', '', '0', ''); INSERT INTO `attachment` VALUES ('13', '0', '29.jpg', '29', 'attachment/2017/07/11/52831499788701.jpg', 'jpg', '1499788701', '145764', '', '0', ''); INSERT INTO `attachment` VALUES ('14', '0', '28.jpg', '28', 'attachment/2017/07/11/99651499788771.jpg', 'jpg', '1499788771', '82574', '', '0', ''); INSERT INTO `attachment` VALUES ('15', '0', '3.jpg', '3', 'attachment/2017/07/20/49701500532174.jpg', 'jpg', '1500532174', '134342', '', '0', ''); INSERT INTO `attachment` VALUES ('16', '0', '1.jpg', '1', 'attachment/2017/07/20/14311500532293.jpg', 'jpg', '1500532293', '145359', '', '0', ''); INSERT INTO `attachment` VALUES ('17', '0', '92771499738868.jpg', '92771499738868', 'attachment/2017/07/20/53501500539552.jpg', 'jpg', '1500539552', '191415', '', '0', ''); -- ---------------------------- -- Table structure for `base_content` -- ---------------------------- CREATE TABLE `base_content` ( `bid` int(11) NOT NULL AUTO_INCREMENT, `content` varchar(255) NOT NULL, `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime NOT NULL COMMENT '更新时间', PRIMARY KEY (`bid`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of base_content -- ---------------------------- INSERT INTO `base_content` VALUES ('2', '踏破凌霄~', '2017-07-17 17:44:45', '2017-07-17 20:34:00'); INSERT INTO `base_content` VALUES ('3', '四大皆空~', '2017-07-17 17:48:15', '2017-07-17 20:34:13'); -- ---------------------------- -- Table structure for `category` -- ---------------------------- CREATE TABLE `category` ( `cid` int(11) NOT NULL AUTO_INCREMENT, `catname` char(30) NOT NULL COMMENT '栏目名称', `pid` int(11) NOT NULL COMMENT '父级id', `description` varchar(255) NOT NULL COMMENT '栏目描述', `linkurl` varchar(255) NOT NULL COMMENT '栏目跳转地址', `orderby` smallint(6) NOT NULL COMMENT '排序', `thumb` varchar(255) NOT NULL COMMENT '栏目缩略图', `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime NOT NULL COMMENT '更新时间', `iscover` tinyint(4) NOT NULL, PRIMARY KEY (`cid`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of category -- ---------------------------- INSERT INTO `category` VALUES ('1', '娱乐', '0', '娱乐描述', 'http://www.houdunwang.com', '50', 'attachment/2017/07/11/50111499780602.jpg', '2017-07-10 22:07:35', '2017-07-20 14:57:17', '0'); INSERT INTO `category` VALUES ('2', '体育', '0', '体育描述', 'http://www.houdunwang.com', '10', 'attachment/2017/07/11/76991499774534.jpg', '2017-07-10 22:07:35', '2017-07-20 15:50:16', '0'); INSERT INTO `category` VALUES ('3', 'KTV', '1', 'KTV描述', 'http://www.houdunwang.com', '60', 'attachment/2017/07/11/52831499788701.jpg', '2017-07-10 22:07:35', '2017-07-11 23:58:28', '0'); INSERT INTO `category` VALUES ('4', '篮球', '2', '啦啦啦啦啦', 'www.baidu.com', '93', 'attachment/2017/07/11/54661499780288.jpg', '2017-07-11 17:01:40', '2017-07-11 23:57:25', '0'); INSERT INTO `category` VALUES ('5', '乒乓球', '2', '乒乓球', 'blog.daniel-w.cn', '30', 'attachment/2017/07/11/8311499780275.jpg', '2017-07-11 17:28:08', '2017-07-20 14:57:55', '0'); INSERT INTO `category` VALUES ('7', '桌球', '1', '戴维斯', 'blog.daniel-w.cn', '12', 'attachment/2017/07/11/99651499788771.jpg', '2017-07-11 23:59:57', '2017-07-11 23:59:57', '0'); INSERT INTO `category` VALUES ('8', '诗词歌赋', '0', '余忆童稚时,能张目对日,明察秋毫,见藐小之物必细察其纹理,故时有物外之趣', 'blog.daniel-w.cn', '60', 'attachment/2017/07/11/54661499780288.jpg', '2017-07-12 00:35:06', '2017-07-20 15:50:59', '1'); INSERT INTO `category` VALUES ('9', '新闻', '0', '', 'http://pic.people.com.cn/n1/2017/0719/c1016-29416015.html', '23', 'attachment/2017/07/11/54661499780288.jpg', '2017-07-20 08:45:43', '2017-07-20 08:45:43', '0'); -- ---------------------------- -- Table structure for `config` -- ---------------------------- CREATE TABLE `config` ( `id` int(11) NOT NULL AUTO_INCREMENT, `content` text NOT NULL, `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of config -- ---------------------------- INSERT INTO `config` VALUES ('1', '{\"csrf_token\":\"\",\"webname\":\"cms.daniel-w.cn\",\"keywords\":\"就是这么牛~~~\",\"description\":\"网站描述\",\"icp\":\"京ICP备17035385号-1\",\"phone\":\"客服电话\",\"wechat\":\"微信公众号\",\"rows\":\"2\"}', '2017-07-12 15:12:23', '2017-07-20 16:43:43'); -- ---------------------------- -- Table structure for `keywords` -- ---------------------------- CREATE TABLE `keywords` ( `kid` int(11) NOT NULL AUTO_INCREMENT, `module` char(255) NOT NULL, `content` char(255) NOT NULL, `content_id` smallint(6) NOT NULL, `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime NOT NULL COMMENT '更新时间', PRIMARY KEY (`kid`) ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of keywords -- ---------------------------- INSERT INTO `keywords` VALUES ('2', 'base', '悟空', '2', '2017-07-17 17:44:45', '2017-07-17 20:34:00'); INSERT INTO `keywords` VALUES ('3', 'base', '小空', '3', '2017-07-17 17:48:15', '2017-07-17 20:34:13'); INSERT INTO `keywords` VALUES ('4', 'article', '过', '2', '2017-07-17 19:10:37', '2017-07-20 21:56:21'); INSERT INTO `keywords` VALUES ('5', 'article', '满江红', '1', '2017-07-17 20:36:06', '2017-07-20 21:36:44'); INSERT INTO `keywords` VALUES ('11', 'article', '111', '6', '2017-07-18 09:49:55', '2017-07-20 21:45:07'); INSERT INTO `keywords` VALUES ('12', 'article', '科技', '13', '2017-07-20 08:48:32', '2017-07-20 21:36:34'); INSERT INTO `keywords` VALUES ('13', 'article', '1', '14', '2017-07-20 21:37:35', '2017-07-20 21:37:35'); INSERT INTO `keywords` VALUES ('14', 'article', 'S', '15', '2017-07-20 21:37:51', '2017-07-20 21:37:51'); INSERT INTO `keywords` VALUES ('15', 'article', 'SD', '16', '2017-07-20 21:38:08', '2017-07-20 21:38:08'); INSERT INTO `keywords` VALUES ('16', 'article', 'SDS', '17', '2017-07-20 21:38:23', '2017-07-20 21:38:23'); INSERT INTO `keywords` VALUES ('17', 'article', 'd', '18', '2017-07-20 21:46:35', '2017-07-20 21:46:35'); -- ---------------------------- -- Table structure for `migrations` -- ---------------------------- CREATE TABLE `migrations` ( `migration` varchar(255) NOT NULL, `batch` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of migrations -- ---------------------------- INSERT INTO `migrations` VALUES ('170710072629_CreateCategoryTable.php', '1'); INSERT INTO `migrations` VALUES ('170710074823_CreateArticleTable.php', '2'); INSERT INTO `migrations` VALUES ('170710080125_CreateUserTable.php', '3'); INSERT INTO `migrations` VALUES ('170710080611_CreateConfigTable.php', '4'); INSERT INTO `migrations` VALUES ('170710080820_CreateSlideTable.php', '5'); INSERT INTO `migrations` VALUES ('170711075456_CreateArticleTable.php', '6'); INSERT INTO `migrations` VALUES ('170713021426_CreateWechatConfigTable.php', '7'); INSERT INTO `migrations` VALUES ('170713041126_CreateModulesTable.php', '8'); INSERT INTO `migrations` VALUES ('170713041749_CreateModulesTable.php', '9'); INSERT INTO `migrations` VALUES ('170717022602_CreateKeywordsTable.php', '10'); INSERT INTO `migrations` VALUES ('170717023410_CreateBaceContentTable.php', '11'); INSERT INTO `migrations` VALUES ('170717042155_CreateBaseContentTable.php', '12'); INSERT INTO `migrations` VALUES ('170717045332_CreateKeywordsTable.php', '13'); INSERT INTO `migrations` VALUES ('170717045436_CreateBaseContentTable.php', '14'); INSERT INTO `migrations` VALUES ('170717045546_CreateBaseContentTable.php', '15'); INSERT INTO `migrations` VALUES ('170717060320_article_add_field_wechat_keywords.php', '16'); INSERT INTO `migrations` VALUES ('170717060737_article_add_field_wechat_keywords.php', '17'); INSERT INTO `migrations` VALUES ('170719031652_category_add_filed_iscover.php', '18'); -- ---------------------------- -- Table structure for `modules` -- ---------------------------- CREATE TABLE `modules` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL COMMENT '模块英文标识', `title` varchar(255) NOT NULL COMMENT '模块名称', `resume` varchar(255) NOT NULL COMMENT '模块介绍', `author` varchar(255) NOT NULL COMMENT '模块作者', `preview` varchar(255) NOT NULL COMMENT '模块预览', `is_system` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否为系统模块', `is_wechat` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否处理微信', `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of modules -- ---------------------------- INSERT INTO `modules` VALUES ('1', 'student', '学生', '学生模块', 'daniel', 'attachment/2017/07/11/52831499788701.jpg', '0', '1', '2017-07-16 19:52:13', '2017-07-16 19:52:13'); INSERT INTO `modules` VALUES ('2', 'base', '', '', '', '', '1', '1', '0000-00-00 00:00:00', '0000-00-00 00:00:00'); INSERT INTO `modules` VALUES ('3', 'article', '', '', '', '', '1', '1', '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- ---------------------------- -- Table structure for `seeds` -- ---------------------------- CREATE TABLE `seeds` ( `seed` varchar(255) NOT NULL, `batch` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of seeds -- ---------------------------- INSERT INTO `seeds` VALUES ('170710100647_CategoryTableSeeder.php', '1'); -- ---------------------------- -- Table structure for `slide` -- ---------------------------- CREATE TABLE `slide` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL COMMENT '幻灯片标题', `url` varchar(255) NOT NULL COMMENT '幻灯片地址', `displayorder` varchar(255) NOT NULL COMMENT '幻灯片显示要求', `thumb` varchar(255) NOT NULL COMMENT '幻灯片翻阅', `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of slide -- ---------------------------- INSERT INTO `slide` VALUES ('1', '满江红', 'http://cms.daniel-w.cn/a_1.html', '10', 'attachment/2017/07/20/49701500532174.jpg', '2017-07-20 14:29:37', '2017-07-20 14:29:37'); INSERT INTO `slide` VALUES ('2', '跳转', 'http://weibo.com/3895426100/profile?rightmod=1&wvr=6&mod=personinfo&is_all=1', '', 'attachment/2017/07/20/14311500532293.jpg', '2017-07-20 14:31:35', '2017-07-20 14:32:06'); -- ---------------------------- -- Table structure for `user` -- ---------------------------- CREATE TABLE `user` ( `uid` int(11) NOT NULL AUTO_INCREMENT, `username` char(255) NOT NULL COMMENT '用户名', `password` varchar(255) NOT NULL COMMENT '用户密码', `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime NOT NULL COMMENT '更新时间', PRIMARY KEY (`uid`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of user -- ---------------------------- -- ---------------------------- -- Table structure for `wechat_config` -- ---------------------------- CREATE TABLE `wechat_config` ( `id` int(11) NOT NULL AUTO_INCREMENT, `content` text NOT NULL, `created_at` datetime NOT NULL COMMENT '创建时间', `updated_at` datetime NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of wechat_config -- ---------------------------- INSERT INTO `wechat_config` VALUES ('1', '{\"csrf_token\":\"\",\"webname\":\"吾若成魔佛奈我何\",\"account\":\"wq-olympic\",\"appid\":\"wx9a1b880355f1ebb7\",\"appsecret\":\"<KEY>\",\"token\":\"9baad477c278a9817d90bc49537c8265\",\"encodingaeskey\":\"<KEY>\",\"subscribe\":\"你好\",\"default\":\"滚蛋~~~\"}', '2017-07-13 14:37:24', '2017-07-14 15:20:24');
<gh_stars>1-10  DELETE from dbo.tb_Person where name = 'some name' SELECT t.Name ,t.Age FROM tb_Account t left join tb_Balance b ON t.AccountID = b.AccountID WHERE t.Name = 'Person with no Name' AND b.Balance > 0 SELECT t.Name ,Age FROM tb_Account t inner join tb_AccountInfo a ON t.AccountID = a.AccountID WHERE t.Name = 'Person with a Name' AND a.Balance > 0 SELECT Name ,Age FROM tb_Account DELETE t FROM tb_test1 t left join tb_test2 b ON t.AccountID = b.AccountID WHERE t.col1 = 'some string' AND b.col2 > 0
DROP VIEW IF EXISTS view_persediaan_barang4_bppkp; CREATE VIEW view_persediaan_barang4_bppkp AS SELECT *, saldo * harga AS jumlah_harga FROM view_persediaan_barang3_bppkp WHERE 1 = 1 AND saldo > 0 AND id_skpd = 15; GRANT ALL PRIVILEGES ON view_persediaan_barang4_bppkp TO lap_bppkp; REVOKE INSERT, UPDATE, DELETE ON view_persediaan_barang4_bppkp FROM lap_bppkp;
LOOP -- some computations EXIT WHEN count > 100; CONTINUE WHEN count < 50; -- some computations for count IN [50 .. 100] END LOOP;
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : 127.0.0.1_3306 Source Server Version : 50553 Source Host : 127.0.0.1:3306 Source Database : shop Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-08-18 14:57:53 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `shop_address` -- ---------------------------- DROP TABLE IF EXISTS `shop_address`; CREATE TABLE `shop_address` ( `addressid` bigint(11) NOT NULL AUTO_INCREMENT, `firstname` varchar(32) DEFAULT NULL, `lastname` varchar(32) DEFAULT NULL, `company` varchar(100) DEFAULT NULL, `address` text, `postcode` char(6) DEFAULT NULL, `email` varchar(100) DEFAULT NULL, `telephone` varchar(20) DEFAULT NULL, `userid` bigint(11) DEFAULT NULL, `createtime` int(11) DEFAULT NULL, PRIMARY KEY (`addressid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of shop_address -- ---------------------------- -- ---------------------------- -- Table structure for `shop_admin` -- ---------------------------- DROP TABLE IF EXISTS `shop_admin`; CREATE TABLE `shop_admin` ( `adminid` int(11) NOT NULL AUTO_INCREMENT, `adminuser` varchar(32) DEFAULT NULL, `adminpass` char(32) DEFAULT NULL, `adminemail` varchar(50) DEFAULT NULL, `logintime` int(11) DEFAULT NULL, `loginip` bigint(11) DEFAULT NULL, `createtime` int(11) DEFAULT NULL, PRIMARY KEY (`adminid`) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of shop_admin -- ---------------------------- INSERT INTO `shop_admin` VALUES ('1', 'admin', '81dc9bdb52d04dc20036dbd8313ed055', '<EMAIL>', '1534411227', '2130706433', null); INSERT INTO `shop_admin` VALUES ('9', 'admin', 'd81f9c1be2e08964bf9f24b15f0e4900', '<EMAIL>', '1534411227', '2130706433', null); INSERT INTO `shop_admin` VALUES ('4', 'admin156', '202cb962ac59075b964b07152d234b70', '<EMAIL>', '1533173685', '2130706433', null); INSERT INTO `shop_admin` VALUES ('5', 'admin1563', '202cb962ac59075b964b07152d234b70', '<EMAIL>', null, null, null); INSERT INTO `shop_admin` VALUES ('6', 'adminrero', '202cb962ac59075b964b07152d234b70', '<EMAIL>', null, null, null); INSERT INTO `shop_admin` VALUES ('7', 'adminrer1', '76d80224611fc919a5d54f0ff9fba446', '<EMAIL>', null, null, null); INSERT INTO `shop_admin` VALUES ('10', 'wqeq', 'd81f9c1be2e08964bf9f24b15f0e4900', '<EMAIL>', null, null, null); INSERT INTO `shop_admin` VALUES ('11', 'admin', 'd81f9c1be2e08964bf9f24b15f0e4900', '<EMAIL>', null, null, null); -- ---------------------------- -- Table structure for `shop_cart` -- ---------------------------- DROP TABLE IF EXISTS `shop_cart`; CREATE TABLE `shop_cart` ( `cartid` bigint(11) NOT NULL AUTO_INCREMENT, `productid` bigint(11) DEFAULT NULL, `productnum` int(11) DEFAULT NULL, `price` decimal(10,0) DEFAULT NULL, `userid` bigint(11) DEFAULT NULL, `createtime` int(11) DEFAULT NULL, PRIMARY KEY (`cartid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of shop_cart -- ---------------------------- -- ---------------------------- -- Table structure for `shop_category` -- ---------------------------- DROP TABLE IF EXISTS `shop_category`; CREATE TABLE `shop_category` ( `cateid` bigint(11) NOT NULL AUTO_INCREMENT, `title` varchar(32) DEFAULT NULL, `parentid` bigint(11) DEFAULT NULL, `createtime` int(11) DEFAULT NULL, PRIMARY KEY (`cateid`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of shop_category -- ---------------------------- INSERT INTO `shop_category` VALUES ('2', '衣服', '0', '1533362657'); INSERT INTO `shop_category` VALUES ('3', '袜子', '0', '1533362672'); INSERT INTO `shop_category` VALUES ('4', '丝袜', '3', '1533362693'); -- ---------------------------- -- Table structure for `shop_order` -- ---------------------------- DROP TABLE IF EXISTS `shop_order`; CREATE TABLE `shop_order` ( `orderid` bigint(11) NOT NULL AUTO_INCREMENT, `userid` bigint(11) DEFAULT NULL, `addressid` bigint(11) DEFAULT NULL, `amount` decimal(10,0) DEFAULT NULL, `status` int(11) DEFAULT NULL, `expressno` varchar(50) DEFAULT NULL, `createtime` int(11) DEFAULT NULL, `updatetime` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `tradeno` varchar(100) DEFAULT NULL, `tradeext` text, PRIMARY KEY (`orderid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of shop_order -- ---------------------------- -- ---------------------------- -- Table structure for `shop_order_detail` -- ---------------------------- DROP TABLE IF EXISTS `shop_order_detail`; CREATE TABLE `shop_order_detail` ( `detailid` bigint(11) NOT NULL AUTO_INCREMENT, `productid` bigint(11) DEFAULT NULL, `price` decimal(10,0) DEFAULT NULL, `productnum` int(11) DEFAULT NULL, `orderid` bigint(11) DEFAULT NULL, `createtime` int(11) DEFAULT NULL, PRIMARY KEY (`detailid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of shop_order_detail -- ---------------------------- -- ---------------------------- -- Table structure for `shop_product` -- ---------------------------- DROP TABLE IF EXISTS `shop_product`; CREATE TABLE `shop_product` ( `productid` bigint(11) NOT NULL AUTO_INCREMENT, `cateid` bigint(11) DEFAULT NULL, `title` varchar(200) DEFAULT NULL, `descr` text, `num` bigint(11) DEFAULT NULL, `price` decimal(10,0) DEFAULT NULL, `cover` varchar(200) DEFAULT NULL, `pics` text, `issale` enum('') DEFAULT NULL, `saleprice` decimal(10,0) DEFAULT NULL, `ishot` enum('') DEFAULT NULL, `createtime` int(11) DEFAULT NULL, `ison` varchar(200) DEFAULT NULL, `istui` varchar(11) DEFAULT NULL, PRIMARY KEY (`productid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of shop_product -- ---------------------------- -- ---------------------------- -- Table structure for `shop_profile` -- ---------------------------- DROP TABLE IF EXISTS `shop_profile`; CREATE TABLE `shop_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `truename` varchar(32) DEFAULT NULL, `age` tinyint(11) DEFAULT NULL, `sex` enum('') DEFAULT NULL, `birthday` date DEFAULT NULL, `nickname` varchar(32) DEFAULT NULL, `company` varchar(100) DEFAULT NULL, `userid` int(11) DEFAULT NULL, `createtime` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of shop_profile -- ---------------------------- -- ---------------------------- -- Table structure for `shop_user` -- ---------------------------- DROP TABLE IF EXISTS `shop_user`; CREATE TABLE `shop_user` ( `userid` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(32) DEFAULT NULL, `userpass` char(32) DEFAULT NULL, `useremail` varchar(100) DEFAULT NULL, `createtime` int(11) DEFAULT NULL, `openid` char(32) DEFAULT NULL, PRIMARY KEY (`userid`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of shop_user -- ---------------------------- INSERT INTO `shop_user` VALUES ('1', 'eqwe q', '202cb962ac59075b964b07152d234b70', '<EMAIL>', '1533194233', null);
select title from book_catalogue where publisher = ’McGraw Hill Education’
<filename>MS SQL - September 2019/02. Basic CRUD - Exercises/16.CreateViewEmployeesWithSalaries.sql CREATE VIEW v_EmployeesSalaries AS SELECT e.FirstName, e.LastName, e.Salary FROM Employees AS e
<reponame>djfrailey/zephyr CREATE TABLE `users` ( `email_address` VARCHAR(255) NOT NULL, `username` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL, PRIMARY KEY (`email_address`) ) ENGINE=InnoDB DEFAULT charset=utf8mb4 COLLATE=utf8mb4_unicode_ci; CREATE TABLE `metrics` ( `email_address` VARCHAR(255) NOT NULL, `metric_type` VARCHAR(255) NOT NULL, `value` DECIMAL(12, 3) NOT NULL, `date` DATE NOT NULL ) ENGINE=InnoDB DEFAULT charset=utf8mb4 COLLATE=utf8mb4_unicode_ci; CREATE TABLE `account_lookup` ( `user_email_address` VARCHAR(255) NOT NULL, `account_identifier` int(11) NOT NULL, `account_type` VARCHAR(255) NOT NULL ) ENGINE=InnoDB DEFAULT charset=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE nicknames ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, user_id INT UNSIGNED NOT NULL, discord_guild_id BIGINT NOT NULL, name varchar(100) NOT NULL, created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, deleted_at timestamp NULL DEFAULT NULL, PRIMARY KEY (id), UNIQUE (user_id, discord_guild_id), INDEX (user_id, discord_guild_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DEF title = 'SQL Using Literals or Many Children (GV$SQL GV$SQLAREA)'; DEF filename = 'SqlLiterals.html'; DEF nextpage = 'SqlPlanBaselines.html'; DEF prevpage = 'BlockingSql.html'; @@00_begin.sql PRO PRO SET MARK HTML OFF; PRO <h2>SQL using literals or many children:</h2> SET MARK HTML ON TABLE "class=sortable"; @@sql/sub/SqlLiterals.sql SET MARK HTML OFF; PRO <h2>Child cursor count:</h2> SET MARK HTML ON TABLE "class=sortable"; @@sql/sub/ChildCursor.sql SET MARK HTML OFF; PRO <h2>Check how many SQL in the library cache are for dynamic sampling:</h2> SET MARK HTML ON TABLE "class=sortable"; @@sql/sub/DynamicSampling.sql @@00_end.sql
<reponame>VaclavElias/Emsi CREATE TABLE [Skills] ( [Id] TEXT NOT NULL , [InfoUrl] TEXT NOT NULL , [Name] TEXT NOT NULL , [RemovedDescription] TEXT NULL , CONSTRAINT [PK_Skill] PRIMARY KEY ([Id]) ); CREATE TABLE [Metas] ( [LatestVersion] text NOT NULL , CONSTRAINT [sqlite_autoindex_Metas_1] PRIMARY KEY ([LatestVersion]) );
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Feb 20, 2020 at 05:49 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `test` -- -- -------------------------------------------------------- -- -- Table structure for table `tb_test` -- CREATE TABLE `tb_test` ( `id` int(11) NOT NULL, `Name` varchar(50) NOT NULL, `Email` varchar(30) NOT NULL, `Gender` varchar(10) NOT NULL, `City` varchar(20) NOT NULL, `Status` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tb_test` -- INSERT INTO `tb_test` (`id`, `Name`, `Email`, `Gender`, `City`, `Status`) VALUES (2, 'ibnu', '<EMAIL>', 'Male', 'Solo', 'Pelajar'), (12, 'ibnuu', '<EMAIL>', 'Male', 'Sukoharjo', 'Pelajar'); -- -- Indexes for dumped tables -- -- -- Indexes for table `tb_test` -- ALTER TABLE `tb_test` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tb_test` -- ALTER TABLE `tb_test` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
SELECT * FROM projects ORDER BY start_date , name LIMIT 10;
SELECT a_int FROM types_i WHERE a_int = 1
<filename>HealthCheck/MonitorAGReplicaRoles.sql ------------------------------ -- Monitor AG Replica Roles -- Author: MLavery -- Date: 18/06/2018 -- -- When Who What -- 2018-07-04 MLavery Added NOCOUNT -- ------------------------------ SET NOCOUNT ON; -- 1. Monitor Replica Roles of the AG -- Alternatively use the AG Dashboard SELECT n.group_name , n.replica_server_name , n.node_name , rs.role_desc FROM sys.dm_hadr_availability_replica_cluster_nodes n JOIN sys.dm_hadr_availability_replica_cluster_states cs ON n.replica_server_name = cs.replica_server_name JOIN sys.dm_hadr_availability_replica_states rs ON rs.replica_id = cs.replica_id ORDER BY group_name, replica_server_name SET NOCOUNT OFF;
<filename>Database Basics/MSSQL Server Exam - 24 April 2017/MSSQL Server Exam - 24 April 2017/20. Vendor Preference.sql WITH CTE_PartsByMechanicAndVendor(MechanicId, [Mechanic Full Name], [Vendor], [Parts]) AS( SELECT m.MechanicId, m.FirstName + ' ' + m.LastName AS [Mechanic Full Name], v.Name AS [Vendor] , SUM(op.Quantity) AS [Parts] FROM Vendors AS v JOIN Parts AS p ON p.VendorId = v.VendorId JOIN OrderParts AS op ON op.PartId = p.PartId JOIN Orders AS o ON o.OrderId = op.OrderId JOIN Jobs AS j ON j.JobId = o.JobId JOIN Mechanics AS m ON m.MechanicId = j.MechanicId GROUP BY m.MechanicId , m.FirstName + ' ' + m.LastName, v.Name), CTE_PartsByMechanic(MechanicId, PartsTotalQantity) AS( SELECT pmv.MechanicId, SUM(Parts) AS PartsTotalQantity FROM CTE_PartsByMechanicAndVendor AS pmv GROUP BY pmv.MechanicId ) SELECT pmv.[Mechanic Full Name], pmv.Vendor, pmv.Parts, CONCAT(CAST(CAST(pmv.Parts AS DECIMAL) / CAST(pm.PartsTotalQantity AS DECIMAL) * 100 AS INT), '%') AS Preference FROM CTE_PartsByMechanicAndVendor AS pmv JOIN CTE_PartsByMechanic AS pm ON pm.MechanicId = pmv.MechanicId ORDER BY pmv.[Mechanic Full Name], pmv.Parts DESC, pmv.Vendor
UPDATE oppdrag SET status = 'AKSEPTERT' WHERE fagsystem_id = 'POMGJZFCQFGZVLG2O5SCLDVPIQ' AND avstemmingsnokkel = '1618823296742431266';
<filename>src/main/resources/oracle/V1__init.sql<gh_stars>1-10 CREATE TABLE books ( id NUMBER GENERATED by default on null as IDENTITY, name varchar(255), author varchar(255) );
USE hyperparameter; ALTER TABLE Algorithm ADD INDEX ind_Algorithm(Algorithm_ID); ALTER TABLE Dataset ADD INDEX ind_Dataset(Dataset_ID); ALTER TABLE DataSet_Description ADD INDEX ind_DataSet_Description(Column_ID); ALTER TABLE DRF_Hyperparameters ADD INDEX ind_DRF_Hyperparameters(Model_name); ALTER TABLE GBM_Hyperparameters ADD INDEX ind_GBM_Hyperparameters(Model_name); ALTER TABLE GLM_Hyperparameters ADD INDEX ind_GLM_Hyperparameters(Model_name); ALTER TABLE XRT_Hyperparameters ADD INDEX ind_XRT_Hyperparameters(Model_name); ALTER TABLE Model ADD INDEX ind_Model(Model_name); ALTER TABLE Model_Metrics ADD INDEX ind_Model_Metrics(Model_name); ALTER TABLE Model_Runtime ADD INDEX ind_Model_Runtime(Runtime_ID);
SELECT "MLB_65"."league" AS "league" FROM "MLB_65" GROUP BY "MLB_65"."league" ORDER BY "league" ASC ;
<filename>plugins/git/db/uninstall.sql<gh_stars>1-10 DROP TABLE IF EXISTS plugin_git_post_receive_mail; DROP TABLE IF EXISTS plugin_git_post_receive_notification_user; DROP TABLE IF EXISTS plugin_git_post_receive_notification_ugroup; DROP TABLE IF EXISTS plugin_git_log; DROP TABLE IF EXISTS plugin_git_ci; DROP TABLE IF EXISTS plugin_git; DROP TABLE IF EXISTS plugin_git_remote_servers; DROP TABLE IF EXISTS plugin_git_remote_ugroups; DROP TABLE IF EXISTS plugin_git_housekeeping; DROP TABLE IF EXISTS plugin_git_gerrit_config_template; DROP TABLE IF EXISTS plugin_git_mirrors; DROP TABLE IF EXISTS plugin_git_repository_mirrors; DROP TABLE IF EXISTS plugin_git_restricted_mirrors; DROP TABLE IF EXISTS plugin_git_restricted_mirrors_allowed_projects; DROP TABLE IF EXISTS plugin_git_default_project_mirrors; DROP TABLE IF EXISTS plugin_git_webhook_url; DROP TABLE IF EXISTS plugin_git_webhook_log; DROP TABLE IF EXISTS plugin_git_repository_fine_grained_permissions_enabled; DROP TABLE IF EXISTS plugin_git_full_history; DROP TABLE IF EXISTS plugin_git_full_history_checkpoint; DROP TABLE IF EXISTS plugin_git_log_read_daily; DROP TABLE IF EXISTS plugin_git_file_logs_parse; DROP TABLE IF EXISTS plugin_git_fine_grained_regexp_enabled; DROP TABLE IF EXISTS plugin_git_repository_fine_grained_regexp_enabled; DROP TABLE IF EXISTS plugin_git_default_fine_grained_regexp_enabled; DROP TABLE IF EXISTS plugin_git_restricted_gerrit_servers; DROP TABLE IF EXISTS plugin_git_restricted_gerrit_servers_allowed_projects; DROP TABLE IF EXISTS plugin_git_global_parameters; DROP TABLE IF EXISTS plugin_git_big_object_authorized_project; DROP TABLE IF EXISTS plugin_git_commit_status; DROP TABLE IF EXISTS plugin_git_default_fine_grained_permissions; DROP TABLE IF EXISTS plugin_git_default_fine_grained_permissions_enabled; DROP TABLE IF EXISTS plugin_git_default_fine_grained_permissions_writers; DROP TABLE IF EXISTS plugin_git_default_fine_grained_permissions_rewinders; DROP TABLE IF EXISTS plugin_git_repository_fine_grained_permissions; DROP TABLE IF EXISTS plugin_git_repository_fine_grained_permissions_writers; DROP TABLE IF EXISTS plugin_git_repository_fine_grained_permissions_rewinders; DROP TABLE IF EXISTS plugin_git_commit_details_cache; DROP TABLE IF EXISTS plugin_git_change_build_status_permissions; DELETE FROM service WHERE short_name='plugin_git'; DELETE FROM reference_group WHERE reference_id=30; DELETE FROM reference WHERE id=30; DELETE FROM reference_group WHERE reference_id=33; DELETE FROM reference WHERE id=33; DELETE FROM user_access_key_scope WHERE scope_key = 'write:git_repository'; DELETE FROM permissions_values WHERE permission_type IN ('PLUGIN_GIT_READ', 'PLUGIN_GIT_WRITE', 'PLUGIN_GIT_WPLUS', 'PLUGIN_GIT_ADMIN');
-- file:brin.sql ln:322 expect:false IF NOT plan_ok THEN RAISE WARNING 'did not get bitmap indexscan plan for %', r
<filename>php/zavod.sql CREATE or replace TABLE typ_zavodu ( id smallint NOT NULL AUTO_INCREMENT, nazev varchar(32) not null, vaha decimal(4,2) not null default 1, comment varchar(100), typ smallint COMMENT '#1=mistrovsky, 2=nemistrovsky, 3=druzstva, 9=turnajpripravek', sortorder smallint default 9, PRIMARY KEY (id), UNIQUE KEY u_zt (nazev), check (typ in (1,2,3,9)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; insert into typ_zavodu(nazev, comment, typ, sortorder) values ('<NAME>', '', 9, 99), ('mistrovství sveta','',1,11), ('mistrovství evropy','',1,10), ('mistrovství ČR','',1,9), ('mistrovství kraje','???',1,8), ('EYOF', 'Evropský olympijský festival mládeže = ME?', 2,7), ('turnaj EJU','',2,6), ('Přebor PČR, kvalifikace PCR/MCR','',2,5), ('Mezinárodní turnaj (>3země)','',2,4), ('ostatní turnaje ČSJu','',2,3), ('krajské a oblastní turnaje','přebor kraje, mezin/VC, přebor spojenych oblasti',2, 2), ('MalaCena, ostatní','',2, 1), ('Liga (EXL, 1L, ML, DL)','soutěž družstev',3,20); #,('Extraliga','',3) #,('Dorostenecka liga','',3) #,('GrandPrix'), --? #alter table typ_zavodu add check (typ in (1,2,3,9)) CREATE or replace TABLE zavod ( id int NOT NULL AUTO_INCREMENT, nazev varchar(100) not null, kdy date not null, kde varchar(100) not null, type_id smallint not null, vedouci_id int, pozvanka varchar(1000), rozpis_url varchar(512), PRIMARY KEY (id), UNIQUE KEY uq_z (nazev, kdy), CONSTRAINT fk_z_j FOREIGN KEY (vedouci_id) REFERENCES judoka( id), CONSTRAINT fk_z_zt FOREIGN KEY (type_id) REFERENCES typ_zavodu(id) on update CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; alter table zavod DROP FOREIGN KEY fk_z_zt; alter table zavod add CONSTRAINT fk_z_zt FOREIGN KEY (type_id) REFERENCES typ_zavodu(id) on update CASCADE; CREATE or replace TABLE bodovani ( id int NOT NULL AUTO_INCREMENT, typ_zavodu_id smallint NOT NULL, misto smallint NOT NULL default 0, bodu smallint NOT NULL default 0, PRIMARY KEY (id), UNIQUE KEY uq_b (typ_zavodu_id, misto), CONSTRAINT fk_zt_b FOREIGN KEY (typ_zavodu_id) REFERENCES typ_zavodu( id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; alter table zavod add column typ_id smallint not null default 0; alter table zavod add CONSTRAINT fk_z_tz FOREIGN KEY (typ_id) REFERENCES typ_zavodu(id) on update CASCADE alter table zavod add column hodnoceni TEXT(5000); --SELECT table.*,typ_zavodu.* FROM `TABLE13`,typ_zavodu WHERE `TABLE13`.`COL 1` -- pozvanka -- rozpis in pdf -- treneri -- kde/kdy sraz
<gh_stars>0 -- Remove all boxes with a value lower than $100. delete from boxes where value < 100; select * from boxes where value <100;
<reponame>tharangar/k8s-webserver -- POCOR-3068 -- code here INSERT INTO `security_functions` (`id`, `name`, `controller`, `module`, `category`, `parent_id`, `_view`, `_edit`, `_add`, `_delete`, `_execute`, `order`, `visible`, `modified_user_id`, `modified`, `created_user_id`, `created`) VALUES ('5032', 'Backup', 'Database', 'Administration', 'Database', '5000', NULL, NULL, NULL, NULL, 'backup', '5032', '1', '1', NULL, '1', NOW()); INSERT INTO `security_functions` (`id`, `name`, `controller`, `module`, `category`, `parent_id`, `_view`, `_edit`, `_add`, `_delete`, `_execute`, `order`, `visible`, `modified_user_id`, `modified`, `created_user_id`, `created`) VALUES ('5033', 'Restore', 'Database', 'Administration', 'Database', '5000', NULL, NULL, NULL, NULL, 'restore', '5033', '1', '1', NULL, '1', NOW()); -- db_patches DELETE FROM `db_patches` WHERE `issue` = 'POCOR-3068'; -- POCOR-3058 -- code here UPDATE `area_administratives` SET `parent_id` = -1 WHERE `parent_id` IS NULL; UPDATE `areas` SET `parent_id` = -1 WHERE `parent_id` IS NULL; -- db_patches DELETE FROM `db_patches` WHERE `issue` = 'POCOR-3058'; -- POCOR-2335 -- staff_training_needs DROP TABLE `staff_training_needs`; ALTER TABLE `z_2335_staff_training_needs` RENAME `staff_training_needs`; >>>>>>> origin/POCOR-3048 -- db_patches DELETE FROM `db_patches` WHERE `issue` = 'POCOR-3068'; -- POCOR-3058 -- code here UPDATE `area_administratives` SET `parent_id` = -1 WHERE `parent_id` IS NULL; UPDATE `areas` SET `parent_id` = -1 WHERE `parent_id` IS NULL; -- db_patches DELETE FROM `db_patches` WHERE `issue` = 'POCOR-3058'; -- POCOR-2335 -- staff_training_needs DROP TABLE `staff_training_needs`; ALTER TABLE `z_2335_staff_training_needs` RENAME `staff_training_needs`; -- db_patches DELETE FROM `db_patches` WHERE `issue`='POCOR-2335'; -- POCOR-2820 -- code here ALTER TABLE `institution_student_admission` DROP INDEX `institution_class_id`, DROP COLUMN `institution_class_id`; -- db_patches DELETE FROM `db_patches` WHERE `issue` = 'POCOR-2820'; -- POCOR-3026 -- code here UPDATE `security_functions` SET _view = 'Assessments.index|Results.index' WHERE id = 1015; -- db_patches DELETE FROM `db_patches` WHERE `issue` = 'POCOR-3026'; -- POCOR-2255 -- ALTER TABLE `institution_fee_types` CHANGE `amount` `amount` DECIMAL(11,2) NOT NULL; ALTER TABLE `institution_fees` CHANGE `total` `total` DECIMAL(20,2) NULL DEFAULT NULL; ALTER TABLE `student_fees` CHANGE `amount` `amount` DECIMAL(11,2) NOT NULL; DROP TABLE IF EXISTS `fee_types`; UPDATE `field_option_values` as `fov` set `fov`.`visible`=1 WHERE `fov`.`field_option_id`=(SELECT `fo`.`id` FROM `field_options` as `fo` WHERE `fo`.`code` = 'FeeTypes'); DELETE FROM `db_patches` WHERE `issue` = 'POCOR-2255'; -- POCOR-2376 -- institution_student_admission ALTER TABLE `institution_student_admission` DROP COLUMN `new_education_grade_id`, DROP INDEX `new_education_grade_id` ; -- labels DELETE FROM `labels` WHERE `module` = 'TransferApprovals' AND `field` = 'new_education_grade_id'; DELETE FROM `labels` WHERE `module` = 'TransferRequests' AND `field` = 'new_education_grade_id'; -- db_patches DELETE FROM `db_patches` WHERE `issue` = 'POCOR-2376'; -- POCOR-2874 -- db_patches DELETE FROM `db_patches` WHERE `issue` = 'POCOR-2874'; -- 3.5.6 UPDATE config_items SET value = '3.5.6' WHERE code = 'db_version';
USE ${keyspace}; CREATE TABLE IF NOT EXISTS ${table} ( blobid blob, group ascii, chunkid int, data blob, PRIMARY KEY (blobid, group, chunkid) ) WITH COMPACT STORAGE AND compression = {'sstable_compression' : 'LZ4Compressor'};
ALTER TABLE {$NAMESPACE}_pholio.pholio_image ADD UNIQUE KEY `keyPHID` (`phid`);
set define off; @@xlib/XLIB_UTL_PCK.pks show errors; @@xlib/XLIB_UTL_PCK.pkb show errors; @@xlib/xlib_log_install.sql @@xlib/xlib_conf_install.sql @@xlib/xlib_sec_install.sql @@xlib/XLIB_HTTP_PCK.pks show errors; @@xlib/XLIB_HTTP_PCK.pkb show errors; @@xlib/XLIB_CONTEXT_PCK.pks show errors; @@xlib/XLIB_CONTEXT_PCK.pkb show errors; @@xlib_conf_seed_data.sql @@xlib_groups_seed_data.sql prompt *** create initial ADMIN account: prompt *** User: ADMIN prompt *** Password: <PASSWORD> prompt *** The password expires immediately declare l_usr_id number; begin l_usr_id := xlib_sec_pck.add_user(p_usr_name => 'ADMIN', p_usr_first_name => '', p_usr_last_name => '', p_password=> '<PASSWORD>'); xlib_sec_pck.add_group_member (p_usr_id => l_usr_id, p_grp_id => xlib_sec_pck.get_grp_id(p_grp_name => 'SYSTEM_ADMIN')); l_usr_id := xlib_sec_pck.add_user(p_usr_name => 'DIETMAR.AUST', p_usr_first_name => 'Dietmar', p_usr_last_name => 'Aust', p_password=> '<PASSWORD>'); xlib_sec_pck.expire_password(p_usr_id => l_usr_id); xlib_sec_pck.add_group_member (p_usr_id => l_usr_id, p_grp_id => xlib_sec_pck.get_grp_id(p_grp_name => 'OPERATOR')); end; / commit;
-- @testpoint:opengauss关键字duplicate(非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists duplicate; create sequence duplicate start 100 cache 50; drop sequence duplicate; --关键字带双引号-成功 drop sequence if exists "duplicate"; create sequence "duplicate" start 100 cache 50; drop sequence "duplicate"; --关键字带单引号-合理报错 drop sequence if exists 'duplicate'; create sequence 'duplicate' start 100 cache 50; --关键字带反引号-合理报错 drop sequence if exists `duplicate`; create sequence `duplicate` start 100 cache 50;
-- ---------------------------- -- Table structure for td_admin -- ---------------------------- CREATE TABLE IF NOT EXISTS `td_admin` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', `rid` int(11) NOT NULL DEFAULT '0' COMMENT '角色ID', `mobile` char(11) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '手机号', `uname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户名', `pass` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '密码', `ip` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登陆IP', `login_time` datetime DEFAULT NULL COMMENT '登陆时间', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Table structure for td_auth_menu -- ---------------------------- CREATE TABLE IF NOT EXISTS `td_auth_menu` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '菜单名称', `pid` int(11) NOT NULL DEFAULT '0' COMMENT '父级ID', `icon` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'icon', `route` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '路由', `weigh` int(11) NOT NULL DEFAULT '0' COMMENT '权重', `show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1显示、2隐藏', `son` tinyint(1) NOT NULL DEFAULT '0' COMMENT '子菜单', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of td_auth_menu -- ---------------------------- BEGIN; INSERT INTO `td_auth_menu` VALUES (1, '系统设置', 0, 'el-icon-setting', '', 0, 2, 1, '2021-06-15 16:38:52'); INSERT INTO `td_auth_menu` VALUES (2, '权限设置', 0, 'el-icon-lock', '', 0, 2, 1, '2021-06-11 17:20:05'); INSERT INTO `td_auth_menu` VALUES (3, '菜单设置', 2, '31', '/admin/auth.menu/index', 1, 2, 2, '2021-06-10 17:08:02'); INSERT INTO `td_auth_menu` VALUES (4, '角色设置', 2, '', '/admin/auth.role/index', 1, 2, 2, '2021-06-11 17:49:43'); INSERT INTO `td_auth_menu` VALUES (5, '添加\\修改', 3, '', '/admin/auth.menu/post', 0, 1, 2, '2021-06-16 11:28:41'); INSERT INTO `td_auth_menu` VALUES (6, '删除', 3, '', '/admin/auth.menu/delete', 0, 1, 2, '2021-06-16 11:29:45'); INSERT INTO `td_auth_menu` VALUES (7, '批量删除', 3, '', '/admin/auth.menu/deletes', 0, 1, 2, '2021-06-16 11:30:16'); INSERT INTO `td_auth_menu` VALUES (8, '添加\\修改', 4, '', '/admin/auth.role/post', 0, 1, 2, '2021-06-16 18:01:53'); INSERT INTO `td_auth_menu` VALUES (9, '删除', 4, '', '/admin/auth.role/delete', 0, 1, 2, '2021-06-16 18:02:19'); INSERT INTO `td_auth_menu` VALUES (10, '批量删除', 4, '', '/admin/auto.role/deletes', 0, 1, 2, '2021-06-16 18:03:11'); INSERT INTO `td_auth_menu` VALUES (11, '管理员', 2, '', '/admin/auth.admin/index', 0, 2, 2, '2021-06-16 18:04:27'); INSERT INTO `td_auth_menu` VALUES (12, '添加\\修改', 11, '', '/admin/auth.admin/post', 0, 1, 2, '2021-06-16 18:05:19'); INSERT INTO `td_auth_menu` VALUES (13, '删除', 11, '', '/admin/auth.admin/delete', 0, 1, 2, '2021-06-16 18:05:51'); INSERT INTO `td_auth_menu` VALUES (14, '批量删除', 11, '', '/admin/auth.admin/deletes', 0, 1, 2, '2021-06-16 18:06:53'); INSERT INTO `td_auth_menu` VALUES (15, '站点配置', 1, 'el-icon-c-scale-to-original', '/admin/config/index?active_name=basic', 0, 2, 2, '2021-06-21 16:39:05'); INSERT INTO `td_auth_menu` VALUES (16, '增加配置', 15, '', '/admin/config/post', 0, 1, 2, '2021-06-22 15:44:17'); INSERT INTO `td_auth_menu` VALUES (17, '更新配置', 15, '', '/admin/config/save', 0, 1, 2, '2021-06-22 15:44:51'); INSERT INTO `td_auth_menu` VALUES (18, '配置分组', 15, '', '/admin/config/group', 0, 1, 2, '2021-06-22 15:45:24'); INSERT INTO `td_auth_menu` VALUES (19, '附件管理', 1, 'el-icon-picture-outline', '/admin/general.files/index', 0, 2, 2, '2021-06-23 14:54:49'); INSERT INTO `td_auth_menu` VALUES (20, '附件修改', 19, '', '/admin/general.files/edit', 0, 1, 2, '2021-06-23 14:58:04'); INSERT INTO `td_auth_menu` VALUES (21, '附件删除', 19, '', '/admin/general.files/delete', 0, 1, 2, '2021-06-23 14:58:43'); INSERT INTO `td_auth_menu` VALUES (22, '附件批量删除', 19, '', '/admin/general.fiels/deletes', 0, 1, 2, '2021-06-23 14:59:33'); INSERT INTO `td_auth_menu` VALUES (23, '删除配置', 15, '', '/admin/config/delete', 0, 1, 2, '2021-06-23 15:03:26'); INSERT INTO `td_auth_menu` VALUES (24, '基础设置', 0, 'el-icon-menu', '', 0, 2, 1, '2021-06-25 11:46:40'); INSERT INTO `td_auth_menu` VALUES (25, '网站分类', 24, '', '/admin/category/index', 0, 2, 2, '2021-06-25 11:48:48'); INSERT INTO `td_auth_menu` VALUES (26, '添加\\修改', 25, '', '/admin/category/post', 0, 1, 2, '2021-06-25 11:50:05'); INSERT INTO `td_auth_menu` VALUES (27, '删除', 25, '', '/admin/category/delete', 0, 1, 2, '2021-06-25 11:50:36'); INSERT INTO `td_auth_menu` VALUES (28, '批量删除', 25, '', '/admin/category/deletes', 0, 1, 2, '2021-06-25 11:51:00'); INSERT INTO `te_auth_menu` VALUES (29, '系统工具', 0, 'el-icon-s-ticket', '', 0, 2, 1, '2021-07-03 17:18:09'); INSERT INTO `te_auth_menu` VALUES (30, '模块生成器', 29, '', '/admin/general.tool/index', 0, 2, 2, '2021-07-03 17:19:19'); COMMIT; -- ---------------------------- -- Table structure for td_auth_role -- ---------------------------- CREATE TABLE IF NOT EXISTS `td_auth_role` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '角色名称', `routes` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '权限ID', `desc` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '描述', `selected` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '级联选择', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of td_auth_role -- ---------------------------- BEGIN; INSERT INTO `td_auth_role` VALUES (1, '管理员', '1,15,17,19,20', '拥有很多权限', '[[1,15,17],[1,19,20]]', '2021-06-16 16:15:11'); COMMIT; -- ---------------------------- -- Table structure for td_category -- ---------------------------- CREATE TABLE IF NOT EXISTS `td_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '分类名称', `pid` int(11) DEFAULT '0' COMMENT '父级ID', `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '跳转地址', `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '图片地址', `tag` tinyint(1) DEFAULT NULL COMMENT 'tag,1首页,2热门,3推荐', `keywords` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '关键词', `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '描述', `weigh` int(11) DEFAULT '0' COMMENT '权重', `status` tinyint(1) DEFAULT '1' COMMENT '1正常,2隐藏', `create_time` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of td_category -- ---------------------------- BEGIN; INSERT INTO `td_category` VALUES (1, '开发教程', 0, '', '/storage/images/20210625/f7079b992dfbf53cdf49d9439bebc111.jpeg', 1, '', '开发教程', 0, 1, '2021-06-25 11:35:37'); INSERT INTO `td_category` VALUES (2, 'Java', 1, '/java', '/storage/images/20210625/854c41a9b0bb3298f9a45892b8849046.webp', 2, '', 'Java', 1, 1, '2021-06-25 11:37:16'); INSERT INTO `td_category` VALUES (3, 'PHP', 1, '/php', '/storage/images/20210625/e56f623289dfc113a3e24caaa4919452.jpeg', 2, '', 'PHP', 2, 1, '2021-06-25 11:40:25'); INSERT INTO `td_category` VALUES (4, '科技资讯', 0, '/zixun', '/storage/images/20210625/8083a27271b6b387f5f26530b1dacc6e.jpeg', 1, '', '科技', 0, 1, '2021-06-25 11:44:22'); COMMIT; -- ---------------------------- -- Table structure for td_config -- ---------------------------- CREATE TABLE IF NOT EXISTS `td_config` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', `key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT 'key', `value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '值', `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'label', `group` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '分组', `rule` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '验证', `type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '类型', `options` varchar(800) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '选项值', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of td_config -- ---------------------------- BEGIN; INSERT INTO `td_config` VALUES (1, 'group', '{\"basic\":\"基础配置\",\"dictionary\":\"配置分组\",\"email\":\"邮箱配置\"}', '配置分组', 'dictionary', NULL, 'json', ''); INSERT INTO `td_config` VALUES (2, 'title', 'Think-element', '网站名称', 'basic', 'require', 'input', ''); INSERT INTO `td_config` VALUES (3, 'keywords', 'Thinkphp6,Element', '关键词', 'basic', '', 'input', ''); INSERT INTO `td_config` VALUES (4, 'email_type', '2', '类型', 'email', '', 'select', '[{\"id\":\"1\",\"name\":\"QQ\"},{\"id\":\"2\",\"name\":\"163\"}]'); INSERT INTO `td_config` VALUES (6, 'description', 'Think-element', '描述', 'basic', '', 'input', ''); INSERT INTO `td_config` VALUES (7, 'record', '蜀ICP备15010979号-1', '备案号', 'basic', '', 'input', ''); INSERT INTO `td_config` VALUES (8, 'version', '1.0.0', '版本号', 'basic', '', 'input', ''); INSERT INTO `td_config` VALUES (11, 'admin_title', 'Think-element', '后台名称', 'basic', '', 'input', ''); INSERT INTO `td_config` VALUES (13, 'logo', '/storage/images/20210625/e56f623289dfc113a3e24caaa4919452.jpeg', 'Logo', 'basic', '', 'Image', ''); COMMIT; -- ---------------------------- -- Table structure for td_files -- ---------------------------- CREATE TABLE IF NOT EXISTS `td_files` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '源文件名称', `size` double(11,2) NOT NULL DEFAULT '0.00' COMMENT '文件大小', `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件路径', `ext` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '后缀', `mime_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件类型', `width` int(11) NOT NULL DEFAULT '0' COMMENT '图像宽', `height` int(11) NOT NULL DEFAULT '0' COMMENT '图像高', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of td_files -- ---------------------------- BEGIN; INSERT INTO `td_files` VALUES (1, 'Foxmail20210621042636.png', 2.38, '/storage/images/20210623/346a7a7b1187918e0d68265436022c3e.png', 'png', 'image/png', 223, 218, '2021-06-23 11:58:46'); INSERT INTO `td_files` VALUES (2, 'src=http___www.gzxdxh.com_uploads_allimg_200312_06235222C_0.jpg&refer=http___www.gzxdxh.jpeg', 38.16, '/storage/images/20210625/f7079b992dfbf53cdf49d9439bebc111.jpeg', 'jpeg', 'image/jpeg', 580, 300, '2021-06-25 11:34:39'); INSERT INTO `td_files` VALUES (3, 'u=4084129530,3438713827&fm=26&fmt=auto&gp=0.webp', 8.11, '/storage/images/20210625/854c41a9b0bb3298f9a45892b8849046.webp', 'webp', 'image/webp', 348, 347, '2021-06-25 11:39:36'); INSERT INTO `td_files` VALUES (4, 'src=http___jn.php.tedu.cn_img_201709_1504771686441.png&refer=http___jn.php.tedu.jpeg', 9.53, '/storage/images/20210625/e56f623289dfc113a3e24caaa4919452.jpeg', 'jpeg', 'image/jpeg', 536, 313, '2021-06-25 11:40:15'); INSERT INTO `td_files` VALUES (5, 'src=http___pic.soutu123.com_back_pic_04_26_43_285839aea9ef03c.jpg!_fw_700_quality_90_unsharp_true_compress_true&refer=http___pic.soutu123.jpeg', 41.38, '/storage/images/20210625/8083a27271b6b387f5f26530b1dacc6e.jpeg', 'jpeg', 'image/jpeg', 650, 514, '2021-06-25 11:43:48'); COMMIT;
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 05, 2020 at 03:16 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `akademik` -- -- -------------------------------------------------------- -- -- Table structure for table `mahasiswa` -- CREATE TABLE `mahasiswa` ( `nim` varchar(10) NOT NULL, `nama` varchar(255) DEFAULT NULL, `jkel` varchar(1) DEFAULT NULL, `alamat` text DEFAULT NULL, `tgllhr` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `mahasiswa` -- INSERT INTO `mahasiswa` (`nim`, `nama`, `jkel`, `alamat`, `tgllhr`) VALUES ('MHS01', '<NAME>', 'P', 'SOLO', '1995-10-01'), ('MHS02', 'Rita', 'P', 'SOLO', '1999-01-01'), ('MHS03', 'Amirudin', 'L', 'SEMARANG', '1998-08-11'), ('MHS04', '<NAME>', 'P', 'JAKARTA', '1995-04-15'), ('MHS32', 'Himawan', 'L', 'Banguntapan', '2020-10-22'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id_user` varchar(50) NOT NULL, `password` varchar(50) NOT NULL, `nama_lengkap` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `level` varchar(50) NOT NULL DEFAULT 'user' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id_user`, `password`, `nama_lengkap`, `email`, `level`) VALUES ('himawan', '<PASSWORD>', '<NAME>', '<EMAIL>', 'user'); -- -- Indexes for dumped tables -- -- -- Indexes for table `mahasiswa` -- ALTER TABLE `mahasiswa` ADD PRIMARY KEY (`nim`) USING BTREE; -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id_user`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>nagasudhirpulla/wrldc_codebook<filename>sqls/checkIfElementIsOut.sql SELECT rto.REVIVED_DATE FROM REPORTING_WEB_UI_UAT.REAL_TIME_OUTAGE rto WHERE to_char(rto.OUTAGE_DATE , 'YYYY-MM-DD')|| ' ' || rto.OUTAGE_TIME = ( SELECT MAX(to_char(OUTAGE_DATE , 'YYYY-MM-DD')|| ' ' || OUTAGE_TIME) AS out_date_time FROM reporting_web_ui_uat.REAL_TIME_OUTAGE WHERE entity_id = 14 AND ELEMENT_ID = 41) AND rto.entity_id = 14 AND rto.ELEMENT_ID = 41 ORDER BY rto.OUTAGE_DATE DESC, OUTAGE_TIME DESC, rto.ID DESC
-- ============================================= -- Author: dbo -- Create date: 2020-10-13 -- Description: adding new user to user table, Auth system -- ============================================= CREATE PROCEDURE [dbo].[spUsers_AddUser_Auth] @UserId nvarchar(128) ,@UserName nvarchar(256) ,@Email nvarchar (256) ,@Password nvarchar(MAX), @NormalizedUserName nvarchar(256), @FirstName nvarchar(128), @LastName nvarchar(128), @NormalizedEmail nvarchar(256) AS BEGIN SET NOCOUNT ON; INSERT INTO Users( Id ,UserName ,Email ,PasswordHash ,NormalizedUserName ,FirstName ,LastName ,NormalizedEmail ) VALUES ( @UserId ,@UserName ,@Email ,@Password ,@NormalizedUserName ,@FirstName ,@LastName ,@NormalizedEmail ) END
/** mysql --user bl -p < ~/beehive.dev/src/Papyrillio/BeehiveBundle/Resources/data/loadProdIntoDev.sql **/ TRUNCATE TABLE `bl_dev`.`correction_register`; TRUNCATE TABLE `bl_dev`.`register`; TRUNCATE TABLE `bl_dev`.`task`; TRUNCATE TABLE `bl_dev`.`index_entry`; TRUNCATE TABLE `bl_dev`.`ext_translations`; TRUNCATE TABLE `bl_dev`.`ext_log_entries`; TRUNCATE TABLE `bl_dev`.`correction`; TRUNCATE TABLE `bl_dev`.`edition`; TRUNCATE TABLE `bl_dev`.`compilation`; TRUNCATE TABLE `bl_dev`.`user`; SET SQL_MODE = 'NO_AUTO_VALUE_ON_ZERO'; INSERT INTO `bl_dev`.`user` SELECT * FROM `bl`.`user`; INSERT INTO `bl_dev`.`compilation` SELECT * FROM `bl`.`compilation`; INSERT INTO `bl_dev`.`edition` SELECT * FROM `bl`.`edition`; INSERT INTO `bl_dev`.`correction` SELECT * FROM `bl`.`correction`; INSERT INTO `bl_dev`.`ext_log_entries` SELECT * FROM `bl`.`ext_log_entries`; INSERT INTO `bl_dev`.`ext_translations` SELECT * FROM `bl`.`ext_translations`; INSERT INTO `bl_dev`.`index_entry` SELECT * FROM `bl`.`index_entry`; INSERT INTO `bl_dev`.`task` SELECT * FROM `bl`.`task`; INSERT INTO `bl_dev`.`register` SELECT * FROM `bl`.`register`; INSERT INTO `bl_dev`.`correction_register` SELECT * FROM `bl`.`correction_register`;
<reponame>DamyGenius/risk prompt Importing table t_migraciones... set feedback off set define off insert into t_migraciones (ID_MIGRACION, DESCRIPCION) values ('mig_000014', 'Registrar usuario sin correo electrónico.'); prompt Done.
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50505 Source Host : localhost:3306 Source Database : endogasin Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2020-04-26 14:40:23 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `categories_table` -- ---------------------------- DROP TABLE IF EXISTS `categories_table`; CREATE TABLE `categories_table` ( `id_category` int(11) NOT NULL AUTO_INCREMENT, `category` varchar(50) DEFAULT NULL, PRIMARY KEY (`id_category`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of categories_table -- ---------------------------- INSERT INTO `categories_table` VALUES ('1', 'Design & Illustration'); INSERT INTO `categories_table` VALUES ('2', 'Web'); INSERT INTO `categories_table` VALUES ('3', 'Mobile Apps'); -- ---------------------------- -- Table structure for `projects_table` -- ---------------------------- DROP TABLE IF EXISTS `projects_table`; CREATE TABLE `projects_table` ( `id_project` int(11) NOT NULL AUTO_INCREMENT, `id_category` int(11) DEFAULT NULL, `project_name` varchar(150) DEFAULT NULL, `description` varchar(500) DEFAULT NULL, `status` varchar(10) DEFAULT NULL, `price` varchar(150) DEFAULT NULL, `img` varchar(150) DEFAULT NULL, PRIMARY KEY (`id_project`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of projects_table -- ---------------------------- INSERT INTO `projects_table` VALUES ('1', '1', 'Work From Home Vector Assets', 'Vector Assets tema work from home, desain menggunakan Adobe Illustrator. Silahkan Download di bawah ini', '2', '0', 'Image_gara.jpg'); INSERT INTO `projects_table` VALUES ('2', '2', 'Holiday Vectorsss', 'AVector Assets tema Holiday', '2', '0', 'Image_www.jpg'); INSERT INTO `projects_table` VALUES ('3', '1', 'Office Vector', 'Vector Assets tema Office Part 1', '2', '0', 'Image_aeare.jpg'); INSERT INTO `projects_table` VALUES ('4', '1', 'adqeq', '<p>asdfadfasdf<br></p>', '2', '0', 'Pic_1123.jpg'); -- ---------------------------- -- Table structure for `tb_login` -- ---------------------------- DROP TABLE IF EXISTS `tb_login`; CREATE TABLE `tb_login` ( `id_user` int(2) NOT NULL AUTO_INCREMENT, `nama_user` varchar(30) NOT NULL, `pass_user` varchar(100) NOT NULL, `word` varchar(250) NOT NULL, `nama` varchar(100) NOT NULL, `level` enum('1','2','3','4','5','6','7','8') NOT NULL, `status` enum('1','0') NOT NULL, PRIMARY KEY (`id_user`) ) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of tb_login -- ---------------------------- INSERT INTO `tb_login` VALUES ('2', 'super', '250cf8b51c773f3f8dc8b4be867a9a02', '', 'super', '1', '1'); INSERT INTO `tb_login` VALUES ('58', 'admin', '250cf8b51c773f3f8dc8b4be867a9a02', '456', 'admin', '1', '1');
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 2.10.0-beta1 -- http://www.phpmyadmin.net -- -- Serveur: localhost -- Généré le : Mercredi 30 Mai 2007 à 22:05 -- Version du serveur: 5.0.33 -- Version de PHP: 5.2.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Base de données: `stargate` -- -- -------------------------------------------------------- -- -- Structure de la table `sg_planete` -- CREATE TABLE `sg_planete` ( `id` int(10) unsigned NOT NULL auto_increment, `pseudo` varchar(20) collate latin1_general_ci NOT NULL default '', `nom` varchar(20) collate latin1_general_ci NOT NULL default '', `coord_X` mediumint(5) NOT NULL default '0', `coord_Y` mediumint(5) NOT NULL default '0', `race` varchar(40) collate latin1_general_ci NOT NULL, `clan` int(2) NOT NULL default '1', `image` varchar(50) collate latin1_general_ci NOT NULL default '', `orisis` smallint(5) NOT NULL default '0', KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=56 ; -- -- Contenu de la table `sg_planete` -- INSERT INTO `sg_planete` (`id`, `pseudo`, `nom`, `coord_X`, `coord_Y`, `race`, `clan`, `image`, `orisis`) VALUES (47, 'neutre', 'Planète mère 1', 24, 26, '0', 0, 'images/plapla_mere_1', 0), (48, 'neutre', 'Planète mère 2', 25, 26, '0', 0, 'images/plapla_mere_2', 0), (49, 'neutre', 'Planète mère 3', 26, 26, '0', 0, 'images/plapla_mere_3', 0), (50, 'neutre', 'Planètre mère 4', 24, 25, '0', 0, 'images/plapla_mere_4', 0), (51, 'neutre', 'Planète mère 5', 25, 25, '0', 0, 'images/plapla_mere_5', 0), (52, 'neutre', 'Planètre mère 6', 26, 25, '0', 0, 'images/plapla_mere_6', 0), (53, 'neutre', 'Planète mère 7', 24, 24, '0', 0, 'images/plapla_mere_7', 0), (54, 'neutre', 'Planètre mère 8', 25, 24, '0', 0, 'images/plapla_mere_8', 0), (55, 'neutre', 'Planète mère 9', 26, 24, '0', 0, 'images/plapla_mere_9', 0);
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WebSites_Published]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF_WebSites_Published] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WebSites_VersionOfId]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF_WebSites_VersionOfId] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WebSites_AuthenticationTypeId]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF_WebSites_AuthenticationTypeId] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WebSites_DateCreated]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF_WebSites_DateCreated] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WebSites_DateModified]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF_WebSites_DateModified] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WebSites_LoginPage]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF_WebSites_LoginPage] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WebSites_AccessDeniedPage]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF_WebSites_AccessDeniedPage] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WebSite_PageTitleFormat]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF_WebSite_PageTitleFormat] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WebSite_ManagementAccess]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF_WebSite_ManagementAccess] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WebSite_BaseAddress]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF_WebSite_BaseAddress] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__WebSite__ThemeId]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF__WebSite__ThemeId] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__WebSite__LocaleId]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF__WebSite__LocaleId] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__WebSite__SkinId]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF__WebSite__SkinId] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_WebSite_PrimaryIdentityId]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebSite] DROP CONSTRAINT [DF_WebSite_PrimaryIdentityId] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[WebSite]') AND type in (N'U')) DROP TABLE [dbo].[WebSite] GO
<filename>Snipets/Queries/UNIFI/GetContentItemDetailsFromLast28Days.sql SELECT CON_ITEM.ITEMID, CON_ITEM.ITEMDATAID, CON_ITEM.ISSUBITEM, CON_ITEM.ITEMROOTID, CON_ITEM.VERSIONNO, CON_ITEM.ISLASTVERSION, CON_ITEM.DATANODEID, CON_ITEM.ITEMTYPEID, Con_Itemtype.NAME, CON_ITEM.COMMONNAME, CON_ITEM.COMMONSYSTEMNAME, CON_ITEM.COMMONSYSTEMTYPE, CON_ITEM.NATIVEAPP, CON_ITEM.PREVIOUSSTATE, CON_ITEM.STATE, CON_ITEM.STATEMODIFIEDDTTM, CON_ITEM.STATEMODIFIERID, CON_ITEM.INSTANCEDATAMODIFIEDDTTM, CON_ITEM.INSTANCEDATAMODIFIERID, CON_ITEM.EXCLUSIVEEDITLOCK, CON_ITEM.VERSIONLOCKDTTM, CON_ITEM.VERSIONLOCKUSERID, CON_ITEM.VERSIONLOCK, CON_ITEM.CREATEDDTTM, CON_ITEM.CREATORID, CON_ITEM.CREATORNAME, CON_ITEM.MODIFIEDDTTM, CON_ITEM.MODVERSION, CON_ITEMRELATION.RELATEDITEMID, CON_ITEMRELATION.RELATIONTYPE FROM CON_ITEM, Con_Itemtype, CON_ITEMRELATION WHERE (CON_ITEM.ITEMTYPEID = Con_Itemtype.ITEMTYPEID) AND CON_ITEM.ITEMID = CON_ITEMRELATION.RELATEDITEMID(+) AND CON_ITEMRELATION.ITEMID(+) = CON_ITEM.ITEMID AND (CON_ITEM.MODIFIEDDTTM > SysDate - 28) ORDER BY CON_ITEM.CREATEDDTTM DESC;
<gh_stars>1-10 CREATE TABLE AKTOER_ID_TO_VEILEDER ( AKTOERID VARCHAR(20) NOT NULL, VEILEDER VARCHAR(20) NOT NULL, PRIMARY KEY (aktoerId) );
USE [Koski_SA] GO /****** Object: StoredProcedure [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_aikajaksot] Script Date: 23.10.2019 17:56:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sa].[p_lataa_tutkinnot_ja_tutkinnonosat_aikajaksot]') AND type in (N'P', N'PC')) BEGIN EXEC dbo.sp_executesql @statement = N'CREATE PROCEDURE [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_aikajaksot] AS' END GO ALTER PROCEDURE [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_aikajaksot] AS TRUNCATE TABLE [sa].[temp_tutkinnot_ja_tutkinnonosat_aikajaksot] ;WITH cte AS ( SELECT ooa.opiskeluoikeus_oid ,alku ,loppu ,opintojen_rahoitus FROM [Koski_SA].[sa].[sa_koski_opiskeluoikeus_aikajakso] ooa JOIN Koski_SA.sa.sa_koski_opiskeluoikeus oo ON oo.opiskeluoikeus_oid = ooa.opiskeluoikeus_oid WHERE oo.koulutusmuoto = 'ammatillinenkoulutus' ) INSERT INTO [sa].[temp_tutkinnot_ja_tutkinnonosat_aikajaksot] select distinct oo.oppija_oid ,oo.opiskeluoikeus_oid as opiskeluoikeus_oid ,case when oo.sisaltyy_opiskeluoikeuteen_oid is not null then 1 else 0 end as sisaltyy_toiseen ,oo.oppilaitos_oid ,oo.koulutustoimija_oid --12.5.2019 diaarinumero haettava data-kentän jsonista, per mikkonen email pe 10.5.2019 11.21 --16.5.2019 siivotaan välilyönnit diaarinumeroista (uloin replace) --,coalesce(kl.uusi_eat_koodi, kl.koulutusluokitus_koodi) as tutkinto_koodi ,replace(replace(replace(replace(substring(ps.data,CHARINDEX('"perusteenDiaarinumero": ',ps.data)+26,15),'}',''),'"',''),',',''),' ','') as diaarinumero ,NULL /* replace(replace(replace(replace(substring(ps.data,CHARINDEX('"perusteenDiaarinumero": ',ps.data)+26,15),'}',''),'"',''),',',''),' ','')+'_'+ps.koulutusmoduuli_koodiarvo */ as diaarinumero_tutkinto_koodi ,/* case when ps.osaamisala_koodiarvo is null then replace(replace(replace(replace(substring(ps.data,CHARINDEX('"perusteenDiaarinumero": ',ps.data)+26,15),'}',''),'"',''),',',''),' ','')+'_'+ps.koulutusmoduuli_koodiarvo else replace(replace(replace(replace(substring(ps.data,CHARINDEX('"perusteenDiaarinumero": ',ps.data)+26,15),'}',''),'"',''),',',''),' ','')+'_'+ps.koulutusmoduuli_koodiarvo+'_'+ps.osaamisala_koodiarvo end */ NULL as diaarinumero_tutkinto_osaamisala_koodi ,ooa.tila ,ooa.alku ,ooa.loppu ,ooa.oppisopimus_jossain_paatason_suorituksessa AS oppisopimus ,coalesce(ooa.opintojen_rahoitus, ooa2.opintojen_rahoitus, ooa3.opintojen_rahoitus, ooa4.opintojen_rahoitus) as opintojen_rahoitus_koodi ,CASE WHEN (erityinen_tuki=1 or hojks=1) and vaativan_erityisen_tuen_erityinen_tehtava=0 and suorituksen_tyyppi not in ('telma','valma') THEN 2 --Erityisopiskelija ilman erit. tuen tehtävää; tutk. joht WHEN (erityinen_tuki=1 or hojks=1) and vaativan_erityisen_tuen_erityinen_tehtava=0 and suorituksen_tyyppi in ('telma','valma') THEN 3 --Erityisopiskelija ilman erit. tehtävää; valmentava WHEN vaativan_erityisen_tuen_erityinen_tehtava=1 and suorituksen_tyyppi not in ('telma','valma') and vaikeasti_vammainen=0 and vammainen_ja_avustaja=0 THEN 4 --Erit. tuen tehtävä; tutk.joht; erityisopiskelija WHEN suorituksen_tyyppi not in ('telma','valma') and vaikeasti_vammainen=1 THEN 5 --Erit. tuen tehtävä; tutk.joht; vaikeasti vammainen WHEN suorituksen_tyyppi not in ('telma','valma') and vammainen_ja_avustaja=1 THEN 6 --Erit. tuen tehtävä; tutk.joht; vammainen&avustaja WHEN vaativan_erityisen_tuen_erityinen_tehtava=1 and suorituksen_tyyppi in ('telma','valma') and vaikeasti_vammainen=0 and vammainen_ja_avustaja=0 THEN 7 --Erit. tuen tehtävä; TELMA&VALMA; erityisopiskelija WHEN suorituksen_tyyppi in ('telma','valma') and vaikeasti_vammainen=1 THEN 8 --Erit. tuen tehtävä; TELMA&VALMA; vaikeasti vammainen WHEN suorituksen_tyyppi in ('telma','valma') and vammainen_ja_avustaja=1 THEN 9 --Erit. tuen tehtävä; TELMA&VALMA; vammainen&avustaja WHEN erityinen_tuki=0 THEN 1 --Ei erityisopiskelija ELSE 9 END as erityisopetus_koodi ,ps.paatason_suoritus_id FROM Koski_SA.sa.sa_koski_opiskeluoikeus oo INNER JOIN Koski_SA.sa.sa_koski_opiskeluoikeus_aikajakso ooa on ooa.opiskeluoikeus_oid = oo.opiskeluoikeus_oid INNER JOIN Koski_SA.sa.sa_koski_paatason_suoritus ps ON ps.opiskeluoikeus_oid = oo.opiskeluoikeus_oid LEFT JOIN Koski_SA.sa.sa_koski_opiskeluoikeus oo2 ON oo2.opiskeluoikeus_oid = oo.sisaltyy_opiskeluoikeuteen_oid --LEFT JOIN dw.d_koulutusluokitus kl ON kl.koulutusluokitus_koodi = COALESCE(NULLIF(ps.koulutusmoduuli_koodiarvo, '999904'), ps.tutkinto_koodiarvo) --puuttuva rahoitus otetaan edellisestä läsnäolojaksosta AP 20.6.2019 LEFT JOIN cte as ooa2 on ooa2.opiskeluoikeus_oid = ooa.opiskeluoikeus_oid and DATEDIFF(DAY,ooa2.loppu, ooa.alku) = 1 LEFT JOIN cte as ooa3 on ooa3.opiskeluoikeus_oid = ooa2.opiskeluoikeus_oid and DATEDIFF(DAY,ooa3.loppu, ooa2.alku) = 1 LEFT JOIN cte as ooa4 on ooa4.opiskeluoikeus_oid = ooa3.opiskeluoikeus_oid and DATEDIFF(DAY,ooa4.loppu, ooa3.alku) = 1 WHERE oo.koulutusmuoto = 'ammatillinenkoulutus' --AND (kl.tutkintotyyppi_koodi IN ('02','19','20') OR koulutusmoduuli_koodiarvo IN ('999901','999903')) --AP 17.10.2019 valma ja telma mukaan --AND (ps.suorituksen_tyyppi <> 'nayttotutkintoonvalmistavakoulutus') --jhe 17.5.2019 Juhon meili:"Eli sun pitää pudottaa sieltä pois kaikki päätason suoritukset, joiden tyyppi on "nayttotutkintoonvalmistavakoulutus". Niistä ei tarvi katsoa ollenkaan osasuorituksia." GO /****** Object: StoredProcedure [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_liputa_ei_vos_rahoitettu_koulutus] Script Date: 23.10.2019 17:56:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sa].[p_lataa_tutkinnot_ja_tutkinnonosat_liputa_ei_vos_rahoitettu_koulutus]') AND type in (N'P', N'PC')) BEGIN EXEC dbo.sp_executesql @statement = N'CREATE PROCEDURE [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_liputa_ei_vos_rahoitettu_koulutus] AS' END GO ALTER PROCEDURE [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_liputa_ei_vos_rahoitettu_koulutus] AS -- jhe 20.3.2019, 23.4.2019, 25.4.2019, 30.4 -- tätä näkymää käytetään AMOS-suoritepäätöslaskennan suodattimena -- tässä liputetut opiskeluoikeudet tai suorituksen osat jätetään pois sp-laskennasta.. --..kaksi filtteriä siis samassa näkymässä -- Huom: tämä on VOS-laskennan raskain ajo !!! TRUNCATE TABLE [sa].[temp_tutkinnot_ja_tutkinnonosat_liputa_ei_vos_rahoitettu_koulutus] INSERT INTO [sa].[temp_tutkinnot_ja_tutkinnonosat_liputa_ei_vos_rahoitettu_koulutus] SELECT DISTINCT opiskeluoikeus_oid, osasuoritus_id, vaatimus, tieto FROM ( /* 14.10.2019 AP raportilla tehdään rajaus rahoitusmuodon mukaan, ei tarvita vielä tässä SELECT --# 1 -- maksullisena palveluna järjestetty koulutus, rajaa pois nämä opiskeluoikeudet -- CSCVIPUNEN-1383 opiskeluoikeus_oid, osasuoritus_id, 'r1, rajaa pois nämä opiskeluoikeudet - CSCVIPUNEN-1383, maksullinen palvelu' AS vaatimus, 'opiskeluoikeus' as tieto FROM ( SELECT --distinct -- 21.3.2019 korvattu aiempi kysely <NAME> mallin mukaisella kyselyllä oo.opiskeluoikeus_oid, NULL AS osasuoritus_id FROM koski_sa.sa.sa_koski_opiskeluoikeus AS oo JOIN koski_sa.sa.sa_koski_opiskeluoikeus_aikajakso AS b ON oo.opiskeluoikeus_oid = b.opiskeluoikeus_oid WHERE oo.koulutusmuoto = 'ammatillinenkoulutus' AND oo.sisaltyy_opiskeluoikeuteen_oid IS NULL AND ( -- vuosi-2 joulukuun viimeinen 'YYYY-12-31' ( b.loppu > Datefromparts(Year(Getdate()) - 2, 12, 31 ) AND -- vuosi-1 joulukuun viimeinen 'YYYY-12-31 b.loppu < Datefromparts(Year(Getdate()) - 1, 12, 31 ) ) OR b.loppu IS NULL ) AND b.alku < Datefromparts(Year(Getdate()) - 0, 1, 1) --kuluva vuosi tammikuun ensimmäinen 'YYYY-01-01' EXCEPT SELECT DISTINCT d.opiskeluoikeus_oid, NULL AS osasuoritus_id FROM koski_sa.sa.sa_koski_opiskeluoikeus AS d JOIN koski_sa.sa.sa_koski_opiskeluoikeus_aikajakso AS e ON d.opiskeluoikeus_oid = e.opiskeluoikeus_oid WHERE d.koulutusmuoto = 'ammatillinenkoulutus' AND ( -- vuosi-2 joulukuun viimeinen 'YYYY-12-31' (e.loppu > Datefromparts(Year(Getdate()) - 2, 12, 31) AND e.loppu < Datefromparts(Year(Getdate()) - 1, 12, 31) -- vuosi-1 joulukuun viimeinen 'YYYY-12-31 OR e.loppu IS NULL ) AND e.alku < Datefromparts(Year(Getdate()) - 0, 1, 1) --kuluva vuosi tammikuun ensimmäinen 'YYYY-01-01' AND (e.opintojen_rahoitus <> '6' OR e.opintojen_rahoitus IS NULL ) ) ) t1 UNION */ --# 2 -- koulutusvientinä järjestetty koulutus, rajaa pois nämä opiskeluoikeudet -- CSCVIPUNEN-1384 -- 21.3.2019 Juhon uusi speksi vaihdettu sisempään kyselyyn, aikarajaukset muutettu kovakoodatusta dynaamisiksi /jhe SELECT opiskeluoikeus_oid, NULL AS osasuoritus_id, 'r2, rajaa pois nämä opiskeluoikeudet - CSCVIPUNEN-1384, koulutusvienti' AS vaatimus, 'opiskeluoikeus' as tieto FROM ( SELECT oo.opiskeluoikeus_oid FROM koski_sa.sa.sa_koski_opiskeluoikeus AS oo WHERE oo.koulutusmuoto = 'ammatillinenkoulutus' AND ( ( oo.paattymispaiva > Datefromparts(Year(Getdate()) - 2, 12, 31) -- vuosi-2 joulukuun viimeinen 'YYYY-12-31' AND oo.paattymispaiva < Datefromparts(Year(Getdate()) - 1, 12, 31) ) -- vuosi-1 joulukuun viimeinen 'YYYY-12-31' OR oo.paattymispaiva IS NULL ) AND oo.alkamispaiva < Datefromparts(Year(Getdate()) - 0, 1, 1) --kuluva vuosi tammikuun ensimmäinen 'YYYY-01-01' AND oo.lisatiedot_koulutusvienti = 1 ) t2 --/* UNION --# 3, rajaa pois nämä osasuoritukset -- opiskelu ei ole rahoituksen piirissä, päätellään data-kentän json-tiedosta -- pudottaa pois tunnustetut tutkinnon osat tai osa-alueet (jotka ei rahoituksen piirissä) -- tämäkin juho mikkosen speksi 19.3.2019 -- CSCVIPUNEN-1386 SELECT opiskeluoikeus_oid, osasuoritus_id, 'r3, rajaa pois nämä osasuoritukset - CSCVIPUNEN-1386, json-tieto, rahoituksenPiirissa: false' AS vaatimus, 'osasuoritus' as tieto FROM ( SELECT opiskeluoikeus_oid, osasuoritus_id, data, CASE WHEN os.data LIKE '%"rahoituksenPiirissä": false}%' THEN '1' ELSE '0' END AS rp FROM koski_sa.sa.sa_koski_osasuoritus AS os ) t3 WHERE t3.rp = 1 UNION --# 4, rajaa pois nämä osasuoritukset --Lisämääreet 24.4.2019 palaverista, Juho Mikkonen, täsmennys meilissä 29.4 ja 30.4 --Yhteisten tutkinnonosien osa-alueiden suoritukset eivät kuulu --..rahoituslaskennan kun kyse ammatillisen tutkinnnon osa-alueesta /* SELECT t4.opiskeluoikeus_oid, t4.osasuoritus_id, 'r4 - 29.4.2019 email, Juho Mikkonen: Rahoituksesta taas pudotetaan ne, joissa os.suorituksen_tyyppi = ammatillisentutkinnonosanosaalue.' AS vaatimus FROM (SELECT opiskeluoikeus_oid, osasuoritus_id, CASE WHEN /*os.koulutusmoduuli_koodiarvo IN ( '101053', '101054', '101055', '101056', '400012', '400013', '400014' ) AND*/ os.suorituksen_tyyppi = 'ammatillisentutkinnonosanosaalue' -- AND Year(os.arviointi_paiva) = Year(Getdate()) - 1 -- aikarajaus tehdään seuraavalla vaiheessa joka tapauksessa THEN 1 ELSE 0 END AS ei_rahoiteta */ SELECT t4.opiskeluoikeus_oid, t4.osasuoritus_id, 'r4, rajaa pois nämä osasuoritukset - 29.4.2019 email, Juho Mikkonen: Rahoituksesta taas pudotetaan ne, joissa os.suorituksen_tyyppi = ammatillisentutkinnonosanosaalue.' AS vaatimus, 'osasuoritus' as tieto FROM ( SELECT opiskeluoikeus_oid, osasuoritus_id, CASE WHEN os.suorituksen_tyyppi = 'ammatillisentutkinnonosanosaalue' THEN 1 -- AND Year(os.arviointi_paiva) = Year(Getdate()) - 1 -- aikarajaus tehdään seuraavalla vaiheessa joka tapauksessa ELSE 0 END AS ei_rahoiteta FROM koski_sa.sa.sa_koski_osasuoritus AS os ) t4 WHERE t4.ei_rahoiteta = 1 --*/ --/* UNION --# 5, rajaa pois nämä osasuoritukset --<NAME>orhonen ja <NAME>, email 25.4.2019: --..hylätyt suoritukset pois rahoituslaskennasta SELECT t5.opiskeluoikeus_oid, t5.osasuoritus_id, 'r5, rajaa pois nämä osasuoritukset - Kari Korhonen ja <NAME>inen, email 25.4.2019: hylätyt suoritukset pois rahoituslaskennasta' AS vaatimus, 'osasuoritus' as tieto FROM ( SELECT opiskeluoikeus_oid, osasuoritus_id, CASE WHEN os.arviointi_hyvaksytty = 0 THEN 1 ELSE 0 END AS osa_suoritus_hylatty FROM koski_sa.sa.sa_koski_osasuoritus AS os ) t5 WHERE t5.osa_suoritus_hylatty = 1 --/* ) t100 GO /****** Object: StoredProcedure [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_osasuoritus_pl_eivos] Script Date: 23.10.2019 17:56:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sa].[p_lataa_tutkinnot_ja_tutkinnonosat_osasuoritus_pl_eivos]') AND type in (N'P', N'PC')) BEGIN EXEC dbo.sp_executesql @statement = N'CREATE PROCEDURE [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_osasuoritus_pl_eivos] AS' END GO ALTER PROCEDURE [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_osasuoritus_pl_eivos] AS -- tässä suodatetaan pois ne osasuoritukset ja opiskeluoikeudet.. -- .. jotka nkymässä [dw].[v_amos_spl_liputa_ei_vos_rahoitettu_koulutus].. -- .. liputettiin ei kuuluviksi amos vos-rahoituksen piiriin -- tuodaan eperusteista laajuudet, logiikkaa ehkä vielä tarkistettava Sepon kanssa, jhe 30.4 -- lisätty aikarajaus ja arviointi_hyvaksytty rajaus jo tähän vaiheeseen TRUNCATE TABLE [sa].[temp_tutkinnot_ja_tutkinnonosat_osasuoritus_pl_eivos] INSERT INTO [sa].[temp_tutkinnot_ja_tutkinnonosat_osasuoritus_pl_eivos] SELECT os.osasuoritus_id, os.ylempi_osasuoritus_id, coalesce(os2.koulutusmoduuli_koodisto,'') as koulutusmoduuli_koodisto_ylempi, os.paatason_suoritus_id, os.opiskeluoikeus_oid, os.suorituksen_tyyppi, os.koulutusmoduuli_koodisto, -- jhe 30.4 tuodaan ep tietoja, tutkintokoodi ja laajuus, 1.5 kytkentä pois toistaseksi, hukkaa 5% riveistä -- seuraavalla tasolla korvataan yhdistelmäavaimen tutkintokoodi_tutkinnonosakoodi avulla kosken laajuustieto -- yhdistelmäavain siksi, että sama tutkinnonosa voi olla eri laajuinen eri tutkinnoissa --,ep.tutkintokoodi as ep_tutkinto_koodi, os.koulutusmoduuli_koodiarvo, --jhe 10.5 lisätään numeerinen koodiarvo kenttä cast( case when isnumeric(os.koulutusmoduuli_koodiarvo)= 1 and os.koulutusmoduuli_koodiarvo not like '0%' and os.koulutusmoduuli_koodiarvo not like '%.%' then os.koulutusmoduuli_koodiarvo else NULL end as varchar) as koulutusmoduuli_koodiarvo_numeerinen, os.koulutusmoduuli_laajuus_arvo, os.koulutusmoduuli_laajuus_yksikko, os.koulutusmoduuli_paikallinen, os.koulutusmoduuli_pakollinen, os.vahvistus_paiva, os.arviointi_arvosana_koodiarvo, os.arviointi_arvosana_koodisto, os.arviointi_hyvaksytty, os.arviointi_paiva, os.nayton_arviointi_paiva, case when eivos.osasuoritus_id is not null then 1 else 0 end as osasuoritus_hylataan, coalesce(oo2.koulutustoimija_oid, oo.koulutustoimija_oid) as koulutustoimija_oid, os.data FROM Koski_SA.sa.sa_koski_osasuoritus AS os LEFT JOIN Koski_SA.sa.sa_koski_opiskeluoikeus oo ON oo.opiskeluoikeus_oid = os.opiskeluoikeus_oid LEFT JOIN Koski_SA.sa.sa_koski_opiskeluoikeus oo2 ON oo2.opiskeluoikeus_oid = oo.sisaltyy_opiskeluoikeuteen_oid --jhe 3.6.2019 eivos-suodatuksen korjaus LEFT OUTER JOIN ( SELECT DISTINCT osasuoritus_id, tieto FROM sa.temp_tutkinnot_ja_tutkinnonosat_liputa_ei_vos_rahoitettu_koulutus WHERE tieto = 'osasuoritus' ) AS eivos ON os.osasuoritus_id = eivos.osasuoritus_id --AP 23.6.2019 joinin muokkaus --LEFT OUTER JOIN [dw].[d_amos_spl_koski_liputa_ei_vos_rahoitettu_koulutus] AS eivos ON eivos.osasuoritus_id = os.osasuoritus_id and eivos.tieto = 'osasuoritus' --AP 1.8.2019 join jolla haetaan ylemmän osasuorituksen koulutusmoduuli_koodisto LEFT JOIN Koski_SA.sa.sa_koski_osasuoritus os2 ON os2.osasuoritus_id = os.ylempi_osasuoritus_id WHERE oo.koulutusmuoto = 'ammatillinenkoulutus' AND year(os.arviointi_paiva)= 2018 AND os.arviointi_hyvaksytty = '1' --13.5.2019 jhe FYI laajuusykiköllä suodattaminen karsii riveistä n. 90% --AP 20.6.2019 nullit -> 6 AND coalesce(os.koulutusmoduuli_laajuus_yksikko,6) = '6' --AND (eivos.osasuoritus_id IS NULL) --AP 9.7.2019 lisätty ao ehto --Seppo 8.7.2019: "Tutkinnon osien määrässä tai osaamispisteissä ei huomioda sellaisia osasuorituksia joiden tyyppi on ammatillisentutkinnonosaapienempikokonaisuus." AND os.suorituksen_tyyppi != 'ammatillisentutkinnonosaapienempikokonaisuus' GO /****** Object: StoredProcedure [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_paatason_suoritukset] Script Date: 23.10.2019 17:56:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sa].[p_lataa_tutkinnot_ja_tutkinnonosat_paatason_suoritukset]') AND type in (N'P', N'PC')) BEGIN EXEC dbo.sp_executesql @statement = N'CREATE PROCEDURE [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_paatason_suoritukset] AS' END GO ALTER PROCEDURE [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_paatason_suoritukset] AS --4 § --Tutkintojen ja tutkinnon osien kustannusryhmän määräytyminen --Tutkinnon osan kustannusryhmä määräytyy sen tutkinnon mukaisesti, johon tutkinnon osa tutkinnon perusteiden mukaisesti kuuluu. --Ammatillisesta koulutuksesta annetun lain 13 §:n 2 momentissa tarkoitetut yhteiset tutkinnon osat kuuluvat kuitenkin kustannusryhmään 1. --Jos tutkinnon osa voi tutkinnon perusteiden mukaisesti kuulua useaan tutkintoon, jotka kuuluvat eri kustannusryhmiin, --tutkinnon osan kustannusryhmä määräytyy sen tutkinnon mukaisesti, jota opiskelija suorittaa. --Jos opiskelijan tavoitteena on suorittaa vain tutkinnon osa tai osia, tässä momentissa tarkoitettu tutkinnon osa kuuluu kustannusryhmään 1. -- ## Määritys OPH 7.3.2019, Korhonen, Hänninen Mikkonen -> Helminen, CSC ## -- Logiikka: poimitaan tutkintotyypin koodilla rajaten PT, AT ja EAT tutkinnot ja liitetään niihin kustannusryhmät -- Sitten tähän kyselyyn liitetään.. -- .. suoritustason tieto [dw].[v_amos_spl_koski_tutkinnon_osien_suoritukset].. -- .. ja koulutustoimijatieto [dw].[v_amos_spl_koski_suorite_organisaatio_linkki].. -- .. suodatetaan pois ei-vos-suoritukset [dw].[v_amos_spl_sa_koski_osasuoritus_pl_eivos].. -- .. ja kootaan kuutioon ladattavaksi ensin ilman organisaatiota [dw].[v_amos_spl_suoritepaatoslaskennan_tiedot].. -- .. ja sitten organisaation linkittäen [dw].[v_amos_spl_suoritepaatoslaskennan_tiedot_laajat] -- .. suorituskykysyistä osatuloksia ladataan samannimisiin materialisoituihin näkymiin .. -- .. tämä tehdään Jobissa, myöhemmin ehkä PDI:llä /jhe 25.3.2019 -- aikarajaus: vahvistuspäivä päätason suorituksella tarkasteluvuoden aikana TAI -- osasuorituksella arviointipäivä tarkasteluvuoden aikana -- eli liputa tässä vahvistuspäivä ja osasuorituksessa arviointipäivä.. -- rajaus jos ainakin toinen täyttää ehdon -- Erityistä: neljällä tutkinnolla on kahteen kustannusryhmään kuuluvia osaamisaloja, joten niiden kustannusryhmiä ei haeta kr-taulusta, -- ..poikkeavat osaamisalat liputetaan laatukontrollia varten sisemmässä kyselyssä, ulommassa kyselyssä.. -- .. kovakoodataan poikkeukset tutkinnon varsinaisesta kustannusryhmästä, case when t.osaamisala_koodiarvo in..... -- 12.3 päivitetty Sepon lisäykset poikkeaviin osaamisalakoodeihin, meili torstai 7. maaliskuuta 2019 15.09 -- 13.3 toimipiste_nimi pudotettu pois, sisältää historiatietoa eli samalla oidilla voi olla useita nimiversioita, sotkee raportin -- 2.4. kustannusryhmä liputettu poikkeavaksi jos ei suorita koko tutkintoa TRUNCATE TABLE [sa].[temp_tutkinnot_ja_tutkinnonosat_paatason_suoritukset] ;WITH CTE AS ( SELECT opiskeluoikeus_oid ,sisaltyy_opiskeluoikeuteen_oid ,koulutustoimija_oid ,oppilaitos_oid ,alkamispaiva ,paattymispaiva = COALESCE(paattymispaiva,'9999-12-31') FROM koski_sa.sa.sa_koski_opiskeluoikeus WHERE koulutusmuoto = 'ammatillinenkoulutus' ) INSERT INTO [sa].[temp_tutkinnot_ja_tutkinnonosat_paatason_suoritukset] SELECT DISTINCT t.toimipiste_oid, t.koulutustoimija_oid, t.opiskeluoikeus_oid, t.ylempi_opiskeluoikeus_oid, t.paatason_suoritus_id, tutkinto_koodi = coalesce(kl.uusi_eat_koodi, kl.koulutusluokitus_koodi, koulutusmoduuli_koodiarvo), --AP 16.6.2019 null-käsittely lisätty NULL AS osaamisala_koodiarvo, --t.osaamisala_koodiarvo, -- 9.5 jhe yhdistelmavain lisätty NULL AS tutkinto_ja_osaamisala_koodi, --t.tutkinto_ja_osaamisala_koodi, atok.tutkinto_ja_osaamisala_koodi as eper_tutkinto_ja_osaamisala_koodi, -- 12.5 diaarinumero ja yhdistelmäavaimet lisätty t.diaarinumero, --t.diaarinumero_space, NULL as diaarinumero_tutkinto_koodi, -- t.diaarinumero+'_'+t.koulutusmoduuli_koodiarvo as diaarinumero_tutkinto_koodi, NULL as diaarinumero_tutkinto_ja_osaamisala_koodi, -- t.diaarinumero+'_'+t.tutkinto_ja_osaamisala_koodi as diaarinumero_tutkinto_ja_osaamisala_koodi, t.suorituksen_tyyppi, case WHEN t.suorituksen_tyyppi <> 'ammatillinentutkinto' THEN '1' else coalesce(sa1.kustannusryhma_koodi, sa2.kustannusryhma_koodi) end AS kustannusryhma_koodi, atok.tutkinto_kustannusryhma_koodi AS alkup_kustannusryhmakoodi, t.suorittaa_koko_tutkintoa, kl.tutkintotyyppi_koodi, kl.tutkintotyyppi_fi, kl.koulutusluokitus_fi, t.vahvistus_paiva, t.vahvistus_paiva_on, vahvistus_paiva_kohdevuonna FROM ( SELECT --12.5.2019 diaarinumero haettava data-kentän jsonista, per mikkonen email pe 10.5.2019 11.21 -- ltrim(rtrim(replace(replace(replace(substring(data,CHARINDEX('"perusteenDiaarinumero": ',data)+26,15),'}',''),'"',''),',',''))) as diaarinumero_space, replace(replace(replace(replace(substring(data,CHARINDEX('"perusteenDiaarinumero": ',data)+26,15),'}',''),'"',''),',',''),' ','') as diaarinumero, ps.toimipiste_oid, coalesce(so.koulutustoimija_oid, oo.koulutustoimija_oid) as koulutustoimija_oid, ps.opiskeluoikeus_oid, coalesce(oo.sisaltyy_opiskeluoikeuteen_oid,'') as ylempi_opiskeluoikeus_oid, ps.paatason_suoritus_id, CASE WHEN ps.suorituksen_tyyppi = 'ammatillinentutkinto' THEN 1 ELSE 0 END AS suorittaa_koko_tutkintoa, ps.koulutusmoduuli_koodiarvo, --CASE -- WHEN ps.koulutusmoduuli_koodiarvo = '999904' THEN ps.tutkinto_koodiarvo -- ELSE ps.koulutusmoduuli_koodiarvo --END AS koulutusmoduuli_koodiarvo, ps.osaamisala_koodiarvo, --AP 16.6.2019 muutettu alla olevaa päättelyä CASE WHEN ps.osaamisala_koodiarvo IS NULL and ps.koulutusmoduuli_koodiarvo = '999904' THEN ps.tutkinto_koodiarvo WHEN ps.osaamisala_koodiarvo IS NULL and ps.koulutusmoduuli_koodiarvo <> '999904' THEN ps.koulutusmoduuli_koodiarvo WHEN ps.osaamisala_koodiarvo IS NOT NULL THEN ps.osaamisala_koodiarvo --WHEN ps.osaamisala_koodiarvo IS NOT NULL and ps.koulutusmoduuli_koodiarvo = '999904' THEN CAST(ps.tutkinto_koodiarvo AS varchar(20)) + '_' + CAST(ps.osaamisala_koodiarvo AS varchar(20)) --ELSE CAST(ps.koulutusmoduuli_koodiarvo AS varchar(20)) + '_' + CAST(ps.osaamisala_koodiarvo AS varchar(20)) END AS tutkinto_ja_osaamisala_koodi, ps.suorituksen_tyyppi, -- AP 11.9.2019 lisätty case CASE WHEN ps.vahvistus_paiva < oo.alkamispaiva THEN oo.alkamispaiva WHEN ps.vahvistus_paiva > oo.paattymispaiva THEN oo.paattymispaiva ELSE ps.vahvistus_paiva END AS vahvistus_paiva, CASE WHEN year(vahvistus_paiva)=2018 --year(getdate())-1 THEN 1 ELSE 0 END AS vahvistus_paiva_kohdevuonna, CASE WHEN vahvistus_paiva IS NULL THEN 0 ELSE 1 END AS vahvistus_paiva_on FROM CTE AS oo LEFT JOIN koski_sa.sa.sa_koski_paatason_suoritus ps ON ps.opiskeluoikeus_oid = oo.opiskeluoikeus_oid LEFT JOIN CTE AS so ON so.opiskeluoikeus_oid = coalesce(oo.sisaltyy_opiskeluoikeuteen_oid,'') --jhe 17.5.2019 Juhon meili:"Eli sun pitää pudottaa sieltä pois kaikki päätason suoritukset, joiden tyyppi on "nayttotutkintoonvalmistavakoulutus". Niistä ei tarvi katsoa ollenkaan osasuorituksia." WHERE ps.suorituksen_tyyppi != 'nayttotutkintoonvalmistavakoulutus' --AP 13.10.2019 ylempää "kuorioikeutta" ei huomioida ) AS t -- AP 16.6.2019 lisätty kaksi joinia LEFT JOIN (SELECT DISTINCT tutkinto_ja_osaamisala_koodi, tutkinto_kustannusryhma_koodi FROM dbo.kustannusryhma_tutkinto_ja_osaamisala) atok on atok.tutkinto_ja_osaamisala_koodi = t.tutkinto_ja_osaamisala_koodi LEFT JOIN ANTERO.sa.sa_amos_osaamisala_kustannusryhma sa1 on sa1.osaamisala_koodi = t.tutkinto_ja_osaamisala_koodi LEFT JOIN ANTERO.dw.d_koulutusluokitus kl on kl.koulutusluokitus_koodi = t.koulutusmoduuli_koodiarvo LEFT JOIN ANTERO.sa.sa_amos_tutkinto_kustannusryhma sa2 on sa2.tutkinto_koodi = coalesce(kl.uusi_eat_koodi, kl.koulutusluokitus_koodi) GO /****** Object: StoredProcedure [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_tutkinnon_osien_suoritukset] Script Date: 23.10.2019 17:56:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sa].[p_lataa_tutkinnot_ja_tutkinnonosat_tutkinnon_osien_suoritukset]') AND type in (N'P', N'PC')) BEGIN EXEC dbo.sp_executesql @statement = N'CREATE PROCEDURE [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_tutkinnon_osien_suoritukset] AS' END GO ALTER PROCEDURE [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_tutkinnon_osien_suoritukset] AS -- ## Määritys OPH 7.3.2019, Korhonen, <NAME> -> Helminen ## -- Logiikka: poimitaan osasuoritukset opiskeluoikeuksittain.. -- .. toiseen opiskeluoikeuteen sisältyvät suoritukset niputetaan emo-oikeuden eli ylemmän osasuorituksen alle -- .. tätä varten on luotu uusi raportointikäsite "suoritustason_tunniste", jolla suoritusten kpl-määrä voidaan laskea -- Aikarajaus tehdään arviointipäivän avulla, mutta tässä kyselyssä ei karsita rivejä, ainoastaan liputetaan osuminen raportointivuoteen.. -- .. varsinainen aikarajaus tehdään kun osasuoritus yhdistetään päätason tauluun, jonka vahvistus_paiva -arvo on vaihtoehtoinen hyväksymiskriteeri -- Yhteinen tutkinnonosa liputetaan täällä myöhempää kustannusryhmittelyä varten TRUNCATE TABLE [sa].[temp_tutkinnot_ja_tutkinnonosat_tutkinnon_osien_suoritukset] ;WITH CTE AS ( SELECT opiskeluoikeus_oid ,sisaltyy_opiskeluoikeuteen_oid ,oppilaitos_oid ,koulutustoimija_oid ,alkamispaiva ,paattymispaiva = COALESCE(paattymispaiva,'9999-12-31') FROM koski_sa.sa.sa_koski_opiskeluoikeus WHERE koulutusmuoto = 'ammatillinenkoulutus' ) INSERT INTO [sa].[temp_tutkinnot_ja_tutkinnonosat_tutkinnon_osien_suoritukset] SELECT oppilaitos_oid, koulutustoimija_oid, opiskeluoikeus_oid, ylempi_opiskeluoikeus_oid, paatason_suoritus_id, coalesce(CASE WHEN kuuluu_kaatoluokkaan = 1 THEN t.osasuoritus_id ELSE t.ylempi_osasuoritus_id END ,t.osasuoritus_id) AS suoritustason_tunniste, arviointi_paiva, arviointi_paiva_kohdevuonna, usean_tutkinnon_tutkinnonosa, usean_tutkinnon_tutkinnonosa_usea_kustannusryhma, kustannusryhma_usean_tutkinnon_tutkinnonosa_yksi_kustannusryhma, tutkinto_johon_tutkinnonosa_kuuluu, osaamisala_johon_tutkinnonosa_kuuluu, yhteinen_tutkinnon_osa, toisesta_tutkinnosta_sisallytetty_tutkinnonosa, kuuluu_kaatoluokkaan, koulutus_moduuli_laajuus_alle_yhden, koulutusmoduuli_koodiarvo, koulutusmoduuli_koodiarvo_paataso, koulutusmoduuli_koodiarvo_numeerinen, --laajuus_puuttuu_eperusteista, ---------------------------------------- --jhe 23.5 korvataan kosken laajuustieto eper-tiedolla jos se on saatavana --.. näytetään myös alkuperäinen arvo --.. huom. vanhojen tutkintojen osalta laajuus määritellään diaarinumeron perusteella --.. seuraavassa kyselyssä: [dw].[v_amos_spl_suoritepaatoslaskennan_tiedot] -- jhe 23.5 Sepon speksi 21.5: jos suorituksen laajuus haetaan koskesta ja arvo ei ole välillä 5-15.. -- oikaistaan ohjelmallisesti, arvo<5=0, arvo<15=15 laajuus_puuttuu_eperusteista, COALESCE( CASE --ensisijaisesti laajuus eperusteista -- jhe 23.5, ei löydy kaikkia laajuuksia epersta? --laajuus_puuttuu_eperusteista=0 then ep_tutkinnonosa_laajuus when laajuus_puuttuu_eperusteista=0 then isnull(ep_tutkinnonosa_laajuus,koulutusmoduuli_laajuus_arvo) --jos laajuus koskesta, hyväksytään vain sallituissa rajoissa when laajuus_puuttuu_eperusteista=1 and [koulutusmoduuli_laajuus_arvo] < 5 then 0 when laajuus_puuttuu_eperusteista=1 and [koulutusmoduuli_laajuus_arvo] > 15 then 15 when laajuus_puuttuu_eperusteista=2 and [koulutusmoduuli_laajuus_arvo] > 25 then 25 when laajuus_puuttuu_eperusteista=3 then 0 else [koulutusmoduuli_laajuus_arvo] END ,0) AS koulutusmoduuli_laajuus_arvo, koulutusmoduuli_laajuus_arvo as koulutusmoduuli_laajuus_arvo_alkup ,suorituksen_tyyppi ,suorittaa_koko_tutkintoa --koulutusmoduuli_laajuus_yksikko FROM ( SELECT oo.oppilaitos_oid, coalesce(oo2.koulutustoimija_oid, oo.koulutustoimija_oid) AS koulutustoimija_oid, os.opiskeluoikeus_oid AS opiskeluoikeus_oid, coalesce(oo.sisaltyy_opiskeluoikeuteen_oid,'') AS ylempi_opiskeluoikeus_oid, os.paatason_suoritus_id, os.osasuoritus_id, os.ylempi_osasuoritus_id, --AP 2.8.2019 tällä varmistetaan se, että arviointipäivä mappaantuu myöhemmin johonkin aikajaksoon CASE WHEN os.arviointi_paiva < oo.alkamispaiva THEN oo.alkamispaiva WHEN os.arviointi_paiva > oo.paattymispaiva THEN oo.paattymispaiva ELSE os.arviointi_paiva END AS arviointi_paiva, CASE WHEN Year(os.arviointi_paiva) = 2018 THEN 1 ELSE 0 END AS arviointi_paiva_kohdevuonna, os.arviointi_hyvaksytty, CASE WHEN os.koulutusmoduuli_laajuus_arvo < 1 THEN 1 ELSE 0 END AS koulutus_moduuli_laajuus_alle_yhden, os.koulutusmoduuli_laajuus_arvo, os.koulutusmoduuli_laajuus_yksikko, ep.tutkinnonosa_laajuus as ep_tutkinnonosa_laajuus, os.koulutusmoduuli_koodiarvo, kl.koulutusluokitus_koodi as koulutusmoduuli_koodiarvo_paataso, os.koulutusmoduuli_koodiarvo_numeerinen, --os.ep_usean_tutkinnon_tutkinnonosa, -- 10.5.2019 jhe, tämä liputus tarvitaan kustannusryhmän määrittelyssä, per Seppo H -- liputus tehdään eperusteita vasten, siellä tunnistetut tutkinnonosat tässä ykkösellä, muut nollalla coalesce(epu.kuuluu_useaan_tutkintoon,0) as usean_tutkinnon_tutkinnonosa, coalesce(epu.kuuluu_eri_kustannusryhmiin,0) as usean_tutkinnon_tutkinnonosa_usea_kustannusryhma, epu.kuuluu_useaan_tutkintoon_yksi_kustannusryhma as kustannusryhma_usean_tutkinnon_tutkinnonosa_yksi_kustannusryhma, coalesce(epu.tutkinto_koodi,'') as tutkinto_johon_tutkinnonosa_kuuluu, coalesce(epu.osaamisala_koodi,'') AS osaamisala_johon_tutkinnonosa_kuuluu, CASE WHEN os.koulutusmoduuli_koodiarvo IN ( '101053', '101054', '101055', '101056', '400012', '400013', '400014' ) AND os.koulutusmoduuli_koodisto = 'tutkinnonosat' THEN 1 ELSE 0 END AS yhteinen_tutkinnon_osa, CASE WHEN os.data LIKE '%{_tutkinto_:%' THEN 1 ELSE 0 END AS toisesta_tutkinnosta_sisallytetty_tutkinnonosa, CASE WHEN os.koulutusmoduuli_koodiarvo IN ( '1', '2' ) AND os.koulutusmoduuli_koodisto = 'tutkinnonosatvalinnanmahdollisuus' THEN 1 ELSE 0 END AS kuuluu_kaatoluokkaan, --------------------- --jhe 23.5.2019 Juho mikkosen speksi 21.5., so. suoritustyyppien laajuutta ei löydy eperusteista.. --..käytetään koskeen kirjattua arvoa, tässä ensin ominaisuuden liputus: --AP 17.10.2019 muutettu Juhon uuden speksin mukaan CASE -- yhteinen tutkinnonosa WHEN os.koulutusmoduuli_koodiarvo IN ('101053', '101054', '101055', '101056', '400012', '400013', '400014') AND os.koulutusmoduuli_koodisto = 'tutkinnonosat' AND Year(os.arviointi_paiva) = 2018--Year(Getdate()) -1 THEN 1 WHEN os.koulutusmoduuli_koodisto_ylempi = 'tutkinnonosatvalinnanmahdollisuus' AND os.suorituksen_tyyppi = 'ammatillinenkorkeakouluopintoja' THEN 1 WHEN os.koulutusmoduuli_koodisto_ylempi = 'tutkinnonosatvalinnanmahdollisuus' AND os.suorituksen_tyyppi in ('ammatillinenlukionopintoja','ammatillinenmuitaopintovalmiuksiatukeviaopintoja','ammatillisentutkinnonosanosaalue') THEN 2 --kaatoluokka WHEN os.koulutusmoduuli_koodiarvo IN ('1', '2') AND os.koulutusmoduuli_koodisto = 'tutkinnonosatvalinnanmahdollisuus' THEN 3 ELSE 0 END as laajuus_puuttuu_eperusteista ,ps.suorituksen_tyyppi ,case when ps.suorituksen_tyyppi = 'ammatillinentutkinto' then 1 else 0 end as suorittaa_koko_tutkintoa FROM [sa].[temp_tutkinnot_ja_tutkinnonosat_osasuoritus_pl_eivos] AS os LEFT JOIN Koski_SA.sa.sa_koski_paatason_suoritus ps on ps.paatason_suoritus_id = os.paatason_suoritus_id LEFT JOIN CTE AS oo ON oo.opiskeluoikeus_oid = os.opiskeluoikeus_oid --AP 1.10.2019 ao join linkitettyjen oikeuksien järjestäjän hakemiseen LEFT JOIN CTE AS oo2 on oo2.opiskeluoikeus_oid = oo.sisaltyy_opiskeluoikeuteen_oid --AP 23.6.2019 lisätty alla olevaan joiniin ehto rnk=1 LEFT JOIN [Koski_SA].[dbo].[eperusteet_osaamisalat_tutkinnonosat_laajuudet] as ep ON cast(os.koulutusmoduuli_koodiarvo_numeerinen as bigint) = ep.tutkinnonosa_koodi and rnk2=1 --jhe 30.4 tuodaan ep:stä usean tutkinnonosan liputus LEFT JOIN [Koski_SA].[dbo].[eperusteet_tutkinnonosa_tutkinto_kustannusryhma] as epu ON cast(os.koulutusmoduuli_koodiarvo_numeerinen as bigint) = epu.tutkinnonosa_koodi LEFT JOIN ANTERO.dw.d_koulutusluokitus kl ON kl.koulutusluokitus_koodi = ps.koulutusmoduuli_koodiarvo WHERE os.osasuoritus_hylataan = 0 AND kl.tutkintotyyppi_koodi IN ('02','19','20') --OR kl.koulutusluokitus_koodi IN ('999901','999903')) ) AS t GO USE [ANTERO]
<filename>db/schema.sql<gh_stars>1-10 DROP DATABASE IF EXISTS jointeffort_db; CREATE DATABASE jointeffort_db;
-- Setting is_current to false for older Filing Actions UPDATE opencivicdata_filingaction SET is_current = false, updated_at = now() FROM opencivicdata_filingaction fa -- get latest amend_id for each filing LEFT JOIN ( SELECT filing_id, MAX((extras->>'amend_id')::int) as amend_id FROM opencivicdata_filingaction GROUP BY 1 ) latest ON fa.filing_id = latest.filing_id WHERE latest.amend_id IS NULL AND fa.is_current = true;
-- depends: 0001.create-public.media_metadata_staging CREATE INDEX IF NOT EXISTS media_hash_code_index ON public.media_metadata_staging USING btree (media_hash_code);
CREATE TABLE favorites ( "user" INTEGER REFERENCES users ON DELETE CASCADE, article INTEGER REFERENCES articles ON DELETE CASCADE, PRIMARY KEY ("user", article) );
<reponame>VladimirKryat/BooksWorld ALTER TABLE IF EXISTS book ADD COLUMN filename varchar(255) NOT NULL DEFAULT('default.jpg');