|
@@ -5163,7 +5163,8 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
|
|
|
curItem.id = exeId;
|
|
|
curItem.userId = (String) map.get("user_id");
|
|
|
- curItem.text = (String) map.get("project_name")+"/"+(String)map.get("task_name");
|
|
|
+ String s = map.get("project_name") == null ? "请假" : (String) map.get("project_name");
|
|
|
+ curItem.text = s +"/"+(String)map.get("task_name");
|
|
|
curItem.start_date = start_date;
|
|
|
|
|
|
curItem.setTaskPlanType(map.get("taskPlanType")==null?null:(Integer)map.get("taskPlanType"));
|
|
@@ -5191,7 +5192,8 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
GanttDataItem parent = new GanttDataItem();
|
|
|
parent.id = projectId;
|
|
|
parent.userId = (String) map.get("user_id");
|
|
|
- parent.text = (String) map.get("project_name");
|
|
|
+ String s = map.get("project_name") == null ? "请假" : (String) map.get("project_name");
|
|
|
+ parent.text = s;
|
|
|
parent.render = "split";
|
|
|
parent.start_date = start_date;
|
|
|
parent.end_date = end_date;
|
|
@@ -13014,7 +13016,8 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
|
|
|
curItem.id = exeId;
|
|
|
curItem.userId = (String) map.get("user_id");
|
|
|
- curItem.text = (String) map.get("project_name")+"/"+(String)map.get("task_name");
|
|
|
+ String s = map.get("project_name") == null ? "请假" : (String) map.get("project_name");
|
|
|
+ curItem.text = s+"/"+(String)map.get("task_name");
|
|
|
curItem.start_date = start_date;
|
|
|
|
|
|
curItem.end_date = end_date;
|
|
@@ -13030,7 +13033,8 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
GanttDataItem parent = new GanttDataItem();
|
|
|
parent.id = projectId;
|
|
|
parent.userId = (String) map.get("user_id");
|
|
|
- parent.text = (String) map.get("project_name");
|
|
|
+ String s = map.get("project_name") == null ? "请假" : (String) map.get("project_name");
|
|
|
+ parent.text = s;
|
|
|
parent.render = "split";
|
|
|
parent.start_date = start_date;
|
|
|
parent.end_date = end_date;
|
|
@@ -13924,10 +13928,14 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
StringBuilder content= new StringBuilder();
|
|
|
double sum = gantExportVoList.stream().mapToDouble(GantExportVo::getTotalWorkHour).sum();
|
|
|
double remain = 7.5 - sum;
|
|
|
- content.append("共").append(sum).append("h(剩余工时)").append(remain).append("h\n");
|
|
|
+ content.append("共").append(sum).append("h(剩余工时").append(remain).append("h)\n");
|
|
|
|
|
|
for (GantExportVo exportVo : gantExportVoList) {
|
|
|
- content.append(exportVo.getProjectName()).append(" ").append(exportVo.getTotalWorkHour()).append("h\n");
|
|
|
+ String projectName = exportVo.getProjectName();
|
|
|
+ if (StringUtils.isEmpty(projectName)||projectName.equals("null")){
|
|
|
+ projectName="请假";
|
|
|
+ }
|
|
|
+ content.append(projectName).append(" ").append(exportVo.getTotalWorkHour()).append("h\n");
|
|
|
}
|
|
|
strings.add(content.toString());
|
|
|
|