优化代码

pull/1/MERGE
topiam 2022-12-12 19:31:38 +08:00
parent 050ced5fec
commit 872405385e
1 changed files with 4 additions and 4 deletions

View File

@ -139,8 +139,8 @@ public interface IdentitySourceSyncConverter {
identitySourceSyncHistoryListResult.setStatus(entity.getStatus().getCode()); identitySourceSyncHistoryListResult.setStatus(entity.getStatus().getCode());
} }
if (entity.getEndTime() != null) { if (entity.getEndTime() != null) {
identitySourceSyncHistoryListResult.setSpendTime(String identitySourceSyncHistoryListResult.setSpendTime(
.valueOf( String.valueOf(
entity.getEndTime().toInstant(java.time.ZoneOffset.of("+8")).getEpochSecond() entity.getEndTime().toInstant(java.time.ZoneOffset.of("+8")).getEpochSecond()
- entity.getStartTime().toInstant(java.time.ZoneOffset.of("+8")) - entity.getStartTime().toInstant(java.time.ZoneOffset.of("+8"))
.getEpochSecond())); .getEpochSecond()));