|
|
@@ -33,12 +33,14 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.data.redis.core.ValueOperations;
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
import sun.awt.IconInfo;
|
|
|
import sun.misc.BASE64Decoder;
|
|
|
|
|
|
import java.io.ByteArrayInputStream;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
@@ -581,7 +583,7 @@ public class JobUserApiController {
|
|
|
String headImageUrl,
|
|
|
String realName,
|
|
|
String sex,
|
|
|
- Date birthday,
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd")String birthday,
|
|
|
String address,
|
|
|
String firstJobTime,
|
|
|
String token,
|
|
|
@@ -598,7 +600,12 @@ public class JobUserApiController {
|
|
|
jobUser.setHeadImageUrl(headImageUrl);
|
|
|
jobUser.setRealName(realName);
|
|
|
jobUser.setSex(sex);
|
|
|
- jobUser.setBirthday(birthday);
|
|
|
+ if (StringUtils.isNotEmpty(birthday)) {
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
+ Date birthdayTime = sdf.parse(birthday);
|
|
|
+ jobUser.setBirthday(birthdayTime);
|
|
|
+ }
|
|
|
+
|
|
|
jobUser.setAddress(address);
|
|
|
jobUser.setFirstJobTime(firstJobTime);
|
|
|
jobUser.setUpdateBy(subject);
|