Merge branch 'master' of http://gitea.lunor.cn/java_templates/ruoyi_java into chen
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>ruoyi</artifactId> |
| | | <groupId>com.ruoyi</groupId> |
| | | <version>3.8.9</version> |
| | | </parent> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | |
| | | <artifactId>basic-server</artifactId> |
| | | <dependencies> |
| | | <!-- éç¨å·¥å
·--> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-common</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- æ ¸å¿æ¨¡å--> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-framework</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- ç³»ç»æ¨¡å--> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-system</artifactId> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <properties> |
| | | <maven.compiler.source>8</maven.compiler.source> |
| | | <maven.compiler.target>8</maven.compiler.target> |
| | | </properties> |
| | | |
| | | </project> |
| | |
| | | <jakarta.version>6.0.0</jakarta.version> |
| | | <springdoc.version>2.6.0</springdoc.version> |
| | | <postgresql.version>42.7.3</postgresql.version> |
| | | <mybatis-plus.version>3.5.3.1</mybatis-plus.version> |
| | | <freemarker.version>2.3.30</freemarker.version> |
| | | <minio.version>8.4.3</minio.version> |
| | | <okhttp.version>4.9.0</okhttp.version> |
| | | </properties> |
| | |
| | | <groupId>com.github.pagehelper</groupId> |
| | | <artifactId>pagehelper-spring-boot-starter</artifactId> |
| | | <version>${pagehelper.boot.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.mybatis.spring.boot</groupId> |
| | | <artifactId>mybatis-spring-boot-starter</artifactId> |
| | | <version>${mybatis-spring-boot.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | |
| | | <version>${okhttp.version}</version> |
| | | </dependency> |
| | | |
| | | <!--åºç¡æ¨¡å--> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>basic-server</artifactId> |
| | | <version>${ruoyi.version}</version> |
| | | </dependency> |
| | | </dependencies> |
| | | </dependencyManagement> |
| | | |
| | | <!-- å
¨å±å¼å
¥ --> |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>org.projectlombok</groupId> |
| | | <artifactId>lombok</artifactId> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | |
| | | <!--mybatis-plus--> |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-boot-starter</artifactId> |
| | | <version>${mybatis-plus.version}</version> |
| | | </dependency> |
| | | |
| | | <!--mybatis-plus代ç çæå¨--> |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-generator</artifactId> |
| | | <version>${mybatis-plus.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.freemarker</groupId> |
| | | <artifactId>freemarker</artifactId> |
| | | <version>${freemarker.version}</version> |
| | | </dependency> |
| | | |
| | | </dependencies> |
| | | |
| | | <modules> |
| | | <module>ruoyi-admin</module> |
| | |
| | | <module>ruoyi-quartz</module> |
| | | <module>ruoyi-generator</module> |
| | | <module>ruoyi-common</module> |
| | | <module>basic-server</module> |
| | | </modules> |
| | | <packaging>pom</packaging> |
| | | |
| | |
| | | <artifactId>postgresql</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- FreeMarker 模æ¿å¼æ --> |
| | | <dependency> |
| | | <groupId>org.freemarker</groupId> |
| | | <artifactId>freemarker</artifactId> |
| | | <version>2.3.31</version> <!-- 坿 ¹æ®éè¦è°æ´çæ¬ --> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.apache.velocity</groupId> |
| | | <artifactId>velocity-engine-core</artifactId> |
| | | <version>2.3</version> |
| | | </dependency> |
| | | |
| | | <!-- minioä¾èµokhttp ä¸ç¶æ¥é --> |
| | | <dependency> |
| | | <groupId>com.squareup.okhttp3</groupId> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.generator.FastAutoGenerator; |
| | | import com.baomidou.mybatisplus.generator.config.OutputFile; |
| | | import com.baomidou.mybatisplus.generator.config.rules.DateType; |
| | | import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy; |
| | | import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine; |
| | | import com.baomidou.mybatisplus.generator.fill.Column; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | |
| | | import java.io.IOException; |
| | | import java.nio.file.Files; |
| | | import java.nio.file.Path; |
| | | import java.nio.file.Paths; |
| | | import java.util.Arrays; |
| | | import java.util.Collections; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * MyBatis-Plus 代ç çæå¨ |
| | | * åè½ï¼æ ¹æ®æ°æ®åºè¡¨ç»æèªå¨çæEntityãMapperãServiceãControllerç代ç |
| | | * ä¿®å¤ï¼è§£å³Freemarker模æ¿ä¸generateServiceåé缺失çé®é¢ |
| | | */ |
| | | @SpringBootApplication |
| | | public class PlusCodeGenerator { |
| | | |
| | | // æ°æ®åºé
ç½® |
| | | private static final String DB_URL = "jdbc:postgresql://lunor.cn:5431/ruoyi-java"; |
| | | private static final String DB_USERNAME = "test"; |
| | | private static final String DB_PASSWORD = "chj123456"; |
| | | |
| | | // 项ç®åºç¡é
ç½® |
| | | private static final String BASE_PACKAGE = "com.ruoyi"; |
| | | private static final String MODULE_NAME = "basic"; // 模åå |
| | | |
| | | public static void main(String[] args) { |
| | | String projectPath = System.getProperty("user.dir"); // è·åé¡¹ç®æ ¹è·¯å¾ |
| | | String path = "basic-server"; // 模ååç§° |
| | | String table = "test"; // 表åï¼å¤ä¸ªè¡¨éå·éå¼ |
| | | |
| | | // 代ç è¾åºè·¯å¾é
ç½® |
| | | String outputBasePath = Paths.get(projectPath, path, "src", "main", "java").toString(); |
| | | String outputResourcePath = Paths.get(projectPath, path, "src", "main", "resources", "mapper").toString(); |
| | | |
| | | // 代ç çææ ¸å¿é
ç½® |
| | | FastAutoGenerator.create(DB_URL, DB_USERNAME, DB_PASSWORD) |
| | | .globalConfig(builder -> { |
| | | builder.author("ruoyi") // ä½è
ä¿¡æ¯ |
| | | .outputDir(outputBasePath) // 代ç è¾åºç®å½ |
| | | .dateType(DateType.ONLY_DATE) // æ¥æç±»å |
| | | .commentDate("yyyy-MM-dd") // æ³¨éæ¥ææ ¼å¼ |
| | | .disableOpenDir(); // ç¦æ¢èªå¨æå¼è¾åºç®å½ |
| | | }) |
| | | .packageConfig(builder -> { |
| | | builder.parent(BASE_PACKAGE) // åºç¡å
å |
| | | .moduleName(MODULE_NAME) // 模åå |
| | | .entity("entity") // Entityå
å |
| | | .mapper("mapper") // Mapperå
å |
| | | .service("service") // Serviceå
å |
| | | .serviceImpl("service.impl") // Serviceå®ç°ç±»å
å |
| | | .controller("controller") // Controllerå
å |
| | | .pathInfo(Collections.singletonMap( |
| | | OutputFile.xml, |
| | | outputResourcePath // Mapper XMLè¾åºè·¯å¾ |
| | | )); |
| | | }) |
| | | .strategyConfig(builder -> { |
| | | builder.addInclude(table) // è¦çæç表å |
| | | .addTablePrefix("t_", "sys_") // è¿æ»¤è¡¨åç¼ |
| | | |
| | | // å®ä½ç±»é
ç½® |
| | | .entityBuilder() |
| | | .superClass("com.ruoyi.common.core.domain.BaseEntity") // ç»§æ¿åºç±» |
| | | .addSuperEntityColumns("create_by", "create_time", "update_by", "update_time") // æé¤åºç±»å段 |
| | | .enableLombok() // å¯ç¨Lombok |
| | | .naming(NamingStrategy.underline_to_camel) // 表å转驼峰 |
| | | .columnNaming(NamingStrategy.underline_to_camel) // åå转驼峰 |
| | | .enableFileOverride() // å
许è¦çæä»¶ |
| | | .logicDeleteColumnName("deleted") // é»è¾å é¤å段 |
| | | .addTableFills( |
| | | // èªå¨å¡«å
é
ç½® |
| | | new Column("create_by", FieldFill.INSERT), // åå»ºäººï¼æå
¥æ¶å¡«å
|
| | | new Column("update_by", FieldFill.INSERT_UPDATE), // æ´æ°äººï¼æå
¥åæ´æ°æ¶å¡«å
|
| | | new Column("create_time", FieldFill.INSERT), // å建æ¶é´ï¼æå
¥æ¶å¡«å
|
| | | new Column("update_time", FieldFill.INSERT_UPDATE) // æ´æ°æ¶é´ï¼æå
¥åæ´æ°æ¶å¡«å
|
| | | ) |
| | | .idType(IdType.AUTO) // 主é®çç¥ |
| | | .enableTableFieldAnnotation() // å¯ç¨å段注解 |
| | | |
| | | // æ§å¶å¨é
ç½® |
| | | .controllerBuilder() |
| | | .enableFileOverride() // å
许è¦ç |
| | | .enableRestStyle() // çæRESTful飿 ¼æ§å¶å¨ |
| | | |
| | | // Serviceé
ç½® |
| | | .serviceBuilder() |
| | | .formatServiceFileName("%sService") // Serviceæ¥å£å½åæ ¼å¼ |
| | | .enableFileOverride() // å
许è¦ç |
| | | .formatServiceImplFileName("%sServiceImpl") // Serviceå®ç°ç±»å½åæ ¼å¼ |
| | | .enableFileOverride() // å
许è¦ç |
| | | |
| | | // Mapperé
ç½® |
| | | .mapperBuilder() |
| | | .enableFileOverride() // å
许è¦ç |
| | | .enableMapperAnnotation() // å¯ç¨@Mapper注解 |
| | | .enableBaseResultMap() // å¯ç¨åºç¡ResultMap |
| | | .enableBaseColumnList() // å¯ç¨åºç¡ColumnList |
| | | .formatMapperFileName("%sMapper") // Mapperæ¥å£å½åæ ¼å¼ |
| | | .formatXmlFileName("%sMapper") // Mapper XMLå½åæ ¼å¼ |
| | | .enableFileOverride(); // å
许è¦ç |
| | | }) |
| | | // é
ç½®èªå®ä¹æ¨¡æ¿ |
| | | .templateConfig(builder -> { |
| | | builder |
| | | .entity("/templates/entity.java") // å®ä½ç±»æ¨¡æ¿ |
| | | .xml("/templates/mapper.xml") // Mapper XMLæ¨¡æ¿ |
| | | .controller("/templates/controller.java") // æ§å¶å¨æ¨¡æ¿ |
| | | .serviceImpl("/templates/serviceImpl.java"); // Serviceå®ç°ç±»æ¨¡æ¿ |
| | | }) |
| | | // 注å
¥æ¨¡æ¿åé |
| | | .injectionConfig(builder -> { |
| | | Map<String, Object> customMap = new HashMap<>(); |
| | | customMap.put("superEntityColumns", Arrays.asList( |
| | | "create_by", "create_time", "update_by", "update_time" |
| | | )); // åºç±»å段 |
| | | customMap.put("idType", "AUTO"); // 主é®ç±»å |
| | | customMap.put("superEntityClass", "com.ruoyi.common.core.domain.BaseEntity"); // åºç±»å
¨è·¯å¾ |
| | | customMap.put("author", "ruoyi"); // ä½è
ä¿¡æ¯ |
| | | customMap.put("packageName", BASE_PACKAGE + "." + MODULE_NAME); // å
å |
| | | customMap.put("tableName", table); // 表å |
| | | |
| | | // æ°å¢ï¼è§£å³Freemarker模æ¿ä¸generateServiceåé缺失çé®é¢ |
| | | // æ§å¶Serviceå®ç°ç±»æ¯å¦å®ç°Serviceæ¥å£ |
| | | boolean generateService = true; |
| | | customMap.put("generateService", generateService); |
| | | |
| | | builder.customMap(customMap); |
| | | }) |
| | | .templateEngine(new FreemarkerTemplateEngine()) // 使ç¨Freemarker模æ¿å¼æ |
| | | .execute(); // æ§è¡ä»£ç çæ |
| | | |
| | | // åå¤çï¼ä¿®å¤å®ä½ç±»çå®å
¨éå®åé®é¢ |
| | | try { |
| | | Path entityPath = Paths.get(outputBasePath, "com/ruoyi/basic/entity/Test.java"); |
| | | if (Files.exists(entityPath)) { |
| | | String content = Files.readString(entityPath); |
| | | content = content.replace( |
| | | "extends com.ruoyi.common.core.domain.BaseEntity", |
| | | "extends BaseEntity" |
| | | ); // ç®ååºç±»å¼ç¨ |
| | | Files.writeString(entityPath, content); |
| | | } |
| | | } catch (IOException e) { |
| | | System.err.println("â ï¸ ä¿®å¤å®ä½ç±»å¤±è´¥: " + e.getMessage()); |
| | | } |
| | | |
| | | System.out.println("â
代ç çæå®æï¼æä»¶å·²è¾åºå°ï¼" + outputBasePath); |
| | | } |
| | | } |
| | |
| | | -- ---------------------------- |
| | | -- åå§å-é¨é¨è¡¨æ°æ® |
| | | -- ---------------------------- |
| | | insert into sys_dept values(100, 0, '0', 'è¥ä¾ç§æ', 0, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null); |
| | | insert into sys_dept values(101, 100, '0,100', 'æ·±å³æ»å
¬å¸', 1, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null); |
| | | insert into sys_dept values(102, 100, '0,100', 'é¿æ²åå
¬å¸', 2, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null); |
| | | insert into sys_dept values(103, 101, '0,100,101', 'ç åé¨é¨', 1, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null); |
| | | insert into sys_dept values(104, 101, '0,100,101', 'å¸åºé¨é¨', 2, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null); |
| | | insert into sys_dept values(105, 101, '0,100,101', 'æµè¯é¨é¨', 3, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null); |
| | | insert into sys_dept values(106, 101, '0,100,101', 'è´¢å¡é¨é¨', 4, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null); |
| | | insert into sys_dept values(107, 101, '0,100,101', 'è¿ç»´é¨é¨', 5, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null); |
| | | insert into sys_dept values(108, 102, '0,100,102', 'å¸åºé¨é¨', 1, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null); |
| | | insert into sys_dept values(109, 102, '0,100,102', 'è´¢å¡é¨é¨', 2, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', sysdate(), '', null); |
| | | insert into sys_dept values(100, 0, '0', 'è¥ä¾ç§æ', 0, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', now(), '', null); |
| | | insert into sys_dept values(101, 100, '0,100', 'æ·±å³æ»å
¬å¸', 1, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', now(), '', null); |
| | | insert into sys_dept values(102, 100, '0,100', 'é¿æ²åå
¬å¸', 2, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', now(), '', null); |
| | | insert into sys_dept values(103, 101, '0,100,101', 'ç åé¨é¨', 1, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', now(), '', null); |
| | | insert into sys_dept values(104, 101, '0,100,101', 'å¸åºé¨é¨', 2, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', now(), '', null); |
| | | insert into sys_dept values(105, 101, '0,100,101', 'æµè¯é¨é¨', 3, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', now(), '', null); |
| | | insert into sys_dept values(106, 101, '0,100,101', 'è´¢å¡é¨é¨', 4, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', now(), '', null); |
| | | insert into sys_dept values(107, 101, '0,100,101', 'è¿ç»´é¨é¨', 5, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', now(), '', null); |
| | | insert into sys_dept values(108, 102, '0,100,102', 'å¸åºé¨é¨', 1, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', now(), '', null); |
| | | insert into sys_dept values(109, 102, '0,100,102', 'è´¢å¡é¨é¨', 2, 'è¥ä¾', '15888888888', 'ry@qq.com', '0', '0', 'admin', now(), '', null); |
| | | |
| | | |
| | | -- ---------------------------- |
| | |
| | | -- ---------------------------- |
| | | -- åå§å-ç¨æ·ä¿¡æ¯è¡¨æ°æ® |
| | | -- ---------------------------- |
| | | insert into sys_user values(1, 103, 'admin', 'è¥ä¾', '00', 'ry@163.com', '15888888888', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', sysdate(), 'admin', sysdate(), '', null, '管çå'); |
| | | insert into sys_user values(2, 105, 'ry', 'è¥ä¾', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', sysdate(), 'admin', sysdate(), '', null, 'æµè¯å'); |
| | | insert into sys_user values(1, 103, 'admin', 'è¥ä¾', '00', 'ry@163.com', '15888888888', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', now(), 'admin', now(), '', null, '管çå'); |
| | | insert into sys_user values(2, 105, 'ry', 'è¥ä¾', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', now(), 'admin', now(), '', null, 'æµè¯å'); |
| | | |
| | | |
| | | -- ---------------------------- |
| | |
| | | -- ---------------------------- |
| | | -- åå§å-å²ä½ä¿¡æ¯è¡¨æ°æ® |
| | | -- ---------------------------- |
| | | insert into sys_post values(1, 'ceo', 'è£äºé¿', 1, '0', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_post values(2, 'se', '项ç®ç»ç', 2, '0', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_post values(3, 'hr', '人åèµæº', 3, '0', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_post values(4, 'user', 'æ®éåå·¥', 4, '0', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_post values(1, 'ceo', 'è£äºé¿', 1, '0', 'admin', now(), '', null, ''); |
| | | insert into sys_post values(2, 'se', '项ç®ç»ç', 2, '0', 'admin', now(), '', null, ''); |
| | | insert into sys_post values(3, 'hr', '人åèµæº', 3, '0', 'admin', now(), '', null, ''); |
| | | insert into sys_post values(4, 'user', 'æ®éåå·¥', 4, '0', 'admin', now(), '', null, ''); |
| | | |
| | | |
| | | -- ---------------------------- |
| | |
| | | -- ---------------------------- |
| | | -- åå§å-è§è²ä¿¡æ¯è¡¨æ°æ® |
| | | -- ---------------------------- |
| | | insert into sys_role values('1', 'è¶
级管çå', 'admin', 1, 1, 1, 1, '0', '0', 'admin', sysdate(), '', null, 'è¶
级管çå'); |
| | | insert into sys_role values('2', 'æ®éè§è²', 'common', 2, 2, 1, 1, '0', '0', 'admin', sysdate(), '', null, 'æ®éè§è²'); |
| | | insert into sys_role values('1', 'è¶
级管çå', 'admin', 1, 1, 1, 1, '0', '0', 'admin', now(), '', null, 'è¶
级管çå'); |
| | | insert into sys_role values('2', 'æ®éè§è²', 'common', 2, 2, 1, 1, '0', '0', 'admin', now(), '', null, 'æ®éè§è²'); |
| | | |
| | | |
| | | -- ---------------------------- |
| | |
| | | -- åå§å-èåä¿¡æ¯è¡¨æ°æ® |
| | | -- ---------------------------- |
| | | -- ä¸çº§èå |
| | | insert into sys_menu values('1', 'ç³»ç»ç®¡ç', '0', '1', 'system', null, '', '', 1, 0, 'M', '0', '0', '', 'system', 'admin', sysdate(), '', null, 'ç³»ç»ç®¡çç®å½'); |
| | | insert into sys_menu values('2', 'ç³»ç»çæ§', '0', '2', 'monitor', null, '', '', 1, 0, 'M', '0', '0', '', 'monitor', 'admin', sysdate(), '', null, 'ç³»ç»çæ§ç®å½'); |
| | | insert into sys_menu values('3', 'ç³»ç»å·¥å
·', '0', '3', 'tool', null, '', '', 1, 0, 'M', '0', '0', '', 'tool', 'admin', sysdate(), '', null, 'ç³»ç»å·¥å
·ç®å½'); |
| | | insert into sys_menu values('4', 'è¥ä¾å®ç½', '0', '4', 'http://ruoyi.vip', null, '', '', 0, 0, 'M', '0', '0', '', 'guide', 'admin', sysdate(), '', null, 'è¥ä¾å®ç½å°å'); |
| | | insert into sys_menu values('1', 'ç³»ç»ç®¡ç', '0', '1', 'system', null, '', '', 1, 0, 'M', '0', '0', '', 'system', 'admin', now(), '', null, 'ç³»ç»ç®¡çç®å½'); |
| | | insert into sys_menu values('2', 'ç³»ç»çæ§', '0', '2', 'monitor', null, '', '', 1, 0, 'M', '0', '0', '', 'monitor', 'admin', now(), '', null, 'ç³»ç»çæ§ç®å½'); |
| | | insert into sys_menu values('3', 'ç³»ç»å·¥å
·', '0', '3', 'tool', null, '', '', 1, 0, 'M', '0', '0', '', 'tool', 'admin', now(), '', null, 'ç³»ç»å·¥å
·ç®å½'); |
| | | insert into sys_menu values('4', 'è¥ä¾å®ç½', '0', '4', 'http://ruoyi.vip', null, '', '', 0, 0, 'M', '0', '0', '', 'guide', 'admin', now(), '', null, 'è¥ä¾å®ç½å°å'); |
| | | -- äºçº§èå |
| | | insert into sys_menu values('100', 'ç¨æ·ç®¡ç', '1', '1', 'user', 'system/user/index', '', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', sysdate(), '', null, 'ç¨æ·ç®¡çèå'); |
| | | insert into sys_menu values('101', 'è§è²ç®¡ç', '1', '2', 'role', 'system/role/index', '', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', sysdate(), '', null, 'è§è²ç®¡çèå'); |
| | | insert into sys_menu values('102', 'èå管ç', '1', '3', 'menu', 'system/menu/index', '', '', 1, 0, 'C', '0', '0', 'system:menu:list', 'tree-table', 'admin', sysdate(), '', null, 'èå管çèå'); |
| | | insert into sys_menu values('103', 'é¨é¨ç®¡ç', '1', '4', 'dept', 'system/dept/index', '', '', 1, 0, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', sysdate(), '', null, 'é¨é¨ç®¡çèå'); |
| | | insert into sys_menu values('104', 'å²ä½ç®¡ç', '1', '5', 'post', 'system/post/index', '', '', 1, 0, 'C', '0', '0', 'system:post:list', 'post', 'admin', sysdate(), '', null, 'å²ä½ç®¡çèå'); |
| | | insert into sys_menu values('105', 'åå
¸ç®¡ç', '1', '6', 'dict', 'system/dict/index', '', '', 1, 0, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', sysdate(), '', null, 'åå
¸ç®¡çèå'); |
| | | insert into sys_menu values('106', 'åæ°è®¾ç½®', '1', '7', 'config', 'system/config/index', '', '', 1, 0, 'C', '0', '0', 'system:config:list', 'edit', 'admin', sysdate(), '', null, 'åæ°è®¾ç½®èå'); |
| | | insert into sys_menu values('107', 'éç¥å
¬å', '1', '8', 'notice', 'system/notice/index', '', '', 1, 0, 'C', '0', '0', 'system:notice:list', 'message', 'admin', sysdate(), '', null, 'éç¥å
¬åèå'); |
| | | insert into sys_menu values('108', 'æ¥å¿ç®¡ç', '1', '9', 'log', '', '', '', 1, 0, 'M', '0', '0', '', 'log', 'admin', sysdate(), '', null, 'æ¥å¿ç®¡çèå'); |
| | | insert into sys_menu values('109', 'å¨çº¿ç¨æ·', '2', '1', 'online', 'monitor/online/index', '', '', 1, 0, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', sysdate(), '', null, 'å¨çº¿ç¨æ·èå'); |
| | | insert into sys_menu values('110', '宿¶ä»»å¡', '2', '2', 'job', 'monitor/job/index', '', '', 1, 0, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', sysdate(), '', null, '宿¶ä»»å¡èå'); |
| | | insert into sys_menu values('111', 'æ°æ®çæ§', '2', '3', 'druid', 'monitor/druid/index', '', '', 1, 0, 'C', '0', '0', 'monitor:druid:list', 'druid', 'admin', sysdate(), '', null, 'æ°æ®çæ§èå'); |
| | | insert into sys_menu values('112', 'æå¡çæ§', '2', '4', 'server', 'monitor/server/index', '', '', 1, 0, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', sysdate(), '', null, 'æå¡çæ§èå'); |
| | | insert into sys_menu values('113', 'ç¼åçæ§', '2', '5', 'cache', 'monitor/cache/index', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis', 'admin', sysdate(), '', null, 'ç¼åçæ§èå'); |
| | | insert into sys_menu values('114', 'ç¼åå表', '2', '6', 'cacheList', 'monitor/cache/list', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis-list', 'admin', sysdate(), '', null, 'ç¼åå表èå'); |
| | | insert into sys_menu values('115', '表åæå»º', '3', '1', 'build', 'tool/build/index', '', '', 1, 0, 'C', '0', '0', 'tool:build:list', 'build', 'admin', sysdate(), '', null, '表åæå»ºèå'); |
| | | insert into sys_menu values('116', '代ç çæ', '3', '2', 'gen', 'tool/gen/index', '', '', 1, 0, 'C', '0', '0', 'tool:gen:list', 'code', 'admin', sysdate(), '', null, '代ç çæèå'); |
| | | insert into sys_menu values('117', 'ç³»ç»æ¥å£', '3', '3', 'swagger', 'tool/swagger/index', '', '', 1, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', sysdate(), '', null, 'ç³»ç»æ¥å£èå'); |
| | | insert into sys_menu values('100', 'ç¨æ·ç®¡ç', '1', '1', 'user', 'system/user/index', '', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', now(), '', null, 'ç¨æ·ç®¡çèå'); |
| | | insert into sys_menu values('101', 'è§è²ç®¡ç', '1', '2', 'role', 'system/role/index', '', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', now(), '', null, 'è§è²ç®¡çèå'); |
| | | insert into sys_menu values('102', 'èå管ç', '1', '3', 'menu', 'system/menu/index', '', '', 1, 0, 'C', '0', '0', 'system:menu:list', 'tree-table', 'admin', now(), '', null, 'èå管çèå'); |
| | | insert into sys_menu values('103', 'é¨é¨ç®¡ç', '1', '4', 'dept', 'system/dept/index', '', '', 1, 0, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', now(), '', null, 'é¨é¨ç®¡çèå'); |
| | | insert into sys_menu values('104', 'å²ä½ç®¡ç', '1', '5', 'post', 'system/post/index', '', '', 1, 0, 'C', '0', '0', 'system:post:list', 'post', 'admin', now(), '', null, 'å²ä½ç®¡çèå'); |
| | | insert into sys_menu values('105', 'åå
¸ç®¡ç', '1', '6', 'dict', 'system/dict/index', '', '', 1, 0, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', now(), '', null, 'åå
¸ç®¡çèå'); |
| | | insert into sys_menu values('106', 'åæ°è®¾ç½®', '1', '7', 'config', 'system/config/index', '', '', 1, 0, 'C', '0', '0', 'system:config:list', 'edit', 'admin', now(), '', null, 'åæ°è®¾ç½®èå'); |
| | | insert into sys_menu values('107', 'éç¥å
¬å', '1', '8', 'notice', 'system/notice/index', '', '', 1, 0, 'C', '0', '0', 'system:notice:list', 'message', 'admin', now(), '', null, 'éç¥å
¬åèå'); |
| | | insert into sys_menu values('108', 'æ¥å¿ç®¡ç', '1', '9', 'log', '', '', '', 1, 0, 'M', '0', '0', '', 'log', 'admin', now(), '', null, 'æ¥å¿ç®¡çèå'); |
| | | insert into sys_menu values('109', 'å¨çº¿ç¨æ·', '2', '1', 'online', 'monitor/online/index', '', '', 1, 0, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', now(), '', null, 'å¨çº¿ç¨æ·èå'); |
| | | insert into sys_menu values('110', '宿¶ä»»å¡', '2', '2', 'job', 'monitor/job/index', '', '', 1, 0, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', now(), '', null, '宿¶ä»»å¡èå'); |
| | | insert into sys_menu values('111', 'æ°æ®çæ§', '2', '3', 'druid', 'monitor/druid/index', '', '', 1, 0, 'C', '0', '0', 'monitor:druid:list', 'druid', 'admin', now(), '', null, 'æ°æ®çæ§èå'); |
| | | insert into sys_menu values('112', 'æå¡çæ§', '2', '4', 'server', 'monitor/server/index', '', '', 1, 0, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', now(), '', null, 'æå¡çæ§èå'); |
| | | insert into sys_menu values('113', 'ç¼åçæ§', '2', '5', 'cache', 'monitor/cache/index', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis', 'admin', now(), '', null, 'ç¼åçæ§èå'); |
| | | insert into sys_menu values('114', 'ç¼åå表', '2', '6', 'cacheList', 'monitor/cache/list', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis-list', 'admin', now(), '', null, 'ç¼åå表èå'); |
| | | insert into sys_menu values('115', '表åæå»º', '3', '1', 'build', 'tool/build/index', '', '', 1, 0, 'C', '0', '0', 'tool:build:list', 'build', 'admin', now(), '', null, '表åæå»ºèå'); |
| | | insert into sys_menu values('116', '代ç çæ', '3', '2', 'gen', 'tool/gen/index', '', '', 1, 0, 'C', '0', '0', 'tool:gen:list', 'code', 'admin', now(), '', null, '代ç çæèå'); |
| | | insert into sys_menu values('117', 'ç³»ç»æ¥å£', '3', '3', 'swagger', 'tool/swagger/index', '', '', 1, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', now(), '', null, 'ç³»ç»æ¥å£èå'); |
| | | -- ä¸çº§èå |
| | | insert into sys_menu values('500', 'æä½æ¥å¿', '108', '1', 'operlog', 'monitor/operlog/index', '', '', 1, 0, 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', sysdate(), '', null, 'æä½æ¥å¿èå'); |
| | | insert into sys_menu values('501', 'ç»å½æ¥å¿', '108', '2', 'logininfor', 'monitor/logininfor/index', '', '', 1, 0, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', sysdate(), '', null, 'ç»å½æ¥å¿èå'); |
| | | insert into sys_menu values('500', 'æä½æ¥å¿', '108', '1', 'operlog', 'monitor/operlog/index', '', '', 1, 0, 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', now(), '', null, 'æä½æ¥å¿èå'); |
| | | insert into sys_menu values('501', 'ç»å½æ¥å¿', '108', '2', 'logininfor', 'monitor/logininfor/index', '', '', 1, 0, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', now(), '', null, 'ç»å½æ¥å¿èå'); |
| | | -- ç¨æ·ç®¡çæé® |
| | | insert into sys_menu values('1000', 'ç¨æ·æ¥è¯¢', '100', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1001', 'ç¨æ·æ°å¢', '100', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1002', 'ç¨æ·ä¿®æ¹', '100', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1003', 'ç¨æ·å é¤', '100', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1004', 'ç¨æ·å¯¼åº', '100', '5', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1005', 'ç¨æ·å¯¼å
¥', '100', '6', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1006', 'éç½®å¯ç ', '100', '7', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1000', 'ç¨æ·æ¥è¯¢', '100', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1001', 'ç¨æ·æ°å¢', '100', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1002', 'ç¨æ·ä¿®æ¹', '100', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1003', 'ç¨æ·å é¤', '100', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1004', 'ç¨æ·å¯¼åº', '100', '5', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1005', 'ç¨æ·å¯¼å
¥', '100', '6', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1006', 'éç½®å¯ç ', '100', '7', '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', now(), '', null, ''); |
| | | -- è§è²ç®¡çæé® |
| | | insert into sys_menu values('1007', 'è§è²æ¥è¯¢', '101', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1008', 'è§è²æ°å¢', '101', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1009', 'è§è²ä¿®æ¹', '101', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1010', 'è§è²å é¤', '101', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1011', 'è§è²å¯¼åº', '101', '5', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1007', 'è§è²æ¥è¯¢', '101', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1008', 'è§è²æ°å¢', '101', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1009', 'è§è²ä¿®æ¹', '101', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1010', 'è§è²å é¤', '101', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1011', 'è§è²å¯¼åº', '101', '5', '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', now(), '', null, ''); |
| | | -- èå管çæé® |
| | | insert into sys_menu values('1012', 'èåæ¥è¯¢', '102', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1013', 'èåæ°å¢', '102', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1014', 'èåä¿®æ¹', '102', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1015', 'èåå é¤', '102', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1012', 'èåæ¥è¯¢', '102', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1013', 'èåæ°å¢', '102', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1014', 'èåä¿®æ¹', '102', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1015', 'èåå é¤', '102', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', now(), '', null, ''); |
| | | -- é¨é¨ç®¡çæé® |
| | | insert into sys_menu values('1016', 'é¨é¨æ¥è¯¢', '103', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1017', 'é¨é¨æ°å¢', '103', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1018', 'é¨é¨ä¿®æ¹', '103', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1019', 'é¨é¨å é¤', '103', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1016', 'é¨é¨æ¥è¯¢', '103', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1017', 'é¨é¨æ°å¢', '103', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1018', 'é¨é¨ä¿®æ¹', '103', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1019', 'é¨é¨å é¤', '103', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', now(), '', null, ''); |
| | | -- å²ä½ç®¡çæé® |
| | | insert into sys_menu values('1020', 'å²ä½æ¥è¯¢', '104', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1021', 'å²ä½æ°å¢', '104', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1022', 'å²ä½ä¿®æ¹', '104', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1023', 'å²ä½å é¤', '104', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1024', 'å²ä½å¯¼åº', '104', '5', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1020', 'å²ä½æ¥è¯¢', '104', '1', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1021', 'å²ä½æ°å¢', '104', '2', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1022', 'å²ä½ä¿®æ¹', '104', '3', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1023', 'å²ä½å é¤', '104', '4', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1024', 'å²ä½å¯¼åº', '104', '5', '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', now(), '', null, ''); |
| | | -- åå
¸ç®¡çæé® |
| | | insert into sys_menu values('1025', 'åå
¸æ¥è¯¢', '105', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1026', 'åå
¸æ°å¢', '105', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1027', 'åå
¸ä¿®æ¹', '105', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1028', 'åå
¸å é¤', '105', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1029', 'åå
¸å¯¼åº', '105', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1025', 'åå
¸æ¥è¯¢', '105', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1026', 'åå
¸æ°å¢', '105', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1027', 'åå
¸ä¿®æ¹', '105', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1028', 'åå
¸å é¤', '105', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1029', 'åå
¸å¯¼åº', '105', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', now(), '', null, ''); |
| | | -- åæ°è®¾ç½®æé® |
| | | insert into sys_menu values('1030', 'åæ°æ¥è¯¢', '106', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1031', 'åæ°æ°å¢', '106', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1032', 'åæ°ä¿®æ¹', '106', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1033', 'åæ°å é¤', '106', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1034', '忰坼åº', '106', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1030', 'åæ°æ¥è¯¢', '106', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1031', 'åæ°æ°å¢', '106', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1032', 'åæ°ä¿®æ¹', '106', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1033', 'åæ°å é¤', '106', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1034', '忰坼åº', '106', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', now(), '', null, ''); |
| | | -- éç¥å
¬åæé® |
| | | insert into sys_menu values('1035', 'å
¬åæ¥è¯¢', '107', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1036', 'å
¬åæ°å¢', '107', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1037', 'å
¬åä¿®æ¹', '107', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1038', 'å
¬åå é¤', '107', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1035', 'å
¬åæ¥è¯¢', '107', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1036', 'å
¬åæ°å¢', '107', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1037', 'å
¬åä¿®æ¹', '107', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1038', 'å
¬åå é¤', '107', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', now(), '', null, ''); |
| | | -- æä½æ¥å¿æé® |
| | | insert into sys_menu values('1039', 'æä½æ¥è¯¢', '500', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1040', 'æä½å é¤', '500', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1041', 'æ¥å¿å¯¼åº', '500', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1039', 'æä½æ¥è¯¢', '500', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1040', 'æä½å é¤', '500', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1041', 'æ¥å¿å¯¼åº', '500', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', now(), '', null, ''); |
| | | -- ç»å½æ¥å¿æé® |
| | | insert into sys_menu values('1042', 'ç»å½æ¥è¯¢', '501', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1043', 'ç»å½å é¤', '501', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1044', 'æ¥å¿å¯¼åº', '501', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1045', 'è´¦æ·è§£é', '501', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:unlock', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1042', 'ç»å½æ¥è¯¢', '501', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1043', 'ç»å½å é¤', '501', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1044', 'æ¥å¿å¯¼åº', '501', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1045', 'è´¦æ·è§£é', '501', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:unlock', '#', 'admin', now(), '', null, ''); |
| | | -- å¨çº¿ç¨æ·æé® |
| | | insert into sys_menu values('1046', 'å¨çº¿æ¥è¯¢', '109', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1047', 'æ¹é强é', '109', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1048', 'åæ¡å¼ºé', '109', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1046', 'å¨çº¿æ¥è¯¢', '109', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1047', 'æ¹é强é', '109', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1048', 'åæ¡å¼ºé', '109', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', now(), '', null, ''); |
| | | -- 宿¶ä»»å¡æé® |
| | | insert into sys_menu values('1049', '任塿¥è¯¢', '110', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1050', '任塿°å¢', '110', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1051', 'ä»»å¡ä¿®æ¹', '110', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1052', 'ä»»å¡å é¤', '110', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1053', 'ç¶æä¿®æ¹', '110', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1054', 'ä»»å¡å¯¼åº', '110', '6', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1049', '任塿¥è¯¢', '110', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1050', '任塿°å¢', '110', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1051', 'ä»»å¡ä¿®æ¹', '110', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1052', 'ä»»å¡å é¤', '110', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1053', 'ç¶æä¿®æ¹', '110', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1054', 'ä»»å¡å¯¼åº', '110', '6', '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', now(), '', null, ''); |
| | | -- 代ç çææé® |
| | | insert into sys_menu values('1055', 'çææ¥è¯¢', '116', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:query', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1056', 'çæä¿®æ¹', '116', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1057', 'çæå é¤', '116', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1058', '导å
¥ä»£ç ', '116', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:import', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1059', 'é¢è§ä»£ç ', '116', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1060', 'çæä»£ç ', '116', '6', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:code', '#', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_menu values('1055', 'çææ¥è¯¢', '116', '1', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:query', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1056', 'çæä¿®æ¹', '116', '2', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1057', 'çæå é¤', '116', '3', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1058', '导å
¥ä»£ç ', '116', '4', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:import', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1059', 'é¢è§ä»£ç ', '116', '5', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', now(), '', null, ''); |
| | | insert into sys_menu values('1060', 'çæä»£ç ', '116', '6', '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:code', '#', 'admin', now(), '', null, ''); |
| | | |
| | | |
| | | -- ---------------------------- |
| | |
| | | unique (dict_type) |
| | | ) engine=innodb auto_increment=100 comment = 'åå
¸ç±»å表'; |
| | | |
| | | insert into sys_dict_type values(1, 'ç¨æ·æ§å«', 'sys_user_sex', '0', 'admin', sysdate(), '', null, 'ç¨æ·æ§å«å表'); |
| | | insert into sys_dict_type values(2, 'èåç¶æ', 'sys_show_hide', '0', 'admin', sysdate(), '', null, 'èåç¶æå表'); |
| | | insert into sys_dict_type values(3, 'ç³»ç»å¼å
³', 'sys_normal_disable', '0', 'admin', sysdate(), '', null, 'ç³»ç»å¼å
³å表'); |
| | | insert into sys_dict_type values(4, 'ä»»å¡ç¶æ', 'sys_job_status', '0', 'admin', sysdate(), '', null, 'ä»»å¡ç¶æå表'); |
| | | insert into sys_dict_type values(5, 'ä»»å¡åç»', 'sys_job_group', '0', 'admin', sysdate(), '', null, 'ä»»å¡åç»å表'); |
| | | insert into sys_dict_type values(6, 'ç³»ç»æ¯å¦', 'sys_yes_no', '0', 'admin', sysdate(), '', null, 'ç³»ç»æ¯å¦å表'); |
| | | insert into sys_dict_type values(7, 'éç¥ç±»å', 'sys_notice_type', '0', 'admin', sysdate(), '', null, 'éç¥ç±»åå表'); |
| | | insert into sys_dict_type values(8, 'éç¥ç¶æ', 'sys_notice_status', '0', 'admin', sysdate(), '', null, 'éç¥ç¶æå表'); |
| | | insert into sys_dict_type values(9, 'æä½ç±»å', 'sys_oper_type', '0', 'admin', sysdate(), '', null, 'æä½ç±»åå表'); |
| | | insert into sys_dict_type values(10, 'ç³»ç»ç¶æ', 'sys_common_status', '0', 'admin', sysdate(), '', null, 'ç»å½ç¶æå表'); |
| | | insert into sys_dict_type values(1, 'ç¨æ·æ§å«', 'sys_user_sex', '0', 'admin', now(), '', null, 'ç¨æ·æ§å«å表'); |
| | | insert into sys_dict_type values(2, 'èåç¶æ', 'sys_show_hide', '0', 'admin', now(), '', null, 'èåç¶æå表'); |
| | | insert into sys_dict_type values(3, 'ç³»ç»å¼å
³', 'sys_normal_disable', '0', 'admin', now(), '', null, 'ç³»ç»å¼å
³å表'); |
| | | insert into sys_dict_type values(4, 'ä»»å¡ç¶æ', 'sys_job_status', '0', 'admin', now(), '', null, 'ä»»å¡ç¶æå表'); |
| | | insert into sys_dict_type values(5, 'ä»»å¡åç»', 'sys_job_group', '0', 'admin', now(), '', null, 'ä»»å¡åç»å表'); |
| | | insert into sys_dict_type values(6, 'ç³»ç»æ¯å¦', 'sys_yes_no', '0', 'admin', now(), '', null, 'ç³»ç»æ¯å¦å表'); |
| | | insert into sys_dict_type values(7, 'éç¥ç±»å', 'sys_notice_type', '0', 'admin', now(), '', null, 'éç¥ç±»åå表'); |
| | | insert into sys_dict_type values(8, 'éç¥ç¶æ', 'sys_notice_status', '0', 'admin', now(), '', null, 'éç¥ç¶æå表'); |
| | | insert into sys_dict_type values(9, 'æä½ç±»å', 'sys_oper_type', '0', 'admin', now(), '', null, 'æä½ç±»åå表'); |
| | | insert into sys_dict_type values(10, 'ç³»ç»ç¶æ', 'sys_common_status', '0', 'admin', now(), '', null, 'ç»å½ç¶æå表'); |
| | | |
| | | |
| | | -- ---------------------------- |
| | |
| | | primary key (dict_code) |
| | | ) engine=innodb auto_increment=100 comment = 'åå
¸æ°æ®è¡¨'; |
| | | |
| | | insert into sys_dict_data values(1, 1, 'ç·', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', sysdate(), '', null, 'æ§å«ç·'); |
| | | insert into sys_dict_data values(2, 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', sysdate(), '', null, 'æ§å«å¥³'); |
| | | insert into sys_dict_data values(3, 3, 'æªç¥', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', sysdate(), '', null, 'æ§å«æªç¥'); |
| | | insert into sys_dict_data values(4, 1, 'æ¾ç¤º', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, 'æ¾ç¤ºèå'); |
| | | insert into sys_dict_data values(5, 2, 'éè', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, 'éèèå'); |
| | | insert into sys_dict_data values(6, 1, 'æ£å¸¸', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, 'æ£å¸¸ç¶æ'); |
| | | insert into sys_dict_data values(7, 2, 'åç¨', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, 'åç¨ç¶æ'); |
| | | insert into sys_dict_data values(8, 1, 'æ£å¸¸', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, 'æ£å¸¸ç¶æ'); |
| | | insert into sys_dict_data values(9, 2, 'æå', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, 'åç¨ç¶æ'); |
| | | insert into sys_dict_data values(10, 1, 'é»è®¤', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', sysdate(), '', null, 'é»è®¤åç»'); |
| | | insert into sys_dict_data values(11, 2, 'ç³»ç»', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', sysdate(), '', null, 'ç³»ç»åç»'); |
| | | insert into sys_dict_data values(12, 1, 'æ¯', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, 'ç³»ç»é»è®¤æ¯'); |
| | | insert into sys_dict_data values(13, 2, 'å¦', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, 'ç³»ç»é»è®¤å¦'); |
| | | insert into sys_dict_data values(14, 1, 'éç¥', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', sysdate(), '', null, 'éç¥'); |
| | | insert into sys_dict_data values(15, 2, 'å
¬å', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', sysdate(), '', null, 'å
Œ'); |
| | | insert into sys_dict_data values(16, 1, 'æ£å¸¸', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', sysdate(), '', null, 'æ£å¸¸ç¶æ'); |
| | | insert into sys_dict_data values(17, 2, 'å
³é', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, 'å
³éç¶æ'); |
| | | insert into sys_dict_data values(18, 99, 'å
¶ä»', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', sysdate(), '', null, 'å
¶ä»æä½'); |
| | | insert into sys_dict_data values(19, 1, 'æ°å¢', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', sysdate(), '', null, 'æ°å¢æä½'); |
| | | insert into sys_dict_data values(20, 2, 'ä¿®æ¹', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', sysdate(), '', null, 'ä¿®æ¹æä½'); |
| | | insert into sys_dict_data values(21, 3, 'å é¤', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, 'å 餿ä½'); |
| | | insert into sys_dict_data values(22, 4, 'ææ', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', sysdate(), '', null, 'æææä½'); |
| | | insert into sys_dict_data values(23, 5, '导åº', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', sysdate(), '', null, 'å¯¼åºæä½'); |
| | | insert into sys_dict_data values(24, 6, '导å
¥', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', sysdate(), '', null, '导å
¥æä½'); |
| | | insert into sys_dict_data values(25, 7, '强é', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, '强éæä½'); |
| | | insert into sys_dict_data values(26, 8, 'çæä»£ç ', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', sysdate(), '', null, 'çææä½'); |
| | | insert into sys_dict_data values(27, 9, 'æ¸
ç©ºæ°æ®', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, 'æ¸
空æä½'); |
| | | insert into sys_dict_data values(28, 1, 'æå', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', sysdate(), '', null, 'æ£å¸¸ç¶æ'); |
| | | insert into sys_dict_data values(29, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', sysdate(), '', null, 'åç¨ç¶æ'); |
| | | insert into sys_dict_data values(1, 1, 'ç·', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', now(), '', null, 'æ§å«ç·'); |
| | | insert into sys_dict_data values(2, 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', now(), '', null, 'æ§å«å¥³'); |
| | | insert into sys_dict_data values(3, 3, 'æªç¥', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', now(), '', null, 'æ§å«æªç¥'); |
| | | insert into sys_dict_data values(4, 1, 'æ¾ç¤º', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', now(), '', null, 'æ¾ç¤ºèå'); |
| | | insert into sys_dict_data values(5, 2, 'éè', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', now(), '', null, 'éèèå'); |
| | | insert into sys_dict_data values(6, 1, 'æ£å¸¸', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', now(), '', null, 'æ£å¸¸ç¶æ'); |
| | | insert into sys_dict_data values(7, 2, 'åç¨', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', now(), '', null, 'åç¨ç¶æ'); |
| | | insert into sys_dict_data values(8, 1, 'æ£å¸¸', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', now(), '', null, 'æ£å¸¸ç¶æ'); |
| | | insert into sys_dict_data values(9, 2, 'æå', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', now(), '', null, 'åç¨ç¶æ'); |
| | | insert into sys_dict_data values(10, 1, 'é»è®¤', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', now(), '', null, 'é»è®¤åç»'); |
| | | insert into sys_dict_data values(11, 2, 'ç³»ç»', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', now(), '', null, 'ç³»ç»åç»'); |
| | | insert into sys_dict_data values(12, 1, 'æ¯', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', now(), '', null, 'ç³»ç»é»è®¤æ¯'); |
| | | insert into sys_dict_data values(13, 2, 'å¦', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', now(), '', null, 'ç³»ç»é»è®¤å¦'); |
| | | insert into sys_dict_data values(14, 1, 'éç¥', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', now(), '', null, 'éç¥'); |
| | | insert into sys_dict_data values(15, 2, 'å
¬å', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', now(), '', null, 'å
Œ'); |
| | | insert into sys_dict_data values(16, 1, 'æ£å¸¸', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', now(), '', null, 'æ£å¸¸ç¶æ'); |
| | | insert into sys_dict_data values(17, 2, 'å
³é', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', now(), '', null, 'å
³éç¶æ'); |
| | | insert into sys_dict_data values(18, 99, 'å
¶ä»', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', now(), '', null, 'å
¶ä»æä½'); |
| | | insert into sys_dict_data values(19, 1, 'æ°å¢', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', now(), '', null, 'æ°å¢æä½'); |
| | | insert into sys_dict_data values(20, 2, 'ä¿®æ¹', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', now(), '', null, 'ä¿®æ¹æä½'); |
| | | insert into sys_dict_data values(21, 3, 'å é¤', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', now(), '', null, 'å 餿ä½'); |
| | | insert into sys_dict_data values(22, 4, 'ææ', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', now(), '', null, 'æææä½'); |
| | | insert into sys_dict_data values(23, 5, '导åº', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', now(), '', null, 'å¯¼åºæä½'); |
| | | insert into sys_dict_data values(24, 6, '导å
¥', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', now(), '', null, '导å
¥æä½'); |
| | | insert into sys_dict_data values(25, 7, '强é', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', now(), '', null, '强éæä½'); |
| | | insert into sys_dict_data values(26, 8, 'çæä»£ç ', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', now(), '', null, 'çææä½'); |
| | | insert into sys_dict_data values(27, 9, 'æ¸
ç©ºæ°æ®', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', now(), '', null, 'æ¸
空æä½'); |
| | | insert into sys_dict_data values(28, 1, 'æå', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', now(), '', null, 'æ£å¸¸ç¶æ'); |
| | | insert into sys_dict_data values(29, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', now(), '', null, 'åç¨ç¶æ'); |
| | | |
| | | |
| | | -- ---------------------------- |
| | |
| | | primary key (config_id) |
| | | ) engine=innodb auto_increment=100 comment = 'åæ°é
置表'; |
| | | |
| | | insert into sys_config values(1, 'ä¸»æ¡æ¶é¡µ-é»è®¤ç®è¤æ ·å¼åç§°', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', sysdate(), '', null, 'èè² skin-blueãç»¿è² skin-greenãç´«è² skin-purpleãçº¢è² skin-redãé»è² skin-yellow' ); |
| | | insert into sys_config values(2, 'ç¨æ·ç®¡ç-è´¦å·åå§å¯ç ', 'sys.user.initPassword', '123456', 'Y', 'admin', sysdate(), '', null, 'åå§åå¯ç 123456' ); |
| | | insert into sys_config values(3, 'ä¸»æ¡æ¶é¡µ-ä¾§è¾¹æ 主é¢', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', sysdate(), '', null, 'æ·±è²ä¸»é¢theme-darkï¼æµ
è²ä¸»é¢theme-light' ); |
| | | insert into sys_config values(4, 'è´¦å·èªå©-éªè¯ç å¼å
³', 'sys.account.captchaEnabled', 'true', 'Y', 'admin', sysdate(), '', null, 'æ¯å¦å¼å¯éªè¯ç åè½ï¼trueå¼å¯ï¼falseå
³éï¼'); |
| | | insert into sys_config values(5, 'è´¦å·èªå©-æ¯å¦å¼å¯ç¨æ·æ³¨ååè½', 'sys.account.registerUser', 'false', 'Y', 'admin', sysdate(), '', null, 'æ¯å¦å¼å¯æ³¨åç¨æ·åè½ï¼trueå¼å¯ï¼falseå
³éï¼'); |
| | | insert into sys_config values(6, 'ç¨æ·ç»å½-é»ååå表', 'sys.login.blackIPList', '', 'Y', 'admin', sysdate(), '', null, '设置ç»å½IPé»ååéå¶ï¼å¤ä¸ªå¹é
项以;åéï¼æ¯æå¹é
ï¼*éé
ãç½æ®µï¼'); |
| | | insert into sys_config values(1, 'ä¸»æ¡æ¶é¡µ-é»è®¤ç®è¤æ ·å¼åç§°', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', now(), '', null, 'èè² skin-blueãç»¿è² skin-greenãç´«è² skin-purpleãçº¢è² skin-redãé»è² skin-yellow' ); |
| | | insert into sys_config values(2, 'ç¨æ·ç®¡ç-è´¦å·åå§å¯ç ', 'sys.user.initPassword', '123456', 'Y', 'admin', now(), '', null, 'åå§åå¯ç 123456' ); |
| | | insert into sys_config values(3, 'ä¸»æ¡æ¶é¡µ-ä¾§è¾¹æ 主é¢', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', now(), '', null, 'æ·±è²ä¸»é¢theme-darkï¼æµ
è²ä¸»é¢theme-light' ); |
| | | insert into sys_config values(4, 'è´¦å·èªå©-éªè¯ç å¼å
³', 'sys.account.captchaEnabled', 'true', 'Y', 'admin', now(), '', null, 'æ¯å¦å¼å¯éªè¯ç åè½ï¼trueå¼å¯ï¼falseå
³éï¼'); |
| | | insert into sys_config values(5, 'è´¦å·èªå©-æ¯å¦å¼å¯ç¨æ·æ³¨ååè½', 'sys.account.registerUser', 'false', 'Y', 'admin', now(), '', null, 'æ¯å¦å¼å¯æ³¨åç¨æ·åè½ï¼trueå¼å¯ï¼falseå
³éï¼'); |
| | | insert into sys_config values(6, 'ç¨æ·ç»å½-é»ååå表', 'sys.login.blackIPList', '', 'Y', 'admin', now(), '', null, '设置ç»å½IPé»ååéå¶ï¼å¤ä¸ªå¹é
项以;åéï¼æ¯æå¹é
ï¼*éé
ãç½æ®µï¼'); |
| | | |
| | | |
| | | -- ---------------------------- |
| | |
| | | primary key (job_id, job_name, job_group) |
| | | ) engine=innodb auto_increment=100 comment = '宿¶ä»»å¡è°åº¦è¡¨'; |
| | | |
| | | insert into sys_job values(1, 'ç³»ç»é»è®¤ï¼æ åï¼', 'DEFAULT', 'ryTask.ryNoParams', '0/10 * * * * ?', '3', '1', '1', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_job values(2, 'ç³»ç»é»è®¤ï¼æåï¼', 'DEFAULT', 'ryTask.ryParams(\'ry\')', '0/15 * * * * ?', '3', '1', '1', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_job values(3, 'ç³»ç»é»è®¤ï¼å¤åï¼', 'DEFAULT', 'ryTask.ryMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '1', '1', 'admin', sysdate(), '', null, ''); |
| | | insert into sys_job values(1, 'ç³»ç»é»è®¤ï¼æ åï¼', 'DEFAULT', 'ryTask.ryNoParams', '0/10 * * * * ?', '3', '1', '1', 'admin', now(), '', null, ''); |
| | | insert into sys_job values(2, 'ç³»ç»é»è®¤ï¼æåï¼', 'DEFAULT', 'ryTask.ryParams(\'ry\')', '0/15 * * * * ?', '3', '1', '1', 'admin', now(), '', null, ''); |
| | | insert into sys_job values(3, 'ç³»ç»é»è®¤ï¼å¤åï¼', 'DEFAULT', 'ryTask.ryMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '1', '1', 'admin', now(), '', null, ''); |
| | | |
| | | |
| | | -- ---------------------------- |
| | |
| | | -- ---------------------------- |
| | | -- åå§å-å
¬åä¿¡æ¯è¡¨æ°æ® |
| | | -- ---------------------------- |
| | | insert into sys_notice values('1', '温馨æéï¼2018-07-01 è¥ä¾æ°çæ¬åå¸å¦', '2', 'æ°çæ¬å
容', '0', 'admin', sysdate(), '', null, '管çå'); |
| | | insert into sys_notice values('2', 'ç»´æ¤éç¥ï¼2018-07-01 è¥ä¾ç³»ç»åæ¨ç»´æ¤', '1', 'ç»´æ¤å
容', '0', 'admin', sysdate(), '', null, '管çå'); |
| | | insert into sys_notice values('1', '温馨æéï¼2018-07-01 è¥ä¾æ°çæ¬åå¸å¦', '2', 'æ°çæ¬å
容', '0', 'admin', now(), '', null, '管çå'); |
| | | insert into sys_notice values('2', 'ç»´æ¤éç¥ï¼2018-07-01 è¥ä¾ç³»ç»åæ¨ç»´æ¤', '1', 'ç»´æ¤å
容', '0', 'admin', now(), '', null, '管çå'); |
| | | |
| | | |
| | | -- ---------------------------- |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package ${package.Controller}; |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import lombok.AllArgsConstructor; |
| | | <#if restControllerStyle> |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | <#else> |
| | | import org.springframework.stereotype.Controller; |
| | | </#if> |
| | | <#if superControllerClassPackage??> |
| | | import ${superControllerClassPackage}; |
| | | </#if> |
| | | |
| | | /** |
| | | * <p> |
| | | * ${table.comment!} å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author ${author} |
| | | * @since ${date} |
| | | */ |
| | | |
| | | <#if restControllerStyle> |
| | | @RestController |
| | | <#else> |
| | | @Controller |
| | | </#if> |
| | | @AllArgsConstructor |
| | | @RequestMapping("<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>") |
| | | <#if kotlin> |
| | | class ${table.controllerName}<#if superControllerClass??> : ${superControllerClass}()</#if> |
| | | <#else> |
| | | <#if superControllerClass??> |
| | | public class ${table.controllerName} extends ${superControllerClass} { |
| | | <#else> |
| | | public class ${table.controllerName} { |
| | | </#if> |
| | | |
| | | } |
| | | </#if> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package ${package.Entity}; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import lombok.Data; |
| | | <#if superEntityClass?? && superEntityClass != ""> |
| | | import ${superEntityClass}; |
| | | </#if> |
| | | <#list table.fields as field> |
| | | <#if field.propertyType == "LocalDateTime"> |
| | | import java.time.LocalDateTime; |
| | | <#break> |
| | | </#if> |
| | | </#list> |
| | | |
| | | /** |
| | | * ${table.comment!} å®ä½ç±» |
| | | * |
| | | * @author ${author!"admin"} |
| | | * @date ${.now?string("yyyy-MM-dd")} |
| | | */ |
| | | @Data |
| | | @TableName("${table.name}") |
| | | public class ${entity} <#if superEntityClass?? && superEntityClass != "">extends ${superEntityClass?substring(superEntityClass?last_index_of(".") + 1)}</#if> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | <#list table.fields as field> |
| | | <#-- ä¿®å¤ï¼æ·»å superEntityColumns å卿§æ£æ¥ --> |
| | | <#if superEntityColumns?? && !superEntityColumns?seq_contains(field.name)> |
| | | /** |
| | | * ${field.comment!} |
| | | */ |
| | | <#if field.keyFlag> |
| | | @TableId(value = "${field.name}", type = IdType.${idType!"AUTO"}) |
| | | <#else> |
| | | @TableField(value = "${field.name}"<#if field.fill?? && field.fill != "">, fill = FieldFill.${field.fill?upper_case}</#if>) |
| | | </#if> |
| | | <#if field.logicDeleteField> |
| | | @TableLogic |
| | | </#if> |
| | | private ${field.propertyType} ${field.propertyName}; |
| | | </#if> |
| | | </#list> |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="${package.Mapper}.${table.mapperName}"> |
| | | |
| | | <#if enableCache> |
| | | <!-- å¼å¯äºçº§ç¼å --> |
| | | <cache type="${cacheClassName}"/> |
| | | |
| | | </#if> |
| | | <#if baseResultMap> |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="${package.Entity}.${entity}"> |
| | | <#list table.fields as field> |
| | | <#if field.keyFlag><#--çæä¸»é®æå¨ç¬¬ä¸ä½--> |
| | | <id column="${field.name}" property="${field.propertyName}" /> |
| | | </#if> |
| | | </#list> |
| | | <#list table.commonFields as field><#--çæå
Œ
±å段 --> |
| | | <result column="${field.name}" property="${field.propertyName}" /> |
| | | </#list> |
| | | <#list table.fields as field> |
| | | <#if !field.keyFlag><#--çææ®éåæ®µ --> |
| | | <result column="${field.name}" property="${field.propertyName}" /> |
| | | </#if> |
| | | </#list> |
| | | </resultMap> |
| | | |
| | | </#if> |
| | | <#if baseColumnList> |
| | | <!-- éç¨æ¥è¯¢ç»æå --> |
| | | <sql id="Base_Column_List"> |
| | | <#list table.commonFields as field> |
| | | ${field.columnName}, |
| | | </#list> |
| | | ${table.fieldNames} |
| | | </sql> |
| | | |
| | | </#if> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package ${package.ServiceImpl}; |
| | | |
| | | import ${package.Entity}.${entity}; |
| | | import ${package.Mapper}.${table.mapperName}; |
| | | <#if generateService> |
| | | import ${package.Service}.${table.serviceName}; |
| | | </#if> |
| | | import ${superServiceImplClassPackage}; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.RequiredArgsConstructor; |
| | | |
| | | /** |
| | | * <p> |
| | | * ${table.comment!} æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author ${author} |
| | | * @since ${date} |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | <#if kotlin> |
| | | open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>()<#if generateService>, ${table.serviceName}</#if> { |
| | | |
| | | } |
| | | <#else> |
| | | public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}><#if generateService> implements ${table.serviceName}</#if> { |
| | | |
| | | } |
| | | </#if> |
| | |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-web</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.projectlombok</groupId> |
| | | <artifactId>lombok</artifactId> |
| | | </dependency> |
| | | |
| | | |
| | | </dependencies> |
| | |
| | | <artifactId>druid-spring-boot-3-starter</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-generator</artifactId> |
| | | <version>3.5.12</version> |
| | | </dependency> |
| | | |
| | | </dependencies> |
| | | |
| | | </project> |
| | |
| | | return author; |
| | | } |
| | | |
| | | private final boolean useMyBatisPlus = false; // æ¯å¦ä½¿ç¨ MyBatis-Plus |
| | | |
| | | @Value("${author}") |
| | | public void setAuthor(String author) |
| | | { |
| | |
| | | { |
| | | GenConfig.allowOverwrite = allowOverwrite; |
| | | } |
| | | |
| | | public boolean isUseMyBatisPlus() { |
| | | return useMyBatisPlus; |
| | | } |
| | | } |
| | |
| | | <if test="dictType != null and dictType != ''">#{dictType},</if> |
| | | <if test="sort != null">#{sort},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="dictType != null">dict_type = #{dictType},</if> |
| | | <if test="sort != null">sort = #{sort},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where column_id = #{columnId} |
| | | </update> |
| | |
| | | <if test="genPath != null and genPath != ''">#{genPath},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="options != null and options != ''">options = #{options},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where table_id = #{tableId} |
| | | </update> |
| | |
| | | -- èå SQL |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}', '${parentMenuId}', '1', '${businessName}', '${moduleName}/${businessName}/index', 1, 0, 'C', '0', '0', '${permissionPrefix}:list', '#', 'admin', sysdate(), '', null, '${functionName}èå'); |
| | | values('${functionName}', '${parentMenuId}', '1', '${businessName}', '${moduleName}/${businessName}/index', 1, 0, 'C', '0', '0', '${permissionPrefix}:list', '#', 'admin', now(), '', null, '${functionName}èå'); |
| | | |
| | | -- æé®ç¶èåID |
| | | SELECT @parentId := LAST_INSERT_ID(); |
| | | |
| | | -- æé® SQL |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}æ¥è¯¢', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:query', '#', 'admin', sysdate(), '', null, ''); |
| | | values('${functionName}æ¥è¯¢', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:query', '#', 'admin', now(), '', null, ''); |
| | | |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}æ°å¢', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:add', '#', 'admin', sysdate(), '', null, ''); |
| | | values('${functionName}æ°å¢', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:add', '#', 'admin', now(), '', null, ''); |
| | | |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}ä¿®æ¹', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:edit', '#', 'admin', sysdate(), '', null, ''); |
| | | values('${functionName}ä¿®æ¹', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:edit', '#', 'admin', now(), '', null, ''); |
| | | |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}å é¤', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:remove', '#', 'admin', sysdate(), '', null, ''); |
| | | values('${functionName}å é¤', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:remove', '#', 'admin', now(), '', null, ''); |
| | | |
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) |
| | | values('${functionName}导åº', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:export', '#', 'admin', sysdate(), '', null, ''); |
| | | values('${functionName}导åº', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:export', '#', 'admin', now(), '', null, ''); |
| | |
| | | <if test="jobMessage != null and jobMessage != ''">#{jobMessage},</if> |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="exceptionInfo != null and exceptionInfo != ''">#{exceptionInfo},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="status !=null">status = #{status},</if> |
| | | <if test="remark != null and remark != ''">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where job_id = #{jobId} |
| | | </update> |
| | |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="configType != null and configType != ''">#{configType},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="configType != null and configType != ''">config_type = #{configType},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where config_id = #{configId} |
| | | </update> |
| | |
| | | <if test="email != null and email != ''">#{email},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="email != null">email = #{email},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where dept_id = #{deptId} |
| | | </update> |
| | |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where dict_code = #{dictCode} |
| | | </update> |
| | |
| | | <if test="status != null">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where dict_id = #{dictId} |
| | | </update> |
| | |
| | | <if test="status != null">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | |
| | | <insert id="insertLogininfor" parameterType="SysLogininfor"> |
| | | insert into sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time) |
| | | values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate()) |
| | | values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, now()) |
| | | </insert> |
| | | |
| | | <select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult"> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectMenuVo"> |
| | | select menu_id, menu_name, parent_id, order_num, path, component, `query`, route_name, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time |
| | | select menu_id, menu_name, parent_id, order_num, path, component, `query`, route_name, is_frame, is_cache, menu_type, visible, status, COALESCE(perms,'') as perms, icon, create_time |
| | | from sys_menu |
| | | </sql> |
| | | |
| | |
| | | </select> |
| | | |
| | | <select id="selectMenuTreeAll" resultMap="SysMenuResult"> |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.route_name, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m."query", m.route_name, m.visible, m.status, COALESCE(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0 |
| | | order by m.parent_id, m.order_num |
| | | </select> |
| | | |
| | | <select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult"> |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.route_name, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m."query", m.route_name, m.visible, m.status, COALESCE(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | left join sys_user_role ur on rm.role_id = ur.role_id |
| | |
| | | </select> |
| | | |
| | | <select id="selectMenuTreeByUserId" parameterType="Long" resultMap="SysMenuResult"> |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.route_name, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m."query", m.route_name, m.visible, m.status, COALESCE(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | left join sys_user_role ur on rm.role_id = ur.role_id |
| | |
| | | <if test="icon !=null and icon != ''">icon = #{icon},</if> |
| | | <if test="remark != null and remark != ''">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where menu_id = #{menuId} |
| | | </update> |
| | |
| | | <if test="icon != null and icon != ''">#{icon},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="status != null and status != ''">#{status}, </if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="noticeContent != null">notice_content = #{noticeContent}, </if> |
| | | <if test="status != null and status != ''">status = #{status}, </if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where notice_id = #{noticeId} |
| | | </update> |
| | |
| | | |
| | | <insert id="insertOperlog" parameterType="SysOperLog"> |
| | | insert into sys_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, cost_time, oper_time) |
| | | values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, sysdate()) |
| | | values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, now()) |
| | | </insert> |
| | | |
| | | <select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult"> |
| | |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where post_id = #{postId} |
| | | </update> |
| | |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where role_id = #{roleId} |
| | | </update> |
| | |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | sysdate() |
| | | now() |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="loginDate != null">login_date = #{loginDate},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | update_time = sysdate() |
| | | update_time = now() |
| | | </set> |
| | | where user_id = #{userId} |
| | | </update> |