@@ -47,7 +47,8 @@ public class AuthenticationInterceptor implements HandlerInterceptor {
// 有 @LoginRequired 注解,需要认证
if (methodAnnotation != null) {
// 执行认证 从 http 请求头中取出 token
- String token = request.getHeader("token");
+ String token = request.getHeader("token")==null? request.getParameter("token"):request.getHeader("token");
+ ;
if (token == null) {
throw new RuntimeException("无token,请重新登录");
}
@@ -30,7 +30,7 @@
<include refid="Base_Column_List" />
from t_customer_carRec
where
- rec_status=1
+ ((rec_status=1 and bussiness_type =0) or (bussiness_type=2))
<if test="query.customerName != null">
and customer_name = BINARY #{query.customerName,jdbcType=VARCHAR}
</if>