Parcourir la source

员工号没有

tags/24080901
PoffyZhang il y a 1 an
Parent
révision
9e7d3eacfd
2 fichiers modifiés avec 29 ajouts et 0 suppressions
  1. +20
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/CpuManage.java
  2. +9
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java

+ 20
- 0
pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/CpuManage.java Voir le fichier

@@ -3,6 +3,11 @@ package com.ningdatech.pmapi.sys.manage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
* @Classname CpuManage
* @Description
@@ -17,6 +22,21 @@ public class CpuManage {

private int[][] matrix = new int[1][1];

private static ExecutorService executorService = null;

private static Integer THREAD_MAX = 10;

private static Integer THREAD_IDLE = 20;

private static Integer THREAD_CAPACITY = 30;

// static {
// executorService = new ThreadPoolExecutor(THREAD_MAX,THREAD_MAX,
// THREAD_IDLE, TimeUnit.SECONDS,
// new LinkedBlockingDeque<>(THREAD_CAPACITY),
// null,null);
// }

public void open(int i){
Double pow = Math.pow(10, i);
matrix = new int[pow.intValue()][pow.intValue()];


+ 9
- 0
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java Voir le fichier

@@ -808,6 +808,10 @@ public class TodoCenterManage {
// 获取登录用户浙政钉code
String employeeCode = userFullInfo.getEmployeeCode();

if(StringUtils.isBlank(employeeCode)){
return PageVo.empty();
}

// 查出项目库项目
ProjectListReq projectListReq = new ProjectListReq();
BeanUtils.copyProperties(param, projectListReq);
@@ -888,6 +892,11 @@ public class TodoCenterManage {

List<ProcessInstanceVo> userSubmittedList = Lists.newArrayList();
Map<String, Project> projectInfoMap = Maps.newHashMap();

if(StringUtils.isBlank(employeeCode)){
projects = Collections.emptyList();
}

if (CollUtil.isNotEmpty(projects)) {
Map<Long, Project> projectsMap = projects.stream().collect(Collectors.toMap(Project::getId, v -> v));
// 再查出项目关联的流程实例ID


Chargement…
Annuler
Enregistrer