Commit 3e0d7d87fbd8bb5dd9dd9be8920beee4fdb133d2
Committed by
Gitee
!426 bugfix: 转换HistoricTaskInstance.createTime -> BpmTaskRespVO.createTime
Merge pull request !426 from SuperHao/N/A
Showing
1 changed file
with
2 additions
and
0 deletions
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/convert/task/BpmTaskConvert.java
| @@ -135,6 +135,8 @@ public interface BpmTaskConvert { | @@ -135,6 +135,8 @@ public interface BpmTaskConvert { | ||
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | @Mapping(source = "taskDefinitionKey", target = "definitionKey") | 137 | @Mapping(source = "taskDefinitionKey", target = "definitionKey") |
| 138 | + @Mapping(target = "createTime", expression = "java(bean.getCreateTime() == null ? null : LocalDateTime.ofInstant(bean.getCreateTime().toInstant(), ZoneId.systemDefault()))") | ||
| 139 | + @Mapping(target = "endTime", expression = "java(bean.getEndTime() == null ? null : LocalDateTime.ofInstant(bean.getEndTime().toInstant(), ZoneId.systemDefault()))") | ||
| 138 | BpmTaskRespVO convert3(HistoricTaskInstance bean); | 140 | BpmTaskRespVO convert3(HistoricTaskInstance bean); |
| 139 | 141 | ||
| 140 | BpmTaskRespVO.User convert3(AdminUserRespDTO bean); | 142 | BpmTaskRespVO.User convert3(AdminUserRespDTO bean); |