Commit 846810c5 authored by 周健威's avatar 周健威

Merge remote-tracking branch 'origin/base-modify' into base-modify

parents e2b7aa39 b1fe9757
...@@ -329,10 +329,16 @@ public class AccessGatewayFilter implements GlobalFilter { ...@@ -329,10 +329,16 @@ public class AccessGatewayFilter implements GlobalFilter {
if (null != method) { if (null != method) {
log.info("=================请求方法:" + method.name()); log.info("=================请求方法:" + method.name());
} }
request.getHeaders().add("uuid", UUID.randomUUID().toString());
// 记录头部信息 // 记录头部信息
builder.append(", header { "); builder.append(", header { ");
for (Map.Entry<String, List<String>> entry : request.getHeaders().entrySet()) { for (Map.Entry<String, List<String>> entry : request.getHeaders().entrySet()) {
builder.append(entry.getKey()).append(":").append(StringUtils.join(entry.getValue(), ",")).append(","); builder.append(entry.getKey()).append(":").append(StringUtils.join(entry.getValue(), ",")).append(",");
if("uuid".equals(entry.getKey())) {
if(entry.getValue() != null && entry.getValue().size() > 0) {
log.info("=================请求方法uuid:" + entry.getValue().get(0));
}
}
if("Authorization".equals(entry.getKey())) { if("Authorization".equals(entry.getKey())) {
if(entry.getValue() != null && entry.getValue().size() > 0) { if(entry.getValue() != null && entry.getValue().size() > 0) {
getAdminUserInfo(entry.getValue().get(0)); getAdminUserInfo(entry.getValue().get(0));
......
...@@ -340,7 +340,11 @@ public class UserCouponBiz extends BaseBiz<UserCouponMapper, UserCoupon> { ...@@ -340,7 +340,11 @@ public class UserCouponBiz extends BaseBiz<UserCouponMapper, UserCoupon> {
IntegralUserTotal integralUserTotal=new IntegralUserTotal(); IntegralUserTotal integralUserTotal=new IntegralUserTotal();
integralUserTotal.setUserId(userId); integralUserTotal.setUserId(userId);
integralUserTotal=integralUserTotalBiz.selectOne(integralUserTotal); integralUserTotal=integralUserTotalBiz.selectOne(integralUserTotal);
BeanUtils.copyProperties(integralUserTotal,userInfoDTO); if (integralUserTotal!=null){
BeanUtils.copyProperties(integralUserTotal,userInfoDTO);
}else {
userInfoDTO.setTotalPoint(0);
}
UserCoupon userCoupon=new UserCoupon(); UserCoupon userCoupon=new UserCoupon();
userCoupon.setUserId(userId); userCoupon.setUserId(userId);
userCoupon.setIsUse(0); userCoupon.setIsUse(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment