|
@ -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,7 +844,9 @@ 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,7 +2094,9 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
} |
|
|
} |
|
|
//换行
|
|
|
//换行
|
|
|
createLineBreak(doc); |
|
|
createLineBreak(doc); |
|
|
} |
|
|
}else { |
|
|
|
|
|
addDescription(doc, UniversalEnum.NO_DATA_AVAILABLE.getValue()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|