统一接口实现
This commit is contained in:
parent
439f1d9da2
commit
2f0a51b5c8
|
@ -29,7 +29,7 @@ public class DashboardProjectService {
|
||||||
List<MonthProjectVO> result = new ArrayList<>();
|
List<MonthProjectVO> result = new ArrayList<>();
|
||||||
|
|
||||||
// 查询每月新增的项目数
|
// 查询每月新增的项目数
|
||||||
List<IntegerIntegerVO> startList = this.selectCoungGroupByStartMonth(query);
|
List<IntegerIntegerVO> startList = this.selectCountGroupByStartMonth(query);
|
||||||
|
|
||||||
// 查询每月完成的项目数
|
// 查询每月完成的项目数
|
||||||
List<IntegerIntegerVO> finishList = this.selectCountGroupByCompleteMonth(query);
|
List<IntegerIntegerVO> finishList = this.selectCountGroupByCompleteMonth(query);
|
||||||
|
@ -112,13 +112,6 @@ public class DashboardProjectService {
|
||||||
return projectService.selectCount(query);
|
return projectService.selectCount(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 按月查询新增项目数
|
|
||||||
public List<IntegerIntegerVO> selectCountGroupByCreateMonth(MonthProjectQuery query) {
|
|
||||||
ProjectQuery projectQuery = new ProjectQuery();
|
|
||||||
projectQuery.setCreateYear(query.getYear());
|
|
||||||
return projectService.selectCountGroupByCreateMonth(projectQuery);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 按月查询完成项目数
|
// 按月查询完成项目数
|
||||||
public List<IntegerIntegerVO> selectCountGroupByCompleteMonth(MonthProjectQuery query) {
|
public List<IntegerIntegerVO> selectCountGroupByCompleteMonth(MonthProjectQuery query) {
|
||||||
ProjectQuery projectQuery = new ProjectQuery();
|
ProjectQuery projectQuery = new ProjectQuery();
|
||||||
|
@ -128,7 +121,7 @@ public class DashboardProjectService {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 按月查询开始项目数
|
// 按月查询开始项目数
|
||||||
public List<IntegerIntegerVO> selectCoungGroupByStartMonth(MonthProjectQuery query) {
|
public List<IntegerIntegerVO> selectCountGroupByStartMonth(MonthProjectQuery query) {
|
||||||
ProjectQuery projectQuery = new ProjectQuery();
|
ProjectQuery projectQuery = new ProjectQuery();
|
||||||
projectQuery.setStartYear(query.getYear());
|
projectQuery.setStartYear(query.getYear());
|
||||||
projectQuery.setScope(query.getScope());
|
projectQuery.setScope(query.getScope());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user