|
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.jeeplus.core.query.QueryWrapperGenerator;
|
|
|
+import com.jeeplus.flowable.service.FlowTaskService;
|
|
|
import com.jeeplus.sys.domain.User;
|
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
|
import com.jeeplus.sys.utils.StringUtils;
|
|
@@ -32,6 +33,7 @@ import com.jeeplus.test.oss.domain.WorkAttachment;
|
|
|
import liquibase.pro.packaged.A;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -64,6 +66,9 @@ public class ReportCancellApplyService extends ServiceImpl<ReportCancellApplyMap
|
|
|
@Resource
|
|
|
private CwProjectReportMapper reportMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FlowTaskService flowTaskService;
|
|
|
+
|
|
|
/**
|
|
|
* 差选项目列表信息
|
|
|
* @param page
|
|
@@ -102,6 +107,14 @@ public class ReportCancellApplyService extends ServiceImpl<ReportCancellApplyMap
|
|
|
UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
|
List<String> manageOfficeIdList= Lists.newArrayList();
|
|
|
IPage<ReportInfoDto> list = applyMapper.getList(page, queryWrapper,officeIds.toString());
|
|
|
+ list.getRecords().stream().forEach(i -> {
|
|
|
+ // 复核
|
|
|
+ if (StringUtils.isNotBlank(i.getTaskId()) && StringUtils.isNotBlank(i.getStatus())) {
|
|
|
+ if ("2".equals(i.getStatus())) { // “审核中”的数据要获取数据审核人
|
|
|
+ i.setAuditUserIds(flowTaskService.getTaskAuditUsers(i.getTaskId())); // 获取数据审核人
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
return list;
|
|
|
}
|
|
|
|