Commit 07410a18 by 杨林龙

优化设备激活报表查询

1 parent 83e1a595
......@@ -97,9 +97,6 @@ public class DashboardService extends AbstractCommonService {
private List<DeviceActiveVO> fillIfNullByDate(Date dateBegin, Date dateEnd, List<DeviceActiveVO> list) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
List<DeviceActiveVO> retList = Lists.newArrayList();
if (null != list) {
retList.addAll(list);
}
Calendar ca = Calendar.getInstance();
DeviceActiveVO dm;
......@@ -107,6 +104,7 @@ public class DashboardService extends AbstractCommonService {
if (CollectionUtil.isNotEmpty(list)) {
for (int i = 0; i < list.size(); i++) {
if (sdf.format(dateBegin).equals(list.get(i).getActiveDate())) {
retList.add(list.get(i));
break;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!