Commit 293bf7af authored by jiaorz's avatar jiaorz

Merge branch 'master-vehicle-bg' into base-modify

parents 6a03707b 1104ac65
...@@ -8,6 +8,7 @@ import com.xxfc.platform.vehicle.entity.BranchCompanyVehicleCount; ...@@ -8,6 +8,7 @@ import com.xxfc.platform.vehicle.entity.BranchCompanyVehicleCount;
import com.xxfc.platform.vehicle.mapper.BranchCompanyVehicleCountMapper; import com.xxfc.platform.vehicle.mapper.BranchCompanyVehicleCountMapper;
import com.xxfc.platform.vehicle.pojo.dto.BranchCompanyVehicleCountDTO; import com.xxfc.platform.vehicle.pojo.dto.BranchCompanyVehicleCountDTO;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Iterator; import java.util.Iterator;
...@@ -16,7 +17,8 @@ import java.util.List; ...@@ -16,7 +17,8 @@ import java.util.List;
@Service @Service
@Slf4j @Slf4j
public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCountMapper, BranchCompanyVehicleCount> { public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCountMapper, BranchCompanyVehicleCount> {
@Autowired
VehicleInformationDownloadBiz vehicleInformationDownloadBiz;
public ObjectRestResponse add(List<BranchCompanyVehicleCount> branchCompanyVehicleCounts) { public ObjectRestResponse add(List<BranchCompanyVehicleCount> branchCompanyVehicleCounts) {
if (branchCompanyVehicleCounts == null) { if (branchCompanyVehicleCounts == null) {
return ObjectRestResponse.paramIsEmpty(); return ObjectRestResponse.paramIsEmpty();
...@@ -34,6 +36,7 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo ...@@ -34,6 +36,7 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
} }
public ObjectRestResponse<PageDataVO<BranchCompanyVehicleCount>> findAll(BranchCompanyVehicleCountDTO branchCompanyVehicleCountDTO) { public ObjectRestResponse<PageDataVO<BranchCompanyVehicleCount>> findAll(BranchCompanyVehicleCountDTO branchCompanyVehicleCountDTO) {
vehicleInformationDownloadBiz.add();
Integer pageNo = branchCompanyVehicleCountDTO.getPage() == null ? 1 : branchCompanyVehicleCountDTO.getPage(); Integer pageNo = branchCompanyVehicleCountDTO.getPage() == null ? 1 : branchCompanyVehicleCountDTO.getPage();
Integer pageSize = branchCompanyVehicleCountDTO.getLimit() == null ? 10 : branchCompanyVehicleCountDTO.getLimit(); Integer pageSize = branchCompanyVehicleCountDTO.getLimit() == null ? 10 : branchCompanyVehicleCountDTO.getLimit();
branchCompanyVehicleCountDTO.setPage(pageNo); branchCompanyVehicleCountDTO.setPage(pageNo);
......
...@@ -103,7 +103,6 @@ public class VehicleInformationDownloadBiz extends BaseBiz<VehicleMapper, Vehicl ...@@ -103,7 +103,6 @@ public class VehicleInformationDownloadBiz extends BaseBiz<VehicleMapper, Vehicl
} }
public List<BranchCompanyVehicleCountVo> getAllVehicleInfo() { public List<BranchCompanyVehicleCountVo> getAllVehicleInfo() {
add();
return vehicleBiz.getAllVehicleInfo(); return vehicleBiz.getAllVehicleInfo();
} }
......
...@@ -84,7 +84,6 @@ public class VehicleInformationDownloadController extends BaseController<Vehicle ...@@ -84,7 +84,6 @@ public class VehicleInformationDownloadController extends BaseController<Vehicle
} }
List<BranchCompanyVehicleCount> rows = pageDataVO.getData(); List<BranchCompanyVehicleCount> rows = pageDataVO.getData();
ExcelWriter writer = ExcelUtil.getWriter(true); ExcelWriter writer = ExcelUtil.getWriter(true);
writer.merge(2,"导出车辆数据");
writer.addHeaderAlias("countDate", "日期"); writer.addHeaderAlias("countDate", "日期");
writer.addHeaderAlias("companyName", "停靠分公司"); writer.addHeaderAlias("companyName", "停靠分公司");
writer.addHeaderAlias("vehicleNum", "车辆数量"); writer.addHeaderAlias("vehicleNum", "车辆数量");
......
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