Forráskód Böngészése

修改配置文件

limingming 1 éve
szülő
commit
dba251fef0

+ 4 - 1
ruoyi-admin/src/main/resources/application.yml

@@ -123,7 +123,10 @@ mybatis-plus:
     log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
   global-config:
     db-config:
-      id-type: ASSIGN_ID
+      id-type: AUTO
+      logic-delete-field: delFlag #删除字段
+      logic-delete-value: 2
+      logic-not-delete-value: 0
 
 
 # PageHelper分页插件

+ 10 - 3
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysLogininforServiceImpl.java

@@ -1,11 +1,12 @@
 package com.ruoyi.system.service.impl;
 
-import java.util.List;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
 import com.ruoyi.system.domain.SysLogininfor;
 import com.ruoyi.system.mapper.SysLogininforMapper;
 import com.ruoyi.system.service.ISysLogininforService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
 
 /**
  * 系统访问日志情况信息 服务层处理
@@ -27,6 +28,12 @@ public class SysLogininforServiceImpl implements ISysLogininforService
     @Override
     public void insertLogininfor(SysLogininfor logininfor)
     {
+        switch (logininfor.getStatus()){
+            case "200":
+                logininfor.setStatus("0");
+            case "444":
+                logininfor.setStatus("1");
+        }
         logininforMapper.insertLogininfor(logininfor);
     }