|
@@ -6,6 +6,24 @@
|
|
|
package com.minto.app.task.controller;
|
|
|
|
|
|
|
|
|
+import java.io.*;
|
|
|
+import java.net.URLDecoder;
|
|
|
+import java.net.URLEncoder;
|
|
|
+import java.sql.SQLException;
|
|
|
+import java.text.ParseException;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
+import java.util.*;
|
|
|
+import java.util.Map.Entry;
|
|
|
+import java.util.concurrent.TimeUnit;
|
|
|
+import java.util.regex.Matcher;
|
|
|
+import java.util.regex.Pattern;
|
|
|
+import java.util.stream.Collectors;
|
|
|
+import java.util.stream.Stream;
|
|
|
+import javax.servlet.ServletOutputStream;
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import javax.validation.Valid;
|
|
|
+
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.google.common.collect.Maps;
|
|
@@ -142,24 +160,6 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
-import javax.servlet.ServletOutputStream;
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-import javax.validation.Valid;
|
|
|
-import java.io.*;
|
|
|
-import java.net.URLDecoder;
|
|
|
-import java.net.URLEncoder;
|
|
|
-import java.sql.SQLException;
|
|
|
-import java.text.ParseException;
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
-import java.util.*;
|
|
|
-import java.util.Map.Entry;
|
|
|
-import java.util.concurrent.TimeUnit;
|
|
|
-import java.util.regex.Matcher;
|
|
|
-import java.util.regex.Pattern;
|
|
|
-import java.util.stream.Collectors;
|
|
|
-import java.util.stream.Stream;
|
|
|
-
|
|
|
import static java.util.Comparator.comparing;
|
|
|
import static java.util.stream.Collectors.toList;
|
|
|
|
|
@@ -19804,4 +19804,39 @@ public class TaskByTypeController extends BaseController{
|
|
|
return model;
|
|
|
}
|
|
|
|
|
|
+ @ResponseBody
|
|
|
+ @GetMapping(value = "/tasks/list",params ={"m=TypeSetting"})
|
|
|
+ public List<TaskSummaryBean> findTaskSummaryListByTypeSetting(HttpServletRequest request){
|
|
|
+ Long tipEnumId = ReqUtil.getLong(request, "tipEnumId");
|
|
|
+ Integer year = ReqUtil.getInt(request, "year",DateUtil.getYear());
|
|
|
+ if(tipEnumId==null || year == null){
|
|
|
+ return new ArrayList<>();
|
|
|
+ }
|
|
|
+ Map<String, Object> param = new HashMap<>();
|
|
|
+ param.put("tipEnumId",tipEnumId);
|
|
|
+ param.put("year",year);
|
|
|
+ //获取任务Id集合
|
|
|
+ List<Long> ids = taskAnalysisManager.findTaskSummaryIdsByTypeSettingEnumId(param);
|
|
|
+ if(CollectionUtil.isEmpty(ids)){
|
|
|
+ return new ArrayList<>();
|
|
|
+ }
|
|
|
+ return taskManager.findTaskSummaryBeans(ids.toArray(new Long[0]));
|
|
|
+
|
|
|
+ //获取完整任务信息
|
|
|
+ //Map<String,Object> parmasMap = new HashMap<>();
|
|
|
+ //parmasMap.put("listType",TaskEnum.TaskSummaryListBusinessEnum.AllTask.getKey());
|
|
|
+ //parmasMap.put("id", ids);
|
|
|
+ //parmasMap.put("orgAccountId",AppContext.currentLoginAccount());
|
|
|
+ //List<Long> typeIds = Lists.newArrayList(0L);
|
|
|
+ //List<Long> temps = taskByTypeManager.findTaskTypesByParentIdAndSubType(0L,
|
|
|
+ // TaskEnum.TaskTypeSub.Category.getKey());
|
|
|
+ //if(CollectionUtil.isNotEmpty(temps)){
|
|
|
+ // typeIds.addAll(temps);
|
|
|
+ //}
|
|
|
+ //Long[] taskType = new Long[typeIds.size()];
|
|
|
+ //Long[] longs = typeIds.toArray(taskType);
|
|
|
+ //parmasMap.put("taskType", new ArrayList<>());
|
|
|
+ //return taskListManager.findTaskInfo4List(parmasMap);
|
|
|
+
|
|
|
+ }
|
|
|
}
|