chenlong
5 months ago
8 changed files with 142 additions and 8 deletions
@ -0,0 +1,121 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.excel; |
||||
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import lombok.Data; |
||||
import org.springblade.system.cache.DictBizCache; |
||||
|
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
|
||||
|
||||
/** |
||||
* 车辆信息表 Excel实体类 |
||||
* |
||||
* @author lmy |
||||
* @since 2023-05-16 |
||||
*/ |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class BasicdataVehicleReadingFriendlyExcel extends BasicdataVehicleExcel implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
// // 车辆来源
|
||||
// getDictionaryBiz('basic_vehicle_source').then(res => handleData('车辆来源', res)),
|
||||
// // 是否车头
|
||||
// getDictionaryBiz('yes_no').then(res => handleData('是否车头', res)),
|
||||
// // 挂车类型
|
||||
// getDictionaryBiz('basic_trailer_type').then(res => handleData('挂车类型', res)),
|
||||
// // 车辆类型
|
||||
// getDictionaryBiz('basic_vehicle_model').then(res => handleData('车辆类型', res)),
|
||||
// // 车厢类型
|
||||
// getDictionaryBiz('basic_car_type').then(res => handleData('车厢类型', res)),
|
||||
// // 付款方式
|
||||
// getDictionaryBiz('basicdata_vehicle_paymentmethod').then(res => handleData('付款方式', res)),
|
||||
// // 车牌颜色
|
||||
// getDictionaryBiz('basic_plate_color').then(res => handleData('车牌颜色', res)),
|
||||
// // 车身颜色
|
||||
// getDictionaryBiz('basic_vehicle_color').then(res => handleData('车身颜色', res)),
|
||||
// // 能源类型
|
||||
// getDictionaryBiz('basic_energy_type').then(res => handleData('能源类型', res)),
|
||||
// // 车牌类型
|
||||
// getDictionaryBiz('basic_plate_type').then(res => handleData('车牌类型', res)),
|
||||
|
||||
|
||||
@Override |
||||
public String getVehicleSource() { |
||||
return DictBizCache.getValue("basic_vehicle_source", super.getVehicleSource()); |
||||
} |
||||
|
||||
@Override |
||||
public String getIsHead() { |
||||
return DictBizCache.getValue("yes_no", super.getIsHead()); |
||||
} |
||||
|
||||
@Override |
||||
public String getTrailerType() { |
||||
return DictBizCache.getValue("basic_trailer_type", super.getTrailerType()); |
||||
} |
||||
|
||||
@Override |
||||
public String getVehicleModel() { |
||||
return DictBizCache.getValue("basic_vehicle_model", super.getVehicleModel()); |
||||
} |
||||
|
||||
@Override |
||||
public String getCarType() { |
||||
return DictBizCache.getValue("basic_car_type", super.getCarType()); |
||||
} |
||||
|
||||
@Override |
||||
public String getPaymentMethod() { |
||||
return DictBizCache.getValue("basicdata_vehicle_paymentmethod", super.getPaymentMethod()); |
||||
} |
||||
|
||||
@Override |
||||
public String getLicensePlateColor() { |
||||
return DictBizCache.getValue("basic_plate_color", super.getLicensePlateColor()); |
||||
} |
||||
|
||||
@Override |
||||
public String getVehicleColor() { |
||||
return DictBizCache.getValue("basic_vehicle_color", super.getVehicleColor()); |
||||
} |
||||
|
||||
@Override |
||||
public String getEnergyType() { |
||||
return DictBizCache.getValue("basic_energy_type", super.getEnergyType()); |
||||
} |
||||
|
||||
@Override |
||||
public String getLicensePlateType() { |
||||
return DictBizCache.getValue("basic_plate_type", super.getLicensePlateType()); |
||||
} |
||||
|
||||
@Override |
||||
public String getWithGps() { |
||||
return DictBizCache.getValue("yes_no", super.getWithGps()); |
||||
} |
||||
} |
Loading…
Reference in new issue