Commit 4ba206b8 authored by jiaorz's avatar jiaorz

后台导出车辆信息

parent 3464b064
package com.xxfc.platform.vehicle.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column;
import javax.persistence.Id;
......@@ -32,6 +34,10 @@ public class BranchCompanyVehicleCount {
* 统计日期
*/
@Column(name = "count_date")
@DateTimeFormat(pattern="yyyy-MM-dd")
@JsonFormat(
pattern = "yyyy-MM-dd"
)
private Date countDate;
......
......@@ -31,7 +31,6 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
}
public ObjectRestResponse<PageDataVO<BranchCompanyVehicleCount>> findAll(BranchCompanyVehicleCountDTO branchCompanyVehicleCountDTO) {
vehicleInformationDownloadBiz.add();
Integer pageNo = branchCompanyVehicleCountDTO.getPage() == null ? 1 : branchCompanyVehicleCountDTO.getPage();
Integer pageSize = branchCompanyVehicleCountDTO.getLimit() == null ? 10 : branchCompanyVehicleCountDTO.getLimit();
Integer type = branchCompanyVehicleCountDTO.getType() == null ? 1 : branchCompanyVehicleCountDTO.getType();
......
......@@ -17,14 +17,14 @@
(
CASE
WHEN #{type} = 1 THEN
vehicle_num / #{dayNum},
vehicle_num / #{dayNum}
WHEN #{type} = 2 THEN
vehicle_num / #{dayNum},
vehicle_num / #{dayNum}
WHEN #{type} = 3 THEN
vehicle_num / #{dayNum}
END
)
) AS count from branch_company_vehicle_count
) AS vehicleNum from branch_company_vehicle_count
<where>
<if test="companyName != null and companyName != ''">
and company_name like concat('%', #{companyName}, '%')
......
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