class ProcessInstanceHistoryServiceImpl extends ServiceImpl<OaProcessInstanceHistoryMapper, OaProcessInstanceHistory>
        implements ProcessInstanceHistoryService, DataProxy<OaProcessInstanceHistory> {

    @Autowired
    private EruptContextService eruptContextService;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public OaProcessInstanceHistory copyAndSave(OaProcessInstance procInst) {
        OaProcessInstanceHistory oaProcessInstanceHistory = new OaProcessInstanceHistory();
        BeanUtils.copyProperties(procInst, oaProcessInstanceHistory);//拷贝全部属性
        super.saveOrUpdate(oaProcessInstanceHistory);
        return oaProcessInstanceHistory;
    }

    @Override
    public void afterFetch(Collection<Map<String, Object>> list) {<FILL_FUNCTION_BODY>}
}

        String currentToken = eruptContextService.getCurrentToken();
        list.forEach(m -> {
            //拼接详情链接
            m.put("detailLink", FlowConstant.SERVER_NAME+"/index.html#/detail/"+ m.get("id") +"/null/_/view?_token="+currentToken);
        });
    
<no_super_class>