|  | @@ -1,10 +1,7 @@
 | 
											
												
													
														|  |  package org.jeecg.modules.splt.controller;
 |  |  package org.jeecg.modules.splt.controller;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  import java.io.IOException;
 |  |  import java.io.IOException;
 | 
											
												
													
														|  | -import java.util.ArrayList;
 |  | 
 | 
											
												
													
														|  | -import java.util.Arrays;
 |  | 
 | 
											
												
													
														|  | -import java.util.List;
 |  | 
 | 
											
												
													
														|  | -import java.util.Map;
 |  | 
 | 
											
												
													
														|  | 
 |  | +import java.util.*;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  import javax.servlet.http.HttpServletRequest;
 |  |  import javax.servlet.http.HttpServletRequest;
 | 
											
												
													
														|  |  import javax.servlet.http.HttpServletResponse;
 |  |  import javax.servlet.http.HttpServletResponse;
 | 
											
										
											
												
													
														|  | @@ -25,6 +22,8 @@ import org.jeecg.modules.spapl.entity.SyPreAssembledPackingListItem;
 | 
											
												
													
														|  |  import org.jeecg.modules.spapl.service.ISyPreAssembledPackingListService;
 |  |  import org.jeecg.modules.spapl.service.ISyPreAssembledPackingListService;
 | 
											
												
													
														|  |  import org.jeecg.modules.spapl.vo.SyPreAssembledPackingListVo;
 |  |  import org.jeecg.modules.spapl.vo.SyPreAssembledPackingListVo;
 | 
											
												
													
														|  |  import org.jeecg.modules.splt.vo.SyPackingListTailoringVo;
 |  |  import org.jeecg.modules.splt.vo.SyPackingListTailoringVo;
 | 
											
												
													
														|  | 
 |  | +import org.jeecg.modules.system.entity.SysPermission;
 | 
											
												
													
														|  | 
 |  | +import org.jeecg.modules.system.service.impl.SysPermissionServiceImpl;
 | 
											
												
													
														|  |  import org.jeecgframework.poi.excel.ExcelImportUtil;
 |  |  import org.jeecgframework.poi.excel.ExcelImportUtil;
 | 
											
												
													
														|  |  import org.jeecgframework.poi.excel.def.NormalExcelConstants;
 |  |  import org.jeecgframework.poi.excel.def.NormalExcelConstants;
 | 
											
												
													
														|  |  import org.jeecgframework.poi.excel.entity.ExportParams;
 |  |  import org.jeecgframework.poi.excel.entity.ExportParams;
 | 
											
										
											
												
													
														|  | @@ -496,15 +495,15 @@ public class SyPackingListTailoringController {
 | 
											
												
													
														|  |  		 String accessToken = request.getHeader("X-Access-Token");
 |  |  		 String accessToken = request.getHeader("X-Access-Token");
 | 
											
												
													
														|  |  		 System.out.println("accessToken的值为:\t"+accessToken);
 |  |  		 System.out.println("accessToken的值为:\t"+accessToken);
 | 
											
												
													
														|  |  		 Result result=new Result();
 |  |  		 Result result=new Result();
 | 
											
												
													
														|  | -		 if(redisUtil.get(CommonConstant.PREFIX_USER_TOKEN + "yungctest")!=null){
 |  | 
 | 
											
												
													
														|  | -			 result.setTimestamp(redisUtil.getExpire(CommonConstant.PREFIX_USER_TOKEN + "yungctest"));
 |  | 
 | 
											
												
													
														|  | -			 result.setResult(redisUtil.get(CommonConstant.PREFIX_USER_TOKEN + "yungctest"));
 |  | 
 | 
											
												
													
														|  | 
 |  | +		 if(redisUtil.get(CommonConstant.PREFIX_USER_TOKEN + "testData")!=null){
 | 
											
												
													
														|  | 
 |  | +			 result.setTimestamp(redisUtil.getExpire(CommonConstant.PREFIX_USER_TOKEN + "testData"));
 | 
											
												
													
														|  | 
 |  | +			 result.setResult(redisUtil.get(CommonConstant.PREFIX_USER_TOKEN + "testData"));
 | 
											
												
													
														|  |  		 }else{
 |  |  		 }else{
 | 
											
												
													
														|  |  			 String token = JwtUtil.sign(username, syspassword);//生成token
 |  |  			 String token = JwtUtil.sign(username, syspassword);//生成token
 | 
											
												
													
														|  | -			 redisUtil.set(CommonConstant.PREFIX_USER_TOKEN + "yungctest", token);
 |  | 
 | 
											
												
													
														|  | -			 redisUtil.expire(CommonConstant.PREFIX_USER_TOKEN + "yungctest", JwtUtil.EXPIRE_TIME * 2 / 1000);
 |  | 
 | 
											
												
													
														|  | -			 result.setTimestamp(redisUtil.getExpire(CommonConstant.PREFIX_USER_TOKEN + "yungctest"));
 |  | 
 | 
											
												
													
														|  | -			 result.setResult(redisUtil.get(CommonConstant.PREFIX_USER_TOKEN + "yungctest"));
 |  | 
 | 
											
												
													
														|  | 
 |  | +			 redisUtil.set(CommonConstant.PREFIX_USER_TOKEN + "testData", token);
 | 
											
												
													
														|  | 
 |  | +			 redisUtil.expire(CommonConstant.PREFIX_USER_TOKEN + "testData", JwtUtil.EXPIRE_TIME * 2 / 1000);
 | 
											
												
													
														|  | 
 |  | +			 result.setTimestamp(redisUtil.getExpire(CommonConstant.PREFIX_USER_TOKEN + "testData"));
 | 
											
												
													
														|  | 
 |  | +			 result.setResult(redisUtil.get(CommonConstant.PREFIX_USER_TOKEN + "testData"));
 | 
											
												
													
														|  |  		 }
 |  |  		 }
 | 
											
												
													
														|  |  		 return result;
 |  |  		 return result;
 | 
											
												
													
														|  |  	 }
 |  |  	 }
 | 
											
										
											
												
													
														|  | @@ -570,4 +569,5 @@ public class SyPackingListTailoringController {
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  |  		return result;
 |  |  		return result;
 | 
											
												
													
														|  |  	 }
 |  |  	 }
 | 
											
												
													
														|  | -}
 |  | 
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | + }
 |