|
@@ -25,11 +25,9 @@ import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDate;
|
|
-import java.util.HashSet;
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.Objects;
|
|
|
|
-import java.util.Set;
|
|
|
|
|
|
+import java.util.*;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
import static com.wtkj.config.MagicValue.*;
|
|
import static com.wtkj.config.MagicValue.*;
|
|
@@ -329,4 +327,19 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectMapper, Project>
|
|
return removeByIds(projectIds);
|
|
return removeByIds(projectIds);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public Map bigDataCount() {
|
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
+ Map map = new HashMap<>();
|
|
|
|
+ LambdaQueryWrapper<Project> lqw = new LambdaQueryWrapper<>();
|
|
|
|
+ map.put("projectCount",baseMapper.selectCount(lqw));//项目总数
|
|
|
|
+ lqw.like(Project::getCreateTime, sdf.format(new Date()));
|
|
|
|
+ map.put("todayAddProjectCount",baseMapper.selectCount(lqw));//今日新增项目数
|
|
|
|
+ LambdaQueryWrapper<Task> tlqw = new LambdaQueryWrapper<>();
|
|
|
|
+ map.put("taskCount",taskService.count(tlqw));//任务总数
|
|
|
|
+ tlqw.like(Task::getCreateTime,sdf.format(new Date()));
|
|
|
|
+ map.put("todayAddTaskCount",taskService.count(tlqw));//今日完成项目总数
|
|
|
|
+ return map;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|