update:整车型号导入接口添加字典翻译

This commit is contained in:
sunzheng
2024-10-15 17:10:18 +08:00
parent ff5f034818
commit e92f264edd
8 changed files with 95 additions and 43 deletions
@@ -49,6 +49,7 @@ public class ProcessVehicleDomesticReleaseController {
@AutoLog(value = "国内整车型号和VIN前八位管控流程-导入")
@ApiOperation(value="国内整车型号和VIN前八位管控流程-导入", notes="国内整车型号和VIN前八位管控流程-导入")
@PostMapping(value = "/importExcel")
@Translation
public Result<?> excelimport(HttpServletRequest request) {
return processVehicleDomesticReleaseService.importExcel(request);
}
@@ -181,7 +181,10 @@ public class ProcessVehicleDomesticReleaseServiceImpl extends ServiceImpl<Proces
}
}
}
return Result.OK(excelList.get(0));
Object o = excelList.get(0);
ProcessVehicleDomesticReleaseVo processVehicleDomesticReleaseVo = new ProcessVehicleDomesticReleaseVo();
BeanUtils.copyProperties(o, processVehicleDomesticReleaseVo);
return Result.OK(processVehicleDomesticReleaseVo);
}
@Override
@@ -68,11 +68,13 @@ public class ProcessVehicleDomesticReleaseVo {
private String state;
@ApiModelProperty(value = "车型代码")
@Excel(name = "车型代码", width = 20)
@Excel(name = "车型代码", width = 20, dicCode = "vm_vehicle_type_code")
@Dict(dicCode = "vm_vehicle_type_code")
private String vehicleTypeCode;
@ApiModelProperty(value = "动力类型")
@Excel(name = "动力类型", width = 20)
@Excel(name = "动力类型", width = 20, dicCode = "vm_power_type")
@Dict(dicCode = "vm_power_type")
private String powerType;
@ApiModelProperty(value = "车辆外廓尺寸(长*宽*高)")
@@ -88,35 +90,43 @@ public class ProcessVehicleDomesticReleaseVo {
private String vehicleQuality;
@ApiModelProperty(value = "驱动型式")
@Excel(name = "驱动型式", width = 20)
@Excel(name = "驱动型式", width = 20, dicCode = "vm_driving_type")
@Dict(dicCode = "vm_driving_type")
private String drivingType;
@ApiModelProperty(value = "车身形式")
@Excel(name = "车身形式", width = 20)
@Excel(name = "车身形式", width = 20, dicCode = "vm_body_type")
@Dict(dicCode = "vm_body_type")
private String bodyType;
@ApiModelProperty(value = "燃料类型")
@Excel(name = "燃料类型", width = 20)
@Excel(name = "燃料类型", width = 20, dicCode = "vm_fuel_type")
@Dict(dicCode = "vm_fuel_type")
private String fuelType;
@ApiModelProperty(value = "发动机型号")
@Excel(name = "发动机型号", width = 20)
@Excel(name = "发动机型号", width = 20, dicCode = "vm_engine_type")
@Dict(dicCode = "vm_engine_type")
private String engineType;
@ApiModelProperty(value = "变速器型式")
@Excel(name = "变速器型式", width = 20)
@Excel(name = "变速器型式", width = 20, dicCode = "vm_transmission_type")
@Dict(dicCode = "vm_transmission_type")
private String transmissionType;
@ApiModelProperty(value = "变速器型号")
@Excel(name = "变速器型号", width = 20)
@Excel(name = "变速器型号", width = 20, dicCode = "dvm_transmission_model")
@Dict(dicCode = "dvm_transmission_model")
private String transmissionModel;
@ApiModelProperty(value = "发动机排量(L)")
@Excel(name = "发动机排量(L)", width = 20)
@Excel(name = "发动机排量(L)", width = 20, dicCode = "vm_engine_capacity")
@Dict(dicCode = "vm_engine_capacity")
private String engineCapacity;
@ApiModelProperty(value = "驱动电机型号")
@Excel(name = "驱动电机型号", width = 20)
@Excel(name = "驱动电机型号", width = 20, dicCode = "vm_driveMotor_model")
@Dict(dicCode = "vm_driveMotor_model")
private String driveMotorModel;
@ApiModelProperty(value = "驱动电机峰值功率(kw)")
@@ -128,15 +138,18 @@ public class ProcessVehicleDomesticReleaseVo {
private String driveMotorRatedPower;
@ApiModelProperty(value = "驱动电机类型")
@Excel(name = "驱动电机类型", width = 20)
@Excel(name = "驱动电机类型", width = 20, dicCode = "dvm_drive_motor_type")
@Dict(dicCode = "dvm_drive_motor_type")
private String driveMotorType;
@ApiModelProperty(value = "动力电池型号")
@Excel(name = "动力电池型号", width = 20)
@Excel(name = "动力电池型号", width = 20, dicCode = "vm_power_battery_model")
@Dict(dicCode = "vm_power_battery_model")
private String powerBatteryModel;
@ApiModelProperty(value = "电池类型")
@Excel(name = "电池类型", width = 20)
@Excel(name = "电池类型", width = 20, dicCode = "vm_battery_type")
@Dict(dicCode = "vm_battery_type")
private String batteryType;
@ApiModelProperty(value = "混合方式")
@@ -158,19 +171,23 @@ public class ProcessVehicleDomesticReleaseVo {
private String driveMotorPlace;
@ApiModelProperty(value = "排放水平")
@Excel(name = "排放水平", width = 20)
@Excel(name = "排放水平", width = 20, dicCode = "dvm_emission_level")
@Dict(dicCode = "dvm_emission_level")
private String emissionLevel;
@ApiModelProperty(value = "油耗阶段")
@Excel(name = "油耗阶段", width = 20)
@Dict(dicCode = "id", dictTable = "laws_domestic_standard", dicText = "standard_number")
private String fuelConsumptionStage;
@ApiModelProperty(value = "前排正面气囊")
@Excel(name = "前排正面气囊", width = 20)
@Dict(dicCode = "vm_front_front_airbag")
@Excel(name = "前排正面气囊", width = 20, dicCode = "vm_front_front_airbag")
private String frontFrontAirbag;
@ApiModelProperty(value = "前排座椅侧气囊")
@Excel(name = "前排座椅侧气囊", width = 20)
@Excel(name = "前排座椅侧气囊", width = 20, dicCode = "vm_front_seat_side_airbags")
@Dict(dicCode = "vm_front_seat_side_airbags")
private String frontSeatSideAirbags;
@ApiModelProperty(value = "备注")
@@ -49,6 +49,7 @@ public class ProcessVehicleInternationalReleaseController {
@AutoLog(value = "国际整车型号和VIN前八位管控流程-导入")
@ApiOperation(value="国际整车型号和VIN前八位管控流程-导入", notes="国际整车型号和VIN前八位管控流程-导入")
@PostMapping(value = "/importExcel")
@Translation
public Result<?> excelimport(HttpServletRequest request) {
return processVehicleInternationalReleaseService.importExcel(request);
}
@@ -149,7 +149,10 @@ public class ProcessVehicleInternationalReleaseServiceImpl extends ServiceImpl<P
}
}
}
return Result.OK(excelList.get(0));
ProcessVehicleInternationalExcelVo processVehicleInternationalExcelVo = excelList.get(0);
ProcessVehicleInternationalReleaseVo processVehicleInternationalReleaseVo = new ProcessVehicleInternationalReleaseVo();
BeanUtils.copyProperties(processVehicleInternationalExcelVo, processVehicleInternationalReleaseVo);
return Result.OK(processVehicleInternationalReleaseVo);
}
@Override
@@ -25,7 +25,8 @@ public class ProcessVehicleInternationalReleaseVo {
private String vehicleModel;
@ApiModelProperty(value = "车辆型式")
@Excel(name = "车辆型式", width = 20)
@Excel(name = "车辆型式", width = 20, dicCode = "ivm_vehicle_type")
@Dict(dicCode = "ivm_vehicle_type")
private String vehicleType;
@ApiModelProperty(value = "变型(variant)")
@@ -74,47 +75,58 @@ public class ProcessVehicleInternationalReleaseVo {
private String state;
@ApiModelProperty(value = "车型代码")
@Excel(name = "车型代码", width = 20)
@Excel(name = "车型代码", width = 20, dicCode = "vm_vehicle_type_code")
@Dict(dicCode = "vm_vehicle_type_code")
private String vehicleTypeCode;
@ApiModelProperty(value = "动力类型")
@Excel(name = "动力类型", width = 20)
@Excel(name = "动力类型", width = 20, dicCode = "vm_power_type")
@Dict(dicCode = "vm_power_type")
private String powerType;
@ApiModelProperty(value = "发动机型号")
@Excel(name = "发动机型号", width = 20)
@Excel(name = "发动机型号", width = 20, dicCode = "vm_engine_type")
@Dict(dicCode = "vm_engine_type")
private String engineType;
@ApiModelProperty(value = "驱动电机型号")
@Excel(name = "驱动电机型号", width = 20)
@Excel(name = "驱动电机型号", width = 20, dicCode = "vm_driveMotor_model")
@Dict(dicCode = "vm_driveMotor_model")
private String driveMotorModel;
@ApiModelProperty(value = "动力电池型号")
@Excel(name = "动力电池型号", width = 20)
@Excel(name = "动力电池型号", width = 20, dicCode = "vm_power_battery_model")
@Dict(dicCode = "vm_power_battery_model")
private String powerBatteryModel;
@ApiModelProperty(value = "变速器型号")
@Excel(name = "变速器型号", width = 20)
@Excel(name = "变速器型号", width = 20, dicCode = "ivm_transmission_model")
@Dict(dicCode = "ivm_transmission_model")
private String transmissionModel;
@ApiModelProperty(value = "车身形式")
@Excel(name = "车身形式", width = 20)
@Excel(name = "车身形式", width = 20, dicCode = "vm_body_type")
@Dict(dicCode = "vm_body_type")
private String bodyType;
@ApiModelProperty(value = "驱动")
@Excel(name = "驱动", width = 20)
@ApiModelProperty(value = "驱动")
@Excel(name = "驱动", width = 20, dicCode = "vm_driving_type")
@Dict(dicCode = "vm_driving_type")
private String drivingType;
@ApiModelProperty(value = "驱动轴数量")
@Excel(name = "驱动轴数量", width = 20)
@Excel(name = "驱动轴数量", width = 20, dicCode = "ivm_driving_shafts_number")
@Dict(dicCode = "ivm_driving_shafts_number")
private String drivingShaftsNumber;
@ApiModelProperty(value = "转向型式")
@Excel(name = "转向型式", width = 20)
@Excel(name = "转向型式", width = 20, dicCode = "ivm_steering_type")
@Dict(dicCode = "ivm_steering_type")
private String steeringType;
@ApiModelProperty(value = "座位数量")
@Excel(name = "座位数量", width = 20)
@Excel(name = "座位数量", width = 20, dicCode = "ivm_seats_number")
@Dict(dicCode = "ivm_seats_number")
private String seatsNumber;
@ApiModelProperty(value = "技术允许最大满载质量(Kg)")
@@ -126,15 +138,18 @@ public class ProcessVehicleInternationalReleaseVo {
private String carOutSize;
@ApiModelProperty(value = "发动机工作原理")
@Excel(name = "发动机工作原理", width = 20)
@Excel(name = "发动机工作原理", width = 20, dicCode = "ivm_engine_working_principle")
@Dict(dicCode = "ivm_engine_working_principle")
private String engineWorkingPrinciple;
@ApiModelProperty(value = "燃料类型")
@Excel(name = "燃料类型", width = 20)
@Excel(name = "燃料类型", width = 20, dicCode = "vm_fuel_type")
@Dict(dicCode = "vm_fuel_type")
private String fuelType;
@ApiModelProperty(value = "发动机排量(L)")
@Excel(name = "发动机排量(L)", width = 20)
@Excel(name = "发动机排量(L)", width = 20, dicCode = "vm_engine_capacity")
@Dict(dicCode = "vm_engine_capacity")
private String engineCapacity;
@ApiModelProperty(value = "额定转速(rpm)")
@@ -150,7 +165,8 @@ public class ProcessVehicleInternationalReleaseVo {
private String driveMotorPeakPower;
@ApiModelProperty(value = "排放水平")
@Excel(name = "排放水平", width = 20)
@Excel(name = "排放水平", width = 20, dicCode = "dvm_emission_level")
@Dict(dicCode = "dvm_emission_level")
private String emissionLevel;
@ApiModelProperty(value = "能耗(L/100km or kwh/100km)")
@@ -158,35 +174,43 @@ public class ProcessVehicleInternationalReleaseVo {
private String energyConsumption;
@ApiModelProperty(value = "储能装置种类")
@Excel(name = "储能装置种类", width = 20)
@Excel(name = "储能装置种类", width = 20, dicCode = "vm_battery_type")
@Dict(dicCode = "vm_battery_type")
private String energyStorageDevices;
@ApiModelProperty(value = "变速器型式")
@Excel(name = "变速器型式", width = 20)
@Excel(name = "变速器型式", width = 20, dicCode = "vm_transmission_type")
@Dict(dicCode = "vm_transmission_type")
private String transmissionType;
@ApiModelProperty(value = "变速器档位数")
@Excel(name = "变速器档位数", width = 20)
@Excel(name = "变速器档位数", width = 20, dicCode = "ivm_transmission_gear_number")
@Dict(dicCode = "ivm_transmission_gear_number")
private String transmissionGearNumber;
@ApiModelProperty(value = "变速器是否带手动模式")
@Excel(name = "变速器是否带手动模式", width = 20)
@Excel(name = "变速器是否带手动模式", width = 20, dicCode = "yn")
@Dict(dicCode = "yn")
private String transmissionIsHasManual;
@ApiModelProperty(value = "前排正面气囊")
@Excel(name = "前排正面气囊", width = 20)
@Excel(name = "前排正面气囊", width = 20, dicCode = "vm_front_front_airbag")
@Dict(dicCode = "vm_front_front_airbag")
private String frontFrontAirbag;
@ApiModelProperty(value = "前排座椅侧气囊")
@Excel(name = "前排座椅侧气囊", width = 20)
@Excel(name = "前排座椅侧气囊", width = 20, dicCode = "vm_front_seat_side_airbags")
@Dict(dicCode = "vm_front_seat_side_airbags")
private String frontSeatSideAirbags;
@ApiModelProperty(value = "销售区域")
@Excel(name = "销售区域", width = 20)
@Excel(name = "销售区域", width = 20, dicCode = "ivm_sales_area")
@Dict(dicCode = "ivm_sales_area")
private String salesArea;
@ApiModelProperty(value = "品牌")
@Excel(name = "品牌", width = 20)
@Excel(name = "品牌", width = 20, dicCode = "ivm_brand")
@Dict(dicCode = "ivm_brand")
private String brand;
@ApiModelProperty(value = "备注")
@@ -199,6 +199,7 @@ public class LawsVehicleDomesticLibraryServiceImpl extends ServiceImpl<LawsVehic
}
}
lambdaQueryWrapper.eq(LawsVehicleDomesticLibrary::getIsFinish, Constant.IS_FINISH); // 只展示走完流程的数据
lambdaQueryWrapper.orderByDesc(LawsVehicleDomesticLibrary::getCreateTime);
return lambdaQueryWrapper;
}
@@ -14,6 +14,7 @@ import com.jero.common.util.oConvertUtils;
import com.jero.modules.activiti.process.vehicleinterntional.entity.ProcessVehicleInternationalRelease;
import com.jero.modules.activiti.process.vehicleinterntional.vo.ProcessVehicleInternationalReleaseVo;
import com.jero.modules.laws.businessSupport.common.Constant;
import com.jero.modules.laws.businessSupport.entity.LawsVehicleDomesticLibrary;
import com.jero.modules.laws.businessSupport.entity.LawsVehicleInternationalLibrary;
import com.jero.modules.laws.businessSupport.entity.LawsVehicleInternationalLibrarySublist;
import com.jero.modules.laws.businessSupport.mapper.LawsVehicleInternationalLibraryMapper;
@@ -203,6 +204,7 @@ public class LawsVehicleInternationalLibraryServiceImpl extends ServiceImpl<Laws
}
}
lambdaQueryWrapper.eq(LawsVehicleInternationalLibrary::getIsFinish, Constant.IS_FINISH); // 只展示走完流程的数据
lambdaQueryWrapper.orderByDesc(LawsVehicleInternationalLibrary::getCreateTime);
return lambdaQueryWrapper;
}
}