|
|
|
@ -260,6 +260,10 @@ public class PoundlistController {
|
|
|
|
|
List<PoundlistEntity> list= poundlistService.getTypeList(poundlistPagination,poundlistPaginationExportModel.getDataType());
|
|
|
|
|
//处理id字段转名称,若无需转或者为空可删除
|
|
|
|
|
for(PoundlistEntity entity:list){
|
|
|
|
|
VehicleEntity vehicleEntity = vehicleService.getById(entity.getVehicleId());
|
|
|
|
|
if (ObjectUtils.isNotEmpty(vehicleEntity)){
|
|
|
|
|
entity.setVehicleName(vehicleEntity.getTicketno());
|
|
|
|
|
}
|
|
|
|
|
entity.setPoundPictures(generaterSwapUtil.getFileNameInJson(entity.getPoundPictures()));
|
|
|
|
|
entity.setVehiclePictures(generaterSwapUtil.getFileNameInJson(entity.getVehiclePictures()));
|
|
|
|
|
entity.setAdvance("0".equals(entity.getAdvance()) ? "否" : "是");
|
|
|
|
@ -316,111 +320,105 @@ public class PoundlistController {
|
|
|
|
|
if(keys.length>0){
|
|
|
|
|
for(String key:keys){
|
|
|
|
|
switch(key){
|
|
|
|
|
case "poundPictures" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("磅单图片" ,"poundPictures"));
|
|
|
|
|
break;
|
|
|
|
|
case "materialName" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("物料名称" ,"materialName"));
|
|
|
|
|
break;
|
|
|
|
|
case "customerName" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("客户名称" ,"customerName"));
|
|
|
|
|
break;
|
|
|
|
|
case "salesName" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("销售合同" ,"salesName"));
|
|
|
|
|
break;
|
|
|
|
|
case "vehicleName" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("车牌号" ,"vehicleName"));
|
|
|
|
|
break;
|
|
|
|
|
case "vehiclePictures" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("车辆图片" ,"vehiclePictures"));
|
|
|
|
|
break;
|
|
|
|
|
case "poundDate" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("磅单日期" ,"poundDate"));
|
|
|
|
|
break;
|
|
|
|
|
case "poundlistNo" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("磅单号" ,"poundlistNo"));
|
|
|
|
|
break;
|
|
|
|
|
case "tareWeight" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("皮重" ,"tareWeight"));
|
|
|
|
|
break;
|
|
|
|
|
case "grossWeight" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("毛重" ,"grossWeight"));
|
|
|
|
|
break;
|
|
|
|
|
case "buckleWeight" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("扣重" ,"buckleWeight"));
|
|
|
|
|
break;
|
|
|
|
|
case "netWeight" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("净重" ,"netWeight"));
|
|
|
|
|
break;
|
|
|
|
|
case "unit" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("单位" ,"unit"));
|
|
|
|
|
break;
|
|
|
|
|
case "transportType" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("运输类型" ,"transportType"));
|
|
|
|
|
break;
|
|
|
|
|
case "advance" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("是否垫资" ,"advance"));
|
|
|
|
|
break;
|
|
|
|
|
case "collectPrice" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("收货价格" ,"collectPrice"));
|
|
|
|
|
break;
|
|
|
|
|
case "salesPrice" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("销售价格" ,"salesPrice"));
|
|
|
|
|
break;
|
|
|
|
|
case "businessName" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("业务员" ,"businessName"));
|
|
|
|
|
break;
|
|
|
|
|
case "naturalId" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("自然人" ,"naturalId"));
|
|
|
|
|
break;
|
|
|
|
|
case "purchaseName" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("采购合同" ,"purchaseName"));
|
|
|
|
|
break;
|
|
|
|
|
case "supplierName" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("供应商名称" ,"supplierName"));
|
|
|
|
|
break;
|
|
|
|
|
case "settlement" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("结算重量" ,"settlement"));
|
|
|
|
|
break;
|
|
|
|
|
case "purchasePrice" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("采购单价" ,"purchasePrice"));
|
|
|
|
|
break;
|
|
|
|
|
case "inputDate" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("进项票日期" ,"inputDate"));
|
|
|
|
|
break;
|
|
|
|
|
case "outputDate" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("销项票日期" ,"outputDate"));
|
|
|
|
|
break;
|
|
|
|
|
case "payDate" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("付款日期" ,"payDate"));
|
|
|
|
|
break;
|
|
|
|
|
case "paymentDate" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("回款日期" ,"paymentDate"));
|
|
|
|
|
break;
|
|
|
|
|
case "remark" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("备注" ,"remark"));
|
|
|
|
|
break;
|
|
|
|
|
case "purchaseStatus" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("采购状态" ,"purchaseStatus"));
|
|
|
|
|
break;
|
|
|
|
|
case "salesStatus" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("销售状态" ,"salesStatus"));
|
|
|
|
|
break;
|
|
|
|
|
case "creatorTime" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("创建日期" ,"creatorTime"));
|
|
|
|
|
break;
|
|
|
|
|
case "isInvoicing" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("是否开进项票" ,"isInvoicing"));
|
|
|
|
|
break;
|
|
|
|
|
case "isPay" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("是否付款" ,"isPay"));
|
|
|
|
|
break;
|
|
|
|
|
case "isCollection" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("是否回款" ,"isCollection"));
|
|
|
|
|
break;
|
|
|
|
|
case "isExpense" :
|
|
|
|
|
entitys.add(new ExcelExportEntity("是否开销项票" ,"isExpense"));
|
|
|
|
|
break;
|
|
|
|
|
case "vehicleName":
|
|
|
|
|
entitys.add(new ExcelExportEntity("车号", "vehicleName"));
|
|
|
|
|
break;
|
|
|
|
|
case "purchaseStatus":
|
|
|
|
|
entitys.add(new ExcelExportEntity("采购状态", "purchaseStatus"));
|
|
|
|
|
break;
|
|
|
|
|
case "salesStatus":
|
|
|
|
|
entitys.add(new ExcelExportEntity("销售状态", "salesStatus"));
|
|
|
|
|
break;
|
|
|
|
|
case "materialName":
|
|
|
|
|
entitys.add(new ExcelExportEntity("物料名称", "materialName"));
|
|
|
|
|
break;
|
|
|
|
|
case "settlement":
|
|
|
|
|
entitys.add(new ExcelExportEntity("结算重量", "settlement"));
|
|
|
|
|
break;
|
|
|
|
|
case "purchasePrice":
|
|
|
|
|
entitys.add(new ExcelExportEntity("采购单价", "purchasePrice"));
|
|
|
|
|
break;
|
|
|
|
|
case "salesPrice":
|
|
|
|
|
entitys.add(new ExcelExportEntity("销售价格", "salesPrice"));
|
|
|
|
|
break;
|
|
|
|
|
case "collectPrice":
|
|
|
|
|
entitys.add(new ExcelExportEntity("收货价格", "collectPrice"));
|
|
|
|
|
break;
|
|
|
|
|
case "tareWeight":
|
|
|
|
|
entitys.add(new ExcelExportEntity("皮重", "tareWeight"));
|
|
|
|
|
break;
|
|
|
|
|
case "grossWeight":
|
|
|
|
|
entitys.add(new ExcelExportEntity("毛重", "grossWeight"));
|
|
|
|
|
break;
|
|
|
|
|
case "buckleWeight":
|
|
|
|
|
entitys.add(new ExcelExportEntity("扣重", "buckleWeight"));
|
|
|
|
|
break;
|
|
|
|
|
case "netWeight":
|
|
|
|
|
entitys.add(new ExcelExportEntity("净重", "netWeight"));
|
|
|
|
|
break;
|
|
|
|
|
case "unit":
|
|
|
|
|
entitys.add(new ExcelExportEntity("单位", "unit"));
|
|
|
|
|
break;
|
|
|
|
|
case "poundlistNo":
|
|
|
|
|
entitys.add(new ExcelExportEntity("磅单号", "poundlistNo"));
|
|
|
|
|
break;
|
|
|
|
|
case "customerName":
|
|
|
|
|
entitys.add(new ExcelExportEntity("客户名称", "customerName"));
|
|
|
|
|
break;
|
|
|
|
|
case "salesName":
|
|
|
|
|
entitys.add(new ExcelExportEntity("销售合同", "salesName"));
|
|
|
|
|
break;
|
|
|
|
|
case "supplierName":
|
|
|
|
|
entitys.add(new ExcelExportEntity("供应商名称", "supplierName"));
|
|
|
|
|
break;
|
|
|
|
|
case "purchaseName":
|
|
|
|
|
entitys.add(new ExcelExportEntity("采购合同", "purchaseName"));
|
|
|
|
|
break;
|
|
|
|
|
case "advance":
|
|
|
|
|
entitys.add(new ExcelExportEntity("是否垫资", "advance"));
|
|
|
|
|
break;
|
|
|
|
|
case "inputDate":
|
|
|
|
|
entitys.add(new ExcelExportEntity("进项票日期", "inputDate"));
|
|
|
|
|
break;
|
|
|
|
|
case "outputDate":
|
|
|
|
|
entitys.add(new ExcelExportEntity("销项票日期", "outputDate"));
|
|
|
|
|
break;
|
|
|
|
|
case "payDate":
|
|
|
|
|
entitys.add(new ExcelExportEntity("付款日期", "payDate"));
|
|
|
|
|
break;
|
|
|
|
|
case "paymentDate":
|
|
|
|
|
entitys.add(new ExcelExportEntity("回款日期", "paymentDate"));
|
|
|
|
|
break;
|
|
|
|
|
case "poundDate":
|
|
|
|
|
entitys.add(new ExcelExportEntity("磅单日期", "poundDate"));
|
|
|
|
|
break;
|
|
|
|
|
case "creatorTime":
|
|
|
|
|
entitys.add(new ExcelExportEntity("创建日期", "creatorTime"));
|
|
|
|
|
break;
|
|
|
|
|
case "businessName":
|
|
|
|
|
entitys.add(new ExcelExportEntity("业务员", "businessName"));
|
|
|
|
|
break;
|
|
|
|
|
case "isInvoicing":
|
|
|
|
|
entitys.add(new ExcelExportEntity("是否开进项票", "isInvoicing"));
|
|
|
|
|
break;
|
|
|
|
|
case "isPay":
|
|
|
|
|
entitys.add(new ExcelExportEntity("是否付款", "isPay"));
|
|
|
|
|
break;
|
|
|
|
|
case "isCollection":
|
|
|
|
|
entitys.add(new ExcelExportEntity("是否回款", "isCollection"));
|
|
|
|
|
break;
|
|
|
|
|
case "isExpense":
|
|
|
|
|
entitys.add(new ExcelExportEntity("是否开销项票", "isExpense"));
|
|
|
|
|
break;
|
|
|
|
|
case "remark":
|
|
|
|
|
entitys.add(new ExcelExportEntity("备注", "remark"));
|
|
|
|
|
break;
|
|
|
|
|
case "poundPictures":
|
|
|
|
|
entitys.add(new ExcelExportEntity("磅单图片", "poundPictures"));
|
|
|
|
|
break;
|
|
|
|
|
case "vehiclePictures":
|
|
|
|
|
entitys.add(new ExcelExportEntity("车辆图片", "vehiclePictures"));
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|