Browse Source

导出提示

develop
王兴琳 3 months ago
parent
commit
8fd6e34a70
  1. 12
      zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java

12
zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java

@ -745,7 +745,9 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService {
int maxVehicleTypes = 5; int maxVehicleTypes = 5;
// 创建一个具有最大车辆类型数量的列的表格 // 创建一个具有最大车辆类型数量的列的表格
XWPFTable table = doc.createTable(result.size() + 1, maxVehicleTypes); XWPFTable table = doc.createTable(result.size() + 1, maxVehicleTypes);
CTTblWidth infoTableWidth = table.getCTTbl().addNewTblPr().addNewTblW();
infoTableWidth.setType(STTblWidth.DXA);
infoTableWidth.setW(BigInteger.valueOf(UniversalEnum.NINE_THOUSAND_AND_SEVENTY_TWO.getNumber()));
// 提取所有不同的车辆类型作为列标题 // 提取所有不同的车辆类型作为列标题
Set<String> vehicleTypes = new HashSet<>(); Set<String> vehicleTypes = new HashSet<>();
vehicleTypes.add("货车"); vehicleTypes.add("货车");
@ -842,6 +844,8 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService {
// 换行 // 换行
createLineBreak(doc); createLineBreak(doc);
}else {
addDescription(doc, UniversalEnum.NO_DATA_AVAILABLE.getValue());
} }
} }
@ -1197,6 +1201,8 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService {
//换行 //换行
createLineBreak(doc); createLineBreak(doc);
}else {
addDescription(doc, UniversalEnum.NO_DATA_AVAILABLE.getValue());
} }
} }
@ -1976,6 +1982,8 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService {
} }
//换行 //换行
createLineBreak(doc); createLineBreak(doc);
}else {
addDescription(doc, UniversalEnum.NO_DATA_AVAILABLE.getValue());
} }
} }
@ -2086,6 +2094,8 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService {
} }
//换行 //换行
createLineBreak(doc); createLineBreak(doc);
}else {
addDescription(doc, UniversalEnum.NO_DATA_AVAILABLE.getValue());
} }
} }

Loading…
Cancel
Save