mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	调整登陆日志表结构,开始迁移
This commit is contained in:
		| @@ -1,108 +0,0 @@ | ||||
| <?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.3.0</version> | ||||
|     </parent> | ||||
|     <modelVersion>4.0.0</modelVersion> | ||||
|     <packaging>jar</packaging> | ||||
|     <artifactId>ruoyi-admin</artifactId> | ||||
|  | ||||
|     <description> | ||||
|         web服务入口 | ||||
|     </description> | ||||
|  | ||||
|     <dependencies> | ||||
|  | ||||
|         <!-- spring-boot-devtools --> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework.boot</groupId> | ||||
|             <artifactId>spring-boot-devtools</artifactId> | ||||
|             <optional>true</optional> <!-- 表示依赖不会传递 --> | ||||
|         </dependency> | ||||
|  | ||||
|         <!-- swagger2--> | ||||
|         <dependency> | ||||
|             <groupId>io.springfox</groupId> | ||||
|             <artifactId>springfox-swagger2</artifactId> | ||||
|         </dependency> | ||||
|  | ||||
|         <!--防止进入swagger页面报类型转换错误,排除2.9.2中的引用,手动增加1.5.21版本--> | ||||
|         <dependency> | ||||
|             <groupId>io.swagger</groupId> | ||||
|             <artifactId>swagger-annotations</artifactId> | ||||
|             <version>1.5.21</version> | ||||
|         </dependency> | ||||
|  | ||||
|         <dependency> | ||||
|             <groupId>io.swagger</groupId> | ||||
|             <artifactId>swagger-models</artifactId> | ||||
|             <version>1.5.21</version> | ||||
|         </dependency> | ||||
|  | ||||
|         <!-- swagger2-UI--> | ||||
|         <dependency> | ||||
|             <groupId>io.springfox</groupId> | ||||
|             <artifactId>springfox-swagger-ui</artifactId> | ||||
|         </dependency> | ||||
|  | ||||
|          <!-- Mysql驱动包 --> | ||||
|         <dependency> | ||||
|             <groupId>mysql</groupId> | ||||
|             <artifactId>mysql-connector-java</artifactId> | ||||
|         </dependency> | ||||
|  | ||||
|         <!-- 核心模块--> | ||||
|         <dependency> | ||||
|             <groupId>com.ruoyi</groupId> | ||||
|             <artifactId>ruoyi-framework</artifactId> | ||||
|         </dependency> | ||||
|  | ||||
|         <!-- 定时任务--> | ||||
|         <dependency> | ||||
|             <groupId>com.ruoyi</groupId> | ||||
|             <artifactId>ruoyi-quartz</artifactId> | ||||
|         </dependency> | ||||
|  | ||||
|         <!-- 代码生成--> | ||||
|         <dependency> | ||||
|             <groupId>com.ruoyi</groupId> | ||||
|             <artifactId>ruoyi-generator</artifactId> | ||||
|         </dependency> | ||||
|  | ||||
|     </dependencies> | ||||
|  | ||||
|     <build> | ||||
|         <plugins> | ||||
|             <plugin> | ||||
|                 <groupId>org.springframework.boot</groupId> | ||||
|                 <artifactId>spring-boot-maven-plugin</artifactId> | ||||
|                 <version>2.1.1.RELEASE</version> | ||||
|                 <configuration> | ||||
|                     <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 --> | ||||
|                 </configuration> | ||||
|                 <executions> | ||||
|                     <execution> | ||||
|                         <goals> | ||||
|                             <goal>repackage</goal> | ||||
|                         </goals> | ||||
|                     </execution> | ||||
|                 </executions> | ||||
|             </plugin> | ||||
|             <plugin>    | ||||
|                 <groupId>org.apache.maven.plugins</groupId>    | ||||
|                 <artifactId>maven-war-plugin</artifactId>    | ||||
|                 <version>3.1.0</version>    | ||||
|                 <configuration> | ||||
|                     <failOnMissingWebXml>false</failOnMissingWebXml> | ||||
|                     <warName>${project.artifactId}</warName> | ||||
|                 </configuration>    | ||||
|            </plugin>    | ||||
|         </plugins> | ||||
|         <finalName>${project.artifactId}</finalName> | ||||
|     </build> | ||||
|  | ||||
| </project> | ||||
| @@ -19,7 +19,7 @@ import com.ruoyi.system.service.ISysLogininforService; | ||||
|  | ||||
| /** | ||||
|  * 系统访问记录 | ||||
|  *  | ||||
|  * | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| @RestController | ||||
| @@ -48,20 +48,4 @@ public class SysLogininforController extends BaseController | ||||
|         return util.exportExcel(list, "登录日志"); | ||||
|     } | ||||
|  | ||||
|     @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") | ||||
|     @Log(title = "登录日志", businessType = BusinessType.DELETE) | ||||
|     @DeleteMapping("/{infoIds}") | ||||
|     public AjaxResult remove(@PathVariable Long[] infoIds) | ||||
|     { | ||||
|         return toAjax(logininforService.deleteLogininforByIds(infoIds)); | ||||
|     } | ||||
|  | ||||
|     @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") | ||||
|     @Log(title = "登录日志", businessType = BusinessType.CLEAN) | ||||
|     @DeleteMapping("/clean") | ||||
|     public AjaxResult clean() | ||||
|     { | ||||
|         logininforService.cleanLogininfor(); | ||||
|         return AjaxResult.success(); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -1,34 +0,0 @@ | ||||
| package com.ruoyi.web.controller.monitor; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.security.access.prepost.PreAuthorize; | ||||
| import org.springframework.web.bind.annotation.DeleteMapping; | ||||
| import org.springframework.web.bind.annotation.GetMapping; | ||||
| import org.springframework.web.bind.annotation.PathVariable; | ||||
| import org.springframework.web.bind.annotation.RequestMapping; | ||||
| import org.springframework.web.bind.annotation.RestController; | ||||
| import com.ruoyi.common.annotation.Log; | ||||
| import com.ruoyi.common.core.controller.BaseController; | ||||
| import com.ruoyi.common.core.domain.AjaxResult; | ||||
| import com.ruoyi.common.core.page.TableDataInfo; | ||||
| import com.ruoyi.common.enums.BusinessType; | ||||
| import com.ruoyi.common.utils.poi.ExcelUtil; | ||||
| import com.ruoyi.system.domain.SysOperLog; | ||||
| import com.ruoyi.system.service.ISysOperLogService; | ||||
|  | ||||
| /** | ||||
|  * 操作日志记录 | ||||
|  * | ||||
|  * @author ruoyi | ||||
|  */ | ||||
|  | ||||
| public class SysOperlogController extends BaseController { | ||||
|  | ||||
|     @Autowired | ||||
|     private ISysOperLogService operLogService; | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -42,13 +42,6 @@ spring: | ||||
|     basename: i18n/messages | ||||
|   profiles: | ||||
|     active: druid | ||||
|   # 文件上传 | ||||
|   servlet: | ||||
|      multipart: | ||||
|        # 单个文件大小 | ||||
|        max-file-size:  10MB | ||||
|        # 设置总上传的文件大小 | ||||
|        max-request-size:  20MB | ||||
|   # 服务模块 | ||||
|   devtools: | ||||
|     restart: | ||||
| @@ -77,13 +70,6 @@ spring: | ||||
|         # #连接池最大阻塞等待时间(使用负值表示没有限制) | ||||
|         max-wait: -1ms | ||||
|  | ||||
| # Swagger配置 | ||||
| swagger: | ||||
|   # 是否开启swagger | ||||
|   enabled: true | ||||
|   # 请求前缀 | ||||
|   pathMapping: /dev-api | ||||
|  | ||||
| # 防止XSS攻击 | ||||
| xss: | ||||
|   # 过滤开关 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV