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
@@ -785,7 +785,7 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
.orderByDesc(ParamsCollectManifestEO::getUpdateTime); // 按修改时间降序
List<ParamsCollectManifestEO> list = list(queryWrapper);
int collectFinishNumber = (int) list.stream().filter(e->CollectManifestStateEnum.SYNC_REPORT.getValue().equals(e.getState())).count();
if (collectFinishNumber == list.size()) {
if (collectFinishNumber == list.size() && list.size() > 0) {
map.put("finish", true);
map.put("time", list.get(0).getUpdateTime());
@@ -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;
}
}