|
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
import com.jeeplus.core.query.QueryWrapperGenerator;
|
|
import com.jeeplus.core.query.QueryWrapperGenerator;
|
|
|
|
+import com.jeeplus.flowable.service.FlowTaskService;
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
import com.jeeplus.sys.utils.StringUtils;
|
|
import com.jeeplus.sys.utils.StringUtils;
|
|
import com.jeeplus.sys.utils.UserUtils;
|
|
import com.jeeplus.sys.utils.UserUtils;
|
|
@@ -34,6 +35,7 @@ import com.jeeplus.test.workContract.service.dto.WorkAttachmentDto;
|
|
import liquibase.pro.packaged.A;
|
|
import liquibase.pro.packaged.A;
|
|
import org.flowable.editor.language.json.converter.util.CollectionUtils;
|
|
import org.flowable.editor.language.json.converter.util.CollectionUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
@@ -70,6 +72,9 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
@Resource
|
|
@Resource
|
|
private OssService ossService;
|
|
private OssService ossService;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private FlowTaskService flowTaskService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 差选项目列表信息
|
|
* 差选项目列表信息
|
|
*
|
|
*
|
|
@@ -110,6 +115,14 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
List<String> manageOfficeIdList= Lists.newArrayList();
|
|
List<String> manageOfficeIdList= Lists.newArrayList();
|
|
IPage<ArchivedReportInfoDto> list = applyMapper.getList(page, queryWrapper,officeIds.toString());
|
|
IPage<ArchivedReportInfoDto> list = applyMapper.getList(page, queryWrapper,officeIds.toString());
|
|
|
|
+ list.getRecords().stream().forEach(i -> {
|
|
|
|
+ // 报告作废归档
|
|
|
|
+ if (StringUtils.isNotBlank(i.getArchivedTaskId()) && StringUtils.isNotBlank(i.getApplyFileType())) {
|
|
|
|
+ if ("2".equals(i.getApplyFileType())) { // “审核中”的数据要获取数据审核人
|
|
|
|
+ i.setAuditUserIdsArchived(flowTaskService.getTaskAuditUsers(i.getArchivedTaskId())); // 获取数据审核人
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
return list;
|
|
return list;
|
|
}
|
|
}
|
|
|
|
|