|  | @@ -17,6 +17,7 @@ import com.google.gson.Gson;
 | 
	
		
			
				|  |  |  import com.jeeplus.aop.demo.annotation.DemoMode;
 | 
	
		
			
				|  |  |  import com.jeeplus.common.SecurityUtils;
 | 
	
		
			
				|  |  |  import com.jeeplus.common.TokenProvider;
 | 
	
		
			
				|  |  | +import com.jeeplus.common.constant.CacheNames;
 | 
	
		
			
				|  |  |  import com.jeeplus.common.constant.CommonConstants;
 | 
	
		
			
				|  |  |  import com.jeeplus.common.excel.ExcelOptions;
 | 
	
		
			
				|  |  |  import com.jeeplus.common.excel.annotation.ExportMode;
 | 
	
	
		
			
				|  | @@ -49,6 +50,7 @@ import org.springframework.web.multipart.MultipartFile;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import javax.servlet.http.HttpServletResponse;
 | 
	
		
			
				|  |  |  import javax.validation.Valid;
 | 
	
		
			
				|  |  | +import javax.validation.constraints.NotNull;
 | 
	
		
			
				|  |  |  import java.io.IOException;
 | 
	
		
			
				|  |  |  import java.util.*;
 | 
	
		
			
				|  |  |  import java.util.concurrent.TimeUnit;
 | 
	
	
		
			
				|  | @@ -228,7 +230,7 @@ public class UserController {
 | 
	
		
			
				|  |  |              queryWrapper.isNull("a.is_admin");
 | 
	
		
			
				|  |  |              if (ObjectUtil.isNotEmpty(userDTO)){
 | 
	
		
			
				|  |  |                  if (ObjectUtil.isNotEmpty(userDTO.getCompanyDTO()) && ObjectUtil.isNotEmpty(userDTO.getOfficeDTO())) {
 | 
	
		
			
				|  |  | -                    OfficeDTO officeDTO = UserUtils.getCurrentUserDTO().getOfficeDTO();
 | 
	
		
			
				|  |  | +                    String id = UserUtils.getCurrentUserDTO().getCompanyDTO().getId();
 | 
	
		
			
				|  |  |                      if (StringUtils.isNotBlank(userDTO.getCertType())) {
 | 
	
		
			
				|  |  |                          //获取当前登陆人是否事中审公司人员
 | 
	
		
			
				|  |  |                          /*if(officeDTO.getParentIds().contains("1615171302381182978")){
 | 
	
	
		
			
				|  | @@ -595,6 +597,16 @@ public class UserController {
 | 
	
		
			
				|  |  |      @ApiOperation(value = "导入用户excel")
 | 
	
		
			
				|  |  |      public ResponseEntity importFile(MultipartFile file) throws IOException {
 | 
	
		
			
				|  |  |          String result = UserEasyExcel.newInstance ( userService, UserWrapper.INSTANCE ).importExcel ( file, UserDTO.class );
 | 
	
		
			
				|  |  | +        List<UserDTO> allUserInfo = userService.getAllUserInfo();
 | 
	
		
			
				|  |  | +        if (redisUtils.hasKey("user:cache:user:all:info")){
 | 
	
		
			
				|  |  | +            //先清除redis中的数据
 | 
	
		
			
				|  |  | +            redisUtils.delete(CacheNames.USER_CACHE_USER_ALL_INFO,"user:cache:user:all:info");
 | 
	
		
			
				|  |  | +            //再次将人员信息存入到redis中
 | 
	
		
			
				|  |  | +            redisUtils.set(CacheNames.USER_CACHE_USER_ALL_INFO,"user:cache:user:all:info",allUserInfo);
 | 
	
		
			
				|  |  | +        }else {
 | 
	
		
			
				|  |  | +            //将人员信息存入到redis中
 | 
	
		
			
				|  |  | +            redisUtils.set(CacheNames.USER_CACHE_USER_ALL_INFO,"user:cache:user:all:info",allUserInfo);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          return ResponseEntity.ok ( result );
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |