|
@@ -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);
|
|
|
}
|
|
|
|