people-同步用户时间字段转换

This commit is contained in:
liyawei
2022-05-30 13:34:53 +08:00
parent 22a7491add
commit e3313142ed
2 changed files with 14 additions and 1 deletions
@@ -73,4 +73,17 @@ public class PPEmployee {
private String phone_device_type; // Mobile/Landline
private String formatted_phone_number;
public void setCreation_time(Date creation_time) {
long timeStamp = creation_time.getTime();
long longTimeStamp = new Long(timeStamp * 1000); // 精确到毫秒的时间戳
Date time = new Date(longTimeStamp);
this.creation_time = time;
}
public void setUpdate_time(Date update_time) {
long timeStamp = update_time.getTime();
long longTimeStamp = new Long(timeStamp * 1000); // 精确到毫秒的时间戳
Date time = new Date(longTimeStamp);
this.update_time = time;
}
}