|
@@ -4796,7 +4796,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public HttpRespMsg getGanttData(Integer type, String startDate, String endDate, String targetUserId, Integer targetProjectId, String groupName,Integer taskType,HttpServletRequest request) {
|
|
|
|
|
|
+ public HttpRespMsg getGanttData(Integer type, String startDate, String endDate, String targetUserId, Integer targetProjectId, String groupName,Integer taskType,Integer deptId,Integer taskStatus,HttpServletRequest request) {
|
|
//根据人员权限来获取,
|
|
//根据人员权限来获取,
|
|
String token = request.getHeader("TOKEN");
|
|
String token = request.getHeader("TOKEN");
|
|
User user = userMapper.selectById(token);
|
|
User user = userMapper.selectById(token);
|
|
@@ -4861,7 +4861,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
String lsLastItemId = null;
|
|
String lsLastItemId = null;
|
|
String btLastItemId = null;
|
|
String btLastItemId = null;
|
|
//按人员获取
|
|
//按人员获取
|
|
- ganttData = projectMapper.getTaskPlanByMemb(userIds, startDate + " 00:00:00" ,endDate + " 23:59:59", user.getCompanyId(),user.getId());
|
|
|
|
|
|
+ ganttData = projectMapper.getTaskPlanByMemb(userIds, startDate + " 00:00:00" ,endDate + " 23:59:59", user.getCompanyId(),user.getId(),deptId,taskStatus);
|
|
QueryWrapper<BusinessTrip> btQueryWrapper =new QueryWrapper<>();
|
|
QueryWrapper<BusinessTrip> btQueryWrapper =new QueryWrapper<>();
|
|
btQueryWrapper.in("owner_id", userIds);
|
|
btQueryWrapper.in("owner_id", userIds);
|
|
if (startDate != null && endDate != null) {
|
|
if (startDate != null && endDate != null) {
|
|
@@ -5153,6 +5153,13 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
}
|
|
}
|
|
|
|
|
|
msg.data = itemList;
|
|
msg.data = itemList;
|
|
|
|
+ if (type==0){
|
|
|
|
+ for (GanttDataItem dataItem : itemList) {
|
|
|
|
+ if (!dataItem.getId().contains("任务_")){
|
|
|
|
+ dataItem.setColor("#e0e0e0");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return msg;
|
|
return msg;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -12632,7 +12639,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
String lsLastItemId = null;
|
|
String lsLastItemId = null;
|
|
String btLastItemId = null;
|
|
String btLastItemId = null;
|
|
//按人员获取
|
|
//按人员获取
|
|
- ganttData = projectMapper.getTaskPlanByMemb(userIds, startDate ,endDate, user.getCompanyId(),user.getId());
|
|
|
|
|
|
+ ganttData = projectMapper.getTaskPlanByMemb(userIds, startDate ,endDate, user.getCompanyId(),user.getId(),null,null);
|
|
QueryWrapper<LeaveSheet> lsQueryWrapper=new QueryWrapper();
|
|
QueryWrapper<LeaveSheet> lsQueryWrapper=new QueryWrapper();
|
|
lsQueryWrapper.in("owner_id", userIds);
|
|
lsQueryWrapper.in("owner_id", userIds);
|
|
if (startDate != null && endDate != null) {
|
|
if (startDate != null && endDate != null) {
|