Commit d8041988 authored by jiaorz's avatar jiaorz

Merge branch 'master-vehicle-count-bug' into dev

parents ea98f444 545f48b2
...@@ -21,6 +21,7 @@ import org.springframework.scheduling.annotation.Scheduled; ...@@ -21,6 +21,7 @@ import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -124,16 +125,11 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo ...@@ -124,16 +125,11 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
public List<BranchCompanyVehicleCountVo> exportAllDate(BranchCompanyVehicleCountDTO branchCompanyVehicleCountDTO) { public List<BranchCompanyVehicleCountVo> exportAllDate(BranchCompanyVehicleCountDTO branchCompanyVehicleCountDTO) {
if (StringUtils.isBlank(branchCompanyVehicleCountDTO.getStartTime()) || StringUtils.isBlank(branchCompanyVehicleCountDTO.getEndTime())) {
branchCompanyVehicleCountDTO.setStartTime(DateTime.now().minusDays(1).toString(DATE_TIME_FORMATTER));
branchCompanyVehicleCountDTO.setEndTime(DateTime.now().minusDays(1).toString(DATE_TIME_FORMATTER));
}
Integer type = branchCompanyVehicleCountDTO.getType() == null ? 1 : branchCompanyVehicleCountDTO.getType(); Integer type = branchCompanyVehicleCountDTO.getType() == null ? 1 : branchCompanyVehicleCountDTO.getType();
Query query = new Query(branchCompanyVehicleCountDTO); Map<String, Object> param = new HashMap<>();
Map<String, Object> param = query.getSuper(); if (branchCompanyVehicleCountDTO.getCompanyId() != null) {
param.remove("page"); param.put("companyId", branchCompanyVehicleCountDTO.getCompanyId());
param.remove("limit"); }
log.info("导出车辆统计信息:{}", param);
if (type == 1) {//按天 if (type == 1) {//按天
return mapper.getAllCountInfo(param); return mapper.getAllCountInfo(param);
} }
......
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