Commit 4592b79deb7060daec3b88b21335d7740c8f68d8
Committed by
Gitee
1 parent
0ad74927
bugfix: 转换HistoricTaskInstance.createTime -> BpmTaskRespVO.createTime
Signed-off-by: SuperHao <jacky.jihao@gmail.com>
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 | 135 | } |
| 136 | 136 | |
| 137 | 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 | 140 | BpmTaskRespVO convert3(HistoricTaskInstance bean); |
| 139 | 141 | |
| 140 | 142 | BpmTaskRespVO.User convert3(AdminUserRespDTO bean); | ... | ... |