|
@@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.jeeplus.common.utils.ResponseUtil;
|
|
|
import com.jeeplus.core.query.QueryWrapperGenerator;
|
|
|
+import com.jeeplus.flowable.service.FlowTaskService;
|
|
|
+import com.jeeplus.sys.utils.StringUtils;
|
|
|
import com.jeeplus.test.cw.contractRegistration.domain.ContractInfo;
|
|
|
import com.jeeplus.test.cw.contractRegistration.service.ContractInfoService;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -14,6 +16,7 @@ import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -28,6 +31,9 @@ public class ContractInfoController {
|
|
|
@Autowired
|
|
|
private ContractInfoService service;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private FlowTaskService flowTaskService;
|
|
|
+
|
|
|
/**
|
|
|
* 列表查询
|
|
|
* @param info
|
|
@@ -39,6 +45,20 @@ public class ContractInfoController {
|
|
|
public ResponseEntity<IPage<ContractInfo>> list(ContractInfo info, Page<ContractInfo> page) throws Exception {
|
|
|
QueryWrapper<ContractInfo> wrapper = QueryWrapperGenerator.buildQueryCondition(info, ContractInfo.class);
|
|
|
IPage<ContractInfo> list = service.list(page,info,wrapper);
|
|
|
+ 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())); // 获取数据审核人
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 纸质归档
|
|
|
+ if (StringUtils.isNotBlank(i.getFilePaperTaskId()) && StringUtils.isNotBlank(i.getFiledPaperType())) {
|
|
|
+ if ("2".equals(i.getFiledPaperType())) { // “审核中”的数据要获取数据审核人
|
|
|
+ i.setAuditUserIdsFP(flowTaskService.getTaskAuditUsers(i.getFilePaperTaskId())); // 获取数据审核人
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
return ResponseEntity.ok(list);
|
|
|
}
|
|
|
|