提交 e352a8db 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 发布系统代码

上级 1ff7d909
...@@ -197,6 +197,22 @@ public class PayTrade extends EntityMP implements Serializable { ...@@ -197,6 +197,22 @@ public class PayTrade extends EntityMP implements Serializable {
} }
/**
* 获取 [交易标识]
*/
public String getTradeId(){
if(ObjectUtils.isEmpty(tradeId)){
tradeId=(String)getDefaultKey(true);
}
return tradeId;
}
@Override
public Serializable getDefaultKey(boolean gen) {
if((!ObjectUtils.isEmpty(this.getAccessId()))&&(!ObjectUtils.isEmpty(this.getOutTradeNo())))
return DigestUtils.md5DigestAsHex(String.format("%s||%s" ,this.getAccessId(),this.getOutTradeNo()).getBytes());
return null;
}
} }
...@@ -65,7 +65,7 @@ public class PayTradeServiceImpl extends ServiceImpl<PayTradeMapper, PayTrade> i ...@@ -65,7 +65,7 @@ public class PayTradeServiceImpl extends ServiceImpl<PayTradeMapper, PayTrade> i
@Override @Override
public void createBatch(List<PayTrade> list) { public void createBatch(List<PayTrade> list) {
list.forEach(item->fillParentData(item)); list.forEach(item->fillParentData(item));
this.saveBatch(list,batchSize); this.saveOrUpdateBatch(list,batchSize);
} }
@Override @Override
......
...@@ -32,7 +32,7 @@ public class AuthorizationTokenFilter extends OncePerRequestFilter { ...@@ -32,7 +32,7 @@ public class AuthorizationTokenFilter extends OncePerRequestFilter {
private final UserDetailsService userDetailsService; private final UserDetailsService userDetailsService;
private final AuthTokenUtil authTokenUtil; private final AuthTokenUtil authTokenUtil;
private final String tokenHeader; private final String tokenHeader;
private Set<String> excludesPattern; private Set<String> excludesPattern = new HashSet<String>();
private PathMatcher pathMatcher = new AntPathMatcher(); private PathMatcher pathMatcher = new AntPathMatcher();
public AuthorizationTokenFilter(AuthenticationUserService userDetailsService, AuthTokenUtil authTokenUtil, @Value("${ibiz.jwt.header:Authorization}") String tokenHeader) { public AuthorizationTokenFilter(AuthenticationUserService userDetailsService, AuthTokenUtil authTokenUtil, @Value("${ibiz.jwt.header:Authorization}") String tokenHeader) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册