试验管理修改

This commit is contained in:
cwchen 2024-09-05 10:27:55 +08:00
parent 77cddf5cd5
commit 2a61fc213e
1 changed files with 4 additions and 2 deletions

View File

@ -616,8 +616,10 @@ public class TestReportManageServiceImpl implements TestReportManageService {
* @param sheet 创建的sheet页
*/
public static void addMergedRegion(int startRow,int endRow,int startCol,int endCol,Sheet sheet){
CellRangeAddress cra = new CellRangeAddress(startRow,endRow,startCol,endCol);
sheet.addMergedRegion(cra);
if(startCol!=endCol){
CellRangeAddress cra = new CellRangeAddress(startRow,endRow,startCol,endCol);
sheet.addMergedRegion(cra);
}
}
/**