修复idea错误警告

pull/183/head
1332987 3 years ago
parent 3e16a5cbca
commit 7cb3f04883

@ -15,9 +15,10 @@ import com.ruoyi.system.api.RemoteUserService;
import com.ruoyi.system.api.domain.SysLogininfor;
import com.ruoyi.system.api.domain.SysUser;
import com.ruoyi.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
/**
*
*
@ -25,10 +26,10 @@ import org.springframework.stereotype.Component;
*/
@Component
public class SysLoginService {
@Autowired
@Resource
private RemoteLogService remoteLogService;
@Autowired
@Resource
private RemoteUserService remoteUserService;
/**

@ -25,7 +25,7 @@ public class AuthUtil {
/**
* Token
*
* @param tokenValue token
* @param token token
*/
public static void logoutByToken(String token) {
authLogic.logoutByToken(token);

@ -3,9 +3,9 @@ package com.ruoyi.gen.service;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.gen.domain.GenTableColumn;
import com.ruoyi.gen.mapper.GenTableColumnMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
@ -15,7 +15,7 @@ import java.util.List;
*/
@Service
public class GenTableColumnServiceImpl implements IGenTableColumnService {
@Autowired
@Resource
private GenTableColumnMapper genTableColumnMapper;
/**

@ -22,10 +22,10 @@ import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.Velocity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
@ -47,10 +47,10 @@ import java.util.zip.ZipOutputStream;
public class GenTableServiceImpl implements IGenTableService {
private static final Logger log = LoggerFactory.getLogger(GenTableServiceImpl.class);
@Autowired
@Resource
private GenTableMapper genTableMapper;
@Autowired
@Resource
private GenTableColumnMapper genTableColumnMapper;
/**

@ -2,9 +2,9 @@ package com.ruoyi.job.service;
import com.ruoyi.job.domain.SysJobLog;
import com.ruoyi.job.mapper.SysJobLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
@ -14,7 +14,7 @@ import java.util.List;
*/
@Service
public class SysJobLogServiceImpl implements ISysJobLogService {
@Autowired
@Resource
private SysJobLogMapper jobLogMapper;
/**

@ -15,6 +15,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.List;
/**
@ -24,10 +25,10 @@ import java.util.List;
*/
@Service
public class SysJobServiceImpl implements ISysJobService {
@Autowired
@Resource
private Scheduler scheduler;
@Autowired
@Resource
private SysJobMapper jobMapper;
/**

@ -9,10 +9,10 @@ import com.ruoyi.common.redis.service.RedisService;
import com.ruoyi.system.domain.SysConfig;
import com.ruoyi.system.mapper.SysConfigMapper;
import com.ruoyi.system.service.ISysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;
@ -23,10 +23,10 @@ import java.util.List;
*/
@Service
public class SysConfigServiceImpl implements ISysConfigService {
@Autowired
@Resource
private SysConfigMapper configMapper;
@Autowired
@Resource
private RedisService redisService;
/**

@ -14,9 +14,9 @@ import com.ruoyi.system.domain.vo.TreeSelect;
import com.ruoyi.system.mapper.SysDeptMapper;
import com.ruoyi.system.mapper.SysRoleMapper;
import com.ruoyi.system.service.ISysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@ -29,10 +29,10 @@ import java.util.stream.Collectors;
*/
@Service
public class SysDeptServiceImpl implements ISysDeptService {
@Autowired
@Resource
private SysDeptMapper deptMapper;
@Autowired
@Resource
private SysRoleMapper roleMapper;
/**

@ -4,9 +4,9 @@ import com.ruoyi.common.security.utils.DictUtils;
import com.ruoyi.system.api.domain.SysDictData;
import com.ruoyi.system.mapper.SysDictDataMapper;
import com.ruoyi.system.service.ISysDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
@ -16,7 +16,7 @@ import java.util.List;
*/
@Service
public class SysDictDataServiceImpl implements ISysDictDataService {
@Autowired
@Resource
private SysDictDataMapper dictDataMapper;
/**

@ -9,11 +9,11 @@ import com.ruoyi.system.api.domain.SysDictType;
import com.ruoyi.system.mapper.SysDictDataMapper;
import com.ruoyi.system.mapper.SysDictTypeMapper;
import com.ruoyi.system.service.ISysDictTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
@ -26,10 +26,10 @@ import java.util.stream.Collectors;
*/
@Service
public class SysDictTypeServiceImpl implements ISysDictTypeService {
@Autowired
@Resource
private SysDictTypeMapper dictTypeMapper;
@Autowired
@Resource
private SysDictDataMapper dictDataMapper;
/**

@ -3,9 +3,9 @@ package com.ruoyi.system.service.impl;
import com.ruoyi.system.api.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 javax.annotation.Resource;
import java.util.List;
/**
@ -16,7 +16,7 @@ import java.util.List;
@Service
public class SysLogininforServiceImpl implements ISysLogininforService {
@Autowired
@Resource
private SysLogininforMapper logininforMapper;
/**

@ -14,9 +14,9 @@ import com.ruoyi.system.mapper.SysMenuMapper;
import com.ruoyi.system.mapper.SysRoleMapper;
import com.ruoyi.system.mapper.SysRoleMenuMapper;
import com.ruoyi.system.service.ISysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.*;
import java.util.stream.Collectors;
@ -29,13 +29,13 @@ import java.util.stream.Collectors;
public class SysMenuServiceImpl implements ISysMenuService {
public static final String PREMISSION_STRING = "perms[\"{0}\"]";
@Autowired
@Resource
private SysMenuMapper menuMapper;
@Autowired
@Resource
private SysRoleMapper roleMapper;
@Autowired
@Resource
private SysRoleMenuMapper roleMenuMapper;
/**

@ -3,9 +3,9 @@ package com.ruoyi.system.service.impl;
import com.ruoyi.system.domain.SysNotice;
import com.ruoyi.system.mapper.SysNoticeMapper;
import com.ruoyi.system.service.ISysNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
@ -15,7 +15,7 @@ import java.util.List;
*/
@Service
public class SysNoticeServiceImpl implements ISysNoticeService {
@Autowired
@Resource
private SysNoticeMapper noticeMapper;
/**

@ -3,9 +3,9 @@ package com.ruoyi.system.service.impl;
import com.ruoyi.system.api.domain.SysOperLog;
import com.ruoyi.system.mapper.SysOperLogMapper;
import com.ruoyi.system.service.ISysOperLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
@ -15,7 +15,7 @@ import java.util.List;
*/
@Service
public class SysOperLogServiceImpl implements ISysOperLogService {
@Autowired
@Resource
private SysOperLogMapper operLogMapper;
/**

@ -7,9 +7,9 @@ import com.ruoyi.system.domain.SysPost;
import com.ruoyi.system.mapper.SysPostMapper;
import com.ruoyi.system.mapper.SysUserPostMapper;
import com.ruoyi.system.service.ISysPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
@ -19,10 +19,10 @@ import java.util.List;
*/
@Service
public class SysPostServiceImpl implements ISysPostService {
@Autowired
@Resource
private SysPostMapper postMapper;
@Autowired
@Resource
private SysUserPostMapper userPostMapper;
/**

@ -16,10 +16,10 @@ import com.ruoyi.system.mapper.SysRoleMapper;
import com.ruoyi.system.mapper.SysRoleMenuMapper;
import com.ruoyi.system.mapper.SysUserRoleMapper;
import com.ruoyi.system.service.ISysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.*;
/**
@ -29,16 +29,16 @@ import java.util.*;
*/
@Service
public class SysRoleServiceImpl implements ISysRoleService {
@Autowired
@Resource
private SysRoleMapper roleMapper;
@Autowired
@Resource
private SysRoleMenuMapper roleMenuMapper;
@Autowired
@Resource
private SysUserRoleMapper userRoleMapper;
@Autowired
@Resource
private SysRoleDeptMapper roleDeptMapper;
/**

@ -17,11 +17,11 @@ import com.ruoyi.system.service.ISysConfigService;
import com.ruoyi.system.service.ISysUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import javax.validation.Validator;
import java.util.ArrayList;
import java.util.List;
@ -35,19 +35,19 @@ import java.util.stream.Collectors;
@Service
public class SysUserServiceImpl implements ISysUserService {
private static final Logger log = LoggerFactory.getLogger(SysUserServiceImpl.class);
@Autowired
@Resource
protected Validator validator;
@Autowired
@Resource
private SysUserMapper userMapper;
@Autowired
@Resource
private SysRoleMapper roleMapper;
@Autowired
@Resource
private SysPostMapper postMapper;
@Autowired
@Resource
private SysUserRoleMapper userRoleMapper;
@Autowired
@Resource
private SysUserPostMapper userPostMapper;
@Autowired
@Resource
private ISysConfigService configService;
/**

Loading…
Cancel
Save