|
@@ -40,7 +40,6 @@ import java.time.format.DateTimeFormatter;
|
|
|
import java.time.format.DateTimeParseException;
|
|
|
import java.time.temporal.ChronoUnit;
|
|
|
import java.util.*;
|
|
|
-import java.util.concurrent.CopyOnWriteArrayList;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
@@ -2502,7 +2501,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
sheet.createFreezePane(0,1);
|
|
|
List<String> titles = new ArrayList<String>();
|
|
|
titles.addAll(Arrays.asList(new String[]{
|
|
|
- "序号","员工","所在部门","项目名称","子项目名称"
|
|
|
+ "序号","员工","所在部门","项目名称","项目分类","子项目名称"
|
|
|
}));
|
|
|
|
|
|
//项目管理专业版以上,包括任务
|
|
@@ -2662,10 +2661,11 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
row.createCell(1).setCellValue((String) map.get("name"));
|
|
|
row.createCell(2).setCellValue((String) map.get("departmentName"));
|
|
|
row.createCell(3).setCellValue((String) map.get("project"));
|
|
|
- row.createCell(4).setCellValue((String) map.get("subProjectName"));
|
|
|
- int index = 5;
|
|
|
+ row.createCell(4).setCellValue((String) map.get("categoryName"));
|
|
|
+ row.createCell(5).setCellValue((String) map.get("subProjectName"));
|
|
|
+ int index = 6;
|
|
|
if (company.getPackageProject() == 1) {
|
|
|
- row.createCell(5).setCellValue((String) map.get("taskName"));
|
|
|
+ row.createCell(6).setCellValue((String) map.get("taskName"));
|
|
|
index++;
|
|
|
}
|
|
|
HSSFCell cell = row.createCell(index);
|
|
@@ -2947,7 +2947,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
if (!list.stream().anyMatch(item->item.get("id").equals(curUser.getId())&&sdf.format((java.sql.Date)item.get("createDate")).equals(dateStr))) {
|
|
|
UserDailyWorkItem noRecord = new UserDailyWorkItem();
|
|
|
noRecord.userId = curUser.getId();
|
|
|
- List<Map> userCorpwxListOn = userCorpwxTimeMapList.stream().filter(mapList -> sdf.format((java.sql.Date)mapList.get("create_date")).equals(dateStr)
|
|
|
+ List<Map> userCorpwxListOn = userCorpwxTimeMapList.stream().filter(mapList -> mapList.get("create_date").toString().equals(dateStr)
|
|
|
&& mapList.get("corpwx_userid").equals(curUser.getCorpwxUserid())).collect(Collectors.toList());
|
|
|
if(!userCorpwxListOn.isEmpty()){
|
|
|
noRecord.createDate = dtf.format(date)+"/请假";
|