hr~ 2 дней назад
Родитель
Сommit
fcb47dcff0

+ 0 - 1
product-common/src/main/java/com/poyee/aspect/UserLoginTokenAspect.java

@@ -6,7 +6,6 @@ import com.alibaba.fastjson.JSONObject;
 import com.poyee.annotation.NoLogin;
 import com.poyee.annotation.UserLoginToken;
 import com.poyee.exception.BusinessException;
-import com.poyee.res.UserInfo;
 import com.poyee.utils.JwtUtils;
 import com.poyee.utils.ServletUtils;
 import lombok.extern.slf4j.Slf4j;

+ 2 - 7
product-common/src/main/java/com/poyee/aspect/weblog/WebLogAspect.java

@@ -8,22 +8,17 @@ import org.aspectj.lang.annotation.*;
 import org.aspectj.lang.reflect.MethodSignature;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.slf4j.MDC;
 import org.springframework.core.annotation.Order;
 import org.springframework.stereotype.Component;
 import org.springframework.util.StringUtils;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestParam;
 
-import org.slf4j.MDC;
-
 import javax.servlet.http.HttpServletRequest;
 import java.lang.reflect.Method;
 import java.lang.reflect.Parameter;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-import java.util.UUID;
+import java.util.*;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 

+ 6 - 7
product-common/src/main/java/com/poyee/exception/GlobalExceptionHandler.java

@@ -1,20 +1,19 @@
 package com.poyee.exception;
 
+import com.auth0.jwt.exceptions.JWTVerificationException;
+import com.auth0.jwt.exceptions.TokenExpiredException;
 import com.poyee.res.Result;
 import com.poyee.utils.I18nUtil;
 import com.poyee.utils.ServletUtils;
 import lombok.extern.slf4j.Slf4j;
-import org.springframework.validation.ObjectError;
-import org.springframework.web.bind.MethodArgumentNotValidException;
-import org.springframework.web.bind.annotation.ExceptionHandler;
-import org.springframework.web.bind.annotation.RestControllerAdvice;
-
-import com.auth0.jwt.exceptions.JWTVerificationException;
-import com.auth0.jwt.exceptions.TokenExpiredException;
 import org.springframework.http.converter.HttpMessageNotReadableException;
+import org.springframework.validation.ObjectError;
 import org.springframework.web.HttpMediaTypeNotSupportedException;
 import org.springframework.web.HttpRequestMethodNotSupportedException;
+import org.springframework.web.bind.MethodArgumentNotValidException;
 import org.springframework.web.bind.MissingServletRequestParameterException;
+import org.springframework.web.bind.annotation.ExceptionHandler;
+import org.springframework.web.bind.annotation.RestControllerAdvice;
 import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException;
 
 import javax.servlet.http.HttpServletRequest;

+ 0 - 1
product-common/src/main/java/com/poyee/res/ProductDetailRes.java

@@ -7,7 +7,6 @@ import lombok.Builder;
 import lombok.Data;
 import lombok.NoArgsConstructor;
 
-import java.time.LocalDate;
 import java.time.LocalDateTime;
 import java.util.List;
 

+ 0 - 1
product-common/src/main/java/com/poyee/utils/LocaleTimeZoneUtil.java

@@ -1,6 +1,5 @@
 package com.poyee.utils;
 
-import cn.hutool.core.date.LocalDateTimeUtil;
 import cn.hutool.core.util.StrUtil;
 import org.springframework.web.context.request.RequestContextHolder;
 import org.springframework.web.context.request.ServletRequestAttributes;

+ 0 - 5
product-web/src/main/java/com/poyee/controller/ProductInfoController.java

@@ -4,10 +4,7 @@ import com.github.pagehelper.PageInfo;
 import com.poyee.api.checklist.CheckListFeignClient;
 import com.poyee.facade.IProductInfoFacade;
 import com.poyee.req.*;
-import com.poyee.req.client.checklist.BaseInfoReq;
 import com.poyee.res.*;
-import com.poyee.res.client.checklist.BaseInfoRes;
-import com.poyee.utils.ApiUtils;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
@@ -15,8 +12,6 @@ import lombok.AllArgsConstructor;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
 
-import java.util.List;
-
 @RestController
 @RequestMapping("/api/product")
 @Api(tags = "商品管理")

+ 0 - 3
product-web/src/main/java/com/poyee/facade/IProductItemFacade.java

@@ -8,9 +8,6 @@ import com.poyee.req.ProductItemSearchReq;
 import com.poyee.res.OrderServiceProductItemSearchRes;
 import com.poyee.res.ProductItemDetail;
 import com.poyee.res.ProductItemListRes;
-import com.poyee.res.Result;
-import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.RequestBody;
 
 public interface IProductItemFacade {
 

+ 0 - 1
product-web/src/main/java/com/poyee/facade/impl/ProductInfoFacade.java

@@ -1,7 +1,6 @@
 package com.poyee.facade.impl;
 
 import cn.hutool.core.collection.CollUtil;
-import cn.hutool.core.date.LocalDateTimeUtil;
 import cn.hutool.core.lang.Assert;
 import cn.hutool.core.util.BooleanUtil;
 import cn.hutool.core.util.IdUtil;

+ 0 - 1
product-web/src/main/java/com/poyee/facade/impl/ProductItemFacade.java

@@ -30,7 +30,6 @@ import lombok.AllArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 
-import java.time.LocalDateTime;
 import java.util.List;
 import java.util.Objects;
 import java.util.stream.Collectors;