Commit 53d83141 by wuwenlong

bugfix;

parent 7596697d
...@@ -62,14 +62,14 @@ public class FrontTokenInterceptor implements HandlerInterceptor { ...@@ -62,14 +62,14 @@ public class FrontTokenInterceptor implements HandlerInterceptor {
SConsumer userEntry = frontTokenComponent.getLoginSConsumerEntry(request); SConsumer userEntry = frontTokenComponent.getLoginSConsumerEntry(request);
if(userEntry!=null){ if(userEntry!=null){
FrontTokenComponent.loginSConsumerEntryThreadLocal.set(userEntry); FrontTokenComponent.loginSConsumerEntryThreadLocal.set(userEntry);
}else { }/*else {
token = "f788beab1ea14f0ab3a369e4c66ee627"; token = "f788beab1ea14f0ab3a369e4c66ee627";
userEntry = new SConsumer(); userEntry = new SConsumer();
userEntry.setId(1714160213741535234L); userEntry.setId(1714160213741535234L);
userEntry.setAccount("15527462530"); userEntry.setAccount("15527462530");
userEntry.setPhone("15527462530"); userEntry.setPhone("15527462530");
FrontTokenComponent.loginSConsumerEntryThreadLocal.set(userEntry); FrontTokenComponent.loginSConsumerEntryThreadLocal.set(userEntry);
} }*/
if(token == null || token.isEmpty() || userEntry == null){ if(token == null || token.isEmpty() || userEntry == null){
//判断路由,部分路由不管用户是否登录都可以访问 //判断路由,部分路由不管用户是否登录都可以访问
boolean result = frontTokenComponent.checkRouter(RequestUtil.getUri(request)); boolean result = frontTokenComponent.checkRouter(RequestUtil.getUri(request));
......
...@@ -7,6 +7,7 @@ import lombok.EqualsAndHashCode; ...@@ -7,6 +7,7 @@ import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date; import java.util.Date;
/** /**
...@@ -19,11 +20,11 @@ import java.util.Date; ...@@ -19,11 +20,11 @@ import java.util.Date;
@ApiModel(value="OrderComputedPriceRequest对象", description="计算订单价格请求对象") @ApiModel(value="OrderComputedPriceRequest对象", description="计算订单价格请求对象")
public class OrderComputedPriceRequest { public class OrderComputedPriceRequest {
@ApiModelProperty(value = "门店ID", required = true) @ApiModelProperty(value = "门店ID", required = true)
@NotBlank(message = "门店ID不能为空") @NotNull(message = "门店ID不能为空")
private Long storeId; private Long storeId;
@ApiModelProperty(value = "房间ID", required = true) @ApiModelProperty(value = "房间ID", required = true)
@NotBlank(message = "房间ID不能为空") @NotNull(message = "房间ID不能为空")
private Long roomId; private Long roomId;
@ApiModelProperty(value = "优惠券id") @ApiModelProperty(value = "优惠券id")
...@@ -33,20 +34,20 @@ public class OrderComputedPriceRequest { ...@@ -33,20 +34,20 @@ public class OrderComputedPriceRequest {
private Long packId; private Long packId;
@ApiModelProperty(value = "订单类型(0:订房订单,1:续房订单,2:充值订单)", required = true) @ApiModelProperty(value = "订单类型(0:订房订单,1:续房订单,2:充值订单)", required = true)
@NotBlank(message = "订单类型不能为空") @NotNull(message = "订单类型不能为空")
private Integer orderType; private Integer orderType;
@ApiModelProperty(value = "购买方式(1:小时,2:套餐)", required = true) @ApiModelProperty(value = "购买方式(1:小时,2:套餐)", required = true)
@NotBlank(message = "购买方式不能为空") @NotNull(message = "购买方式不能为空")
private Integer buyType; private Integer buyType;
/** 预约开始时间 */ /** 预约开始时间 */
@ApiModelProperty(value = "预约开始时间 yyyy-MM-dd HH:mm", required = true) @ApiModelProperty(value = "预约开始时间 yyyy-MM-dd HH:mm", required = true)
@NotBlank(message = "预约开始时间不能为空") @NotNull(message = "预约开始时间不能为空")
private Date preStartDate; private Date preStartDate;
/** 预约结束时间 */ /** 预约结束时间 */
@ApiModelProperty(value = "预约结束时间 yyyy-MM-dd HH:mm", required = true) @ApiModelProperty(value = "预约结束时间 yyyy-MM-dd HH:mm", required = true)
@NotBlank(message = "预约结束时间不能为空") @NotNull(message = "预约结束时间不能为空")
private Date preEndDate; private Date preEndDate;
} }
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