记得上下班打卡 | git大法好,push需谨慎

Commit ed703cac authored by zhengfuxin's avatar zhengfuxin

修改bug

parent d2b40856
......@@ -7,7 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Past;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.time.LocalDate;
......@@ -57,7 +57,8 @@ public class SmileUserVO implements Serializable {
*/
@ApiModelProperty(value = "生日(yyyy-MM-dd)")
@JsonFormat(shape=JsonFormat.Shape.STRING, pattern= DateUtil.DATE_SMALL_STR)
@Past(groups = {saveOne.class},message = "生日必传")
//@Past(groups = {saveOne.class},message = "生日必传")
@NotNull(groups = {saveOne.class},message = "生日必传")
private LocalDate birthday;
/**
......
......@@ -70,7 +70,7 @@ public class SmileUserController {
String userId = CurrentUtil.getCurrentUid();
//判断是否认证了。
SmileUserVO smileUserVORedis= (SmileUserVO) redisUtil.get(SmileRedisConst.SMILE_USER.concat(userId));
/* if(null!=smileUserVORedis&&null!= smileUserVORedis.getType()&&(smileUserVORedis.getType()==2||smileUserVORedis.getType()==1)){
/* if(null!=smileUserVORedis&&null!= smileUserVORedis.getType()&&(smileUserVORedis.getType()==2||smileUserVORedis.getType()==1)){
return ResponseDto.failure("该用户已认证!");
}*/
redisUtil.del(SmileRedisConst.SMILE_USER.concat(userId));
......
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