|
@@ -15,8 +15,9 @@ import javax.persistence.criteria.Root;
|
|
|
import javax.persistence.criteria.Subquery;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
+import net.sf.json.JSONArray;
|
|
|
+
|
|
|
import org.activiti.engine.RuntimeService;
|
|
|
-import org.activiti.engine.task.Task;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.jpa.domain.Specification;
|
|
|
import org.springframework.stereotype.Controller;
|
|
@@ -78,8 +79,6 @@ import com.xtframe.sec.user.entity.UserEntity;
|
|
|
import com.xtframe.sec.utils.SecUtils;
|
|
|
import com.xtframe.util.StringUtils;
|
|
|
|
|
|
-import net.sf.json.JSONArray;
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @author liangzan
|
|
@@ -1197,20 +1196,12 @@ public class MainCtl extends BaseWebCtl {
|
|
|
if (list != null && list.size() > 0) {
|
|
|
for (Object id : list) {
|
|
|
if (id != null) {
|
|
|
- long time = new Date().getTime();
|
|
|
- System.out.println(time);
|
|
|
- Task task = dcsbService.getTaskByUserAndBusKey(userId, id.toString());
|
|
|
-// Task task1 = dcsbService.getCandidateTaskByUserAndBusKey(userId, id.toString(),"dcsb");
|
|
|
- long tempTime = new Date().getTime();
|
|
|
- System.out.println(tempTime-time);
|
|
|
- if (task !=null){
|
|
|
-// if ((dcsbService.getTaskByUserAndBusKey(userId, id.toString()) != null) || dcsbService.getCandidateTaskByUserAndBusKey(userId, id.toString()) != null) {
|
|
|
+ if ((dcsbService.getTaskByUserAndBusKey(userId, id.toString()) != null) || dcsbService.getCandidateTaskByUserAndBusKey(userId, id.toString()) != null) {
|
|
|
List<TaskInfoEntity> lists = taskInfoService.findByBusIdAndBusKeyAndRecordStatus(id.toString(), DcsbEntity.PROCESS_DEFINITION_KEY);
|
|
|
if (lists != null & lists.size() > 0) {
|
|
|
sum++;
|
|
|
}
|
|
|
}
|
|
|
- System.out.println(new Date().getTime()-tempTime);
|
|
|
}
|
|
|
}
|
|
|
}
|