Commit 1994627b authored by jiaorz's avatar jiaorz

Merge remote-tracking branch 'origin/dev' into jrz_dev

parents 39badd50 27ba3274
...@@ -32,7 +32,7 @@ public class ServiceAuthRestInterceptor extends HandlerInterceptorAdapter { ...@@ -32,7 +32,7 @@ public class ServiceAuthRestInterceptor extends HandlerInterceptorAdapter {
@Override @Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
if (handler instanceof HandlerMethod) { // if (handler instanceof HandlerMethod) {
HandlerMethod handlerMethod = (HandlerMethod) handler; HandlerMethod handlerMethod = (HandlerMethod) handler;
// 配置该注解,说明不进行服务拦截 // 配置该注解,说明不进行服务拦截
IgnoreClientToken annotation = handlerMethod.getBeanType().getAnnotation(IgnoreClientToken.class); IgnoreClientToken annotation = handlerMethod.getBeanType().getAnnotation(IgnoreClientToken.class);
...@@ -52,8 +52,8 @@ public class ServiceAuthRestInterceptor extends HandlerInterceptorAdapter { ...@@ -52,8 +52,8 @@ public class ServiceAuthRestInterceptor extends HandlerInterceptorAdapter {
} }
} }
throw new ClientForbiddenException("Client is Forbidden!"); throw new ClientForbiddenException("Client is Forbidden!");
} else { // } else {
return super.preHandle(request, response, handler); // return super.preHandle(request, response, handler);
} // }
} }
} }
...@@ -31,7 +31,7 @@ public class UserAuthRestInterceptor extends HandlerInterceptorAdapter { ...@@ -31,7 +31,7 @@ public class UserAuthRestInterceptor extends HandlerInterceptorAdapter {
@Override @Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
if (handler instanceof HandlerMethod) { // if (handler instanceof HandlerMethod) {
HandlerMethod handlerMethod = (HandlerMethod) handler; HandlerMethod handlerMethod = (HandlerMethod) handler;
// 配置该注解,说明不进行用户拦截 // 配置该注解,说明不进行用户拦截
IgnoreUserToken annotation = handlerMethod.getBeanType().getAnnotation(IgnoreUserToken.class); IgnoreUserToken annotation = handlerMethod.getBeanType().getAnnotation(IgnoreUserToken.class);
...@@ -64,9 +64,9 @@ public class UserAuthRestInterceptor extends HandlerInterceptorAdapter { ...@@ -64,9 +64,9 @@ public class UserAuthRestInterceptor extends HandlerInterceptorAdapter {
BaseContextHandler.setToken(token); BaseContextHandler.setToken(token);
// 这里可以添加RequestType // 这里可以添加RequestType
return super.preHandle(request, response, handler); return super.preHandle(request, response, handler);
}else { // }else {
return super.preHandle(request, response, handler); // return super.preHandle(request, response, handler);
} // }
} }
@Override @Override
......
...@@ -150,7 +150,11 @@ public class BranchCompany { ...@@ -150,7 +150,11 @@ public class BranchCompany {
* 上下架:1-上架;2-下架 * 上下架:1-上架;2-下架
*/ */
private Integer state; private Integer state;
/**
* 是否app展示:1-是;2-否
*/
@Column(name = "is_show")
private Integer isShow;
/** /**
* 是否删除:0-正常;1-删除 * 是否删除:0-正常;1-删除
......
...@@ -55,6 +55,8 @@ public class CompanyVo extends PageParam { ...@@ -55,6 +55,8 @@ public class CompanyVo extends PageParam {
String addrDetail; String addrDetail;
@ApiModelProperty("上下架:1-上架;2-下架") @ApiModelProperty("上下架:1-上架;2-下架")
Integer state; Integer state;
@ApiModelProperty("是否app展示:1-是;2-否")
Integer isShow;
@ApiModelProperty("负责人") @ApiModelProperty("负责人")
private String leader; private String leader;
@ApiModelProperty("负责人联系方式") @ApiModelProperty("负责人联系方式")
......
...@@ -46,6 +46,7 @@ public class BranchCompanyStockApplyInfoBiz extends BaseBiz<BranchCompanyStockAp ...@@ -46,6 +46,7 @@ public class BranchCompanyStockApplyInfoBiz extends BaseBiz<BranchCompanyStockAp
BeanUtils.copyProperties(applyVo, applyInfo); BeanUtils.copyProperties(applyVo, applyInfo);
applyInfo.setState(BranchCompanyStockApplyState.Apply.getCode()); applyInfo.setState(BranchCompanyStockApplyState.Apply.getCode());
applyInfo.setCreateTime(new Date()); applyInfo.setCreateTime(new Date());
applyInfo.setCompanyId(applyVo.getStockRightId());
mapper.insertSelective(applyInfo); mapper.insertSelective(applyInfo);
} }
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
c.addr_detail as addrDetail, c.addr_detail as addrDetail,
c.state, c.state,
c.status, c.status,
c.is_show as isShow,
c.leader, c.leader,
c.leader_contact_info as leaderContactInfo, c.leader_contact_info as leaderContactInfo,
c.latitude, c.latitude,
......
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