Commit a191e6c3 authored by liming's avatar liming

feat(初始化项目): 日期格式调整

parent 2aee706f
......@@ -174,7 +174,7 @@ public class SportUserService {
loginUser.setInfoInitialized(true);
loginUser.setNickname(param.getNickname());
loginUser.setSex(param.getSex());
loginUser.setBirthday(param.getBirthday());
loginUser.setBirthday(param.getBirthday().atStartOfDay());
loginUser.setHeight(param.getHeight());
loginUser.setWeight(param.getWeight());
sportUserMapper.updateById(loginUser);
......
......@@ -2,8 +2,10 @@ package com.antai.sport.http.server.game.api.business.sport.user.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
......@@ -19,7 +21,7 @@ public class ReqSaveUserInfo {
@ApiModelProperty(value = "性别")
private Integer sex;
@ApiModelProperty(value = "生日")
private LocalDateTime birthday;
private LocalDate birthday;
@ApiModelProperty(value = "身高")
private BigDecimal height;
@ApiModelProperty(value = "体重")
......
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