提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.convert.task; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.util.date.DateUtils; |
|
4 |
import com.iailab.module.bpm.controller.admin.task.vo.activity.BpmActivityRespVO; |
|
5 |
import org.flowable.engine.history.HistoricActivityInstance; |
|
6 |
import org.mapstruct.Mapper; |
|
7 |
import org.mapstruct.Mapping; |
|
8 |
import org.mapstruct.Mappings; |
|
9 |
import org.mapstruct.factory.Mappers; |
|
10 |
|
|
11 |
import java.util.List; |
|
12 |
|
|
13 |
/** |
|
14 |
* BPM 活动 Convert |
|
15 |
* |
|
16 |
* @author iailab |
|
17 |
*/ |
|
18 |
@Mapper(uses = DateUtils.class) |
|
19 |
public interface BpmActivityConvert { |
|
20 |
|
|
21 |
BpmActivityConvert INSTANCE = Mappers.getMapper(BpmActivityConvert.class); |
|
22 |
|
|
23 |
List<BpmActivityRespVO> convertList(List<HistoricActivityInstance> list); |
|
24 |
|
|
25 |
@Mappings({ |
|
26 |
@Mapping(source = "activityId", target = "key"), |
|
27 |
@Mapping(source = "activityType", target = "type") |
|
28 |
}) |
|
29 |
BpmActivityRespVO convert(HistoricActivityInstance bean); |
|
30 |
} |