From 8d15ad35de810f1cb441521f51ee86028ce65966 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Fri, 1 Jul 2022 18:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20=E5=8F=91=E8=A1=A8?= =?UTF-8?q?=E9=9C=80=E6=B1=82=E8=AF=84=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/activiti/service/ActHistoryService.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java index 766b274b..6aa66d84 100644 --- a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java +++ b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java @@ -4,6 +4,8 @@ import io.renren.common.constant.Constant; import io.renren.common.page.PageData; import io.renren.modules.activiti.dto.ProcessInstanceDTO; import io.renren.modules.activiti.dto.TaskDTO; +import io.renren.modules.demandComment.dto.TDemandCommentDTO; +import io.renren.modules.demandComment.service.TDemandCommentService; import io.renren.modules.processForm.dto.TAbilityApplicationDTO; import io.renren.modules.processForm.service.TAbilityApplicationService; import io.renren.modules.resource.dto.ResourceDTO; @@ -78,6 +80,9 @@ public class ActHistoryService { @Autowired private TAbilityApplicationService tAbilityApplicationService; + @Autowired + private TDemandCommentService tDemandCommentService; + @Autowired private ProcessEngine processEngine_; @@ -302,6 +307,12 @@ public class ActHistoryService { if (resourceDTO != null) { dto.setName(resourceDTO.getName()); dto.setResourceId(resourceDTO.getId().toString()); + } else { + TDemandCommentDTO tDemandCommentDTO = tDemandCommentService.get(Long.valueOf(dto.getBusinessKey())); + if (tDemandCommentDTO != null) { + dto.setName("发表需求评论"); + dto.setResourceId(tDemandCommentDTO.getId().toString()); + } } } }