Commit 37ec560687ea684691a2ab1add66ee127ee7f10d
1 parent
f966fae0
流程发起异常,忽略id
Showing
1 changed file
with
3 additions
and
1 deletions
yudao-module-bpm/yudao-module-bpm-impl-activiti/src/main/java/cn/iocoder/yudao/module/bpm/convert/task/BpmTaskConvert.java
| ... | ... | @@ -73,7 +73,8 @@ public interface BpmTaskConvert { |
| 73 | 73 | @Mappings({ |
| 74 | 74 | @Mapping(source = "id", target = "taskId"), |
| 75 | 75 | @Mapping(source = "assignee", target = "assigneeUserId"), |
| 76 | - @Mapping(source = "createdDate", target = "createTime") | |
| 76 | + @Mapping(source = "createdDate", target = "createTime"), | |
| 77 | + @Mapping(target = "id", ignore = true) | |
| 77 | 78 | }) |
| 78 | 79 | BpmTaskExtDO convert(org.activiti.api.task.model.Task bean); |
| 79 | 80 | |
| ... | ... | @@ -104,6 +105,7 @@ public interface BpmTaskConvert { |
| 104 | 105 | BpmTaskRespVO convert3(HistoricTaskInstance bean); |
| 105 | 106 | BpmTaskRespVO.User convert3(AdminUserRespDTO bean); |
| 106 | 107 | |
| 108 | + @Mapping(target = "id", ignore = true) | |
| 107 | 109 | void copyTo(BpmTaskExtDO from, @MappingTarget BpmTaskDonePageItemRespVO to); |
| 108 | 110 | |
| 109 | 111 | @Mappings({ | ... | ... |