Commit c628f1d6 by huluobin

update

parent 7ed62c6a
...@@ -95,16 +95,10 @@ public abstract class AbstractCostService implements CostService { ...@@ -95,16 +95,10 @@ public abstract class AbstractCostService implements CostService {
if (!StringUtils.isEmpty(projectTypes)) { if (!StringUtils.isEmpty(projectTypes)) {
projectTypeList = Lists.newArrayList(projectTypes.split(",")).stream().filter(str -> !StringUtils.isEmpty(str)).collect(Collectors.toList()); projectTypeList = Lists.newArrayList(projectTypes.split(",")).stream().filter(str -> !StringUtils.isEmpty(str)).collect(Collectors.toList());
} }
long time = System.currentTimeMillis();
System.out.println(System.currentTimeMillis() - time);
time = System.currentTimeMillis();
List<CostDomain> costDomains = costDao.selectAll(userId, projectTypeList); List<CostDomain> costDomains = costDao.selectAll(userId, projectTypeList);
System.out.println(System.currentTimeMillis() - time);
time = System.currentTimeMillis();
this.setPrimaryDepartment(costDomains); this.setPrimaryDepartment(costDomains);
System.out.println(System.currentTimeMillis() - time);
CostPageResult result = new CostPageResult(); CostPageResult result = new CostPageResult();
result.setCosts(costDomains.stream().map(CostDomain::castToDto).collect(Collectors.toList())); result.setCosts(costDomains.stream().map(CostDomain::castToDto).collect(Collectors.toList()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment