roll back code

This commit is contained in:
hower 2023-05-26 13:02:39 +08:00
parent c07a3d94bf
commit 4323a98969

View File

@ -1105,49 +1105,22 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
* @since 5.1.4 * @since 5.1.4
*/ */
public ExcelWriter writeCellValue(String locationRef, Object value) { public ExcelWriter writeCellValue(String locationRef, Object value) {
return writeCellValue(locationRef, value, false);
}
/**
* 给指定单元格赋值使用默认单元格样式
*
* @param locationRef 单元格地址标识符例如A11B5
* @param value
* @param isHeader 是否为Header
* @return this
* @since 5.1.4
*/
public ExcelWriter writeCellValue(String locationRef, Object value, boolean isHeader) {
final CellLocation cellLocation = ExcelUtil.toLocation(locationRef); final CellLocation cellLocation = ExcelUtil.toLocation(locationRef);
return writeCellValue(cellLocation.getX(), cellLocation.getY(), value, isHeader); return writeCellValue(cellLocation.getX(), cellLocation.getY(), value);
} }
/** /**
* 给指定单元格赋值使用默认单元格样式 * 给指定单元格赋值使用默认单元格样式
* *
* @param x X坐标从0计数即列号 * @param x X坐标从0计数即列号
* @param y Y坐标从0计数即行号 * @param y Y坐标从0计数即行号
* @param value * @param value
* @return this * @return this
* @since 4.0.2 * @since 4.0.2
*/ */
public ExcelWriter writeCellValue(int x, int y, Object value) { public ExcelWriter writeCellValue(int x, int y, Object value) {
return writeCellValue(x, y, value, false);
}
/**
* 给指定单元格赋值使用默认单元格样式
*
* @param x X坐标从0计数即列号
* @param y Y坐标从0计数即行号
* @param value
* @param isHeader 是否为Header
* @return this
* @since 4.0.2
*/
public ExcelWriter writeCellValue(int x, int y, Object value, boolean isHeader) {
final Cell cell = getOrCreateCell(x, y); final Cell cell = getOrCreateCell(x, y);
CellUtil.setCellValue(cell, value, this.styleSet, isHeader); CellUtil.setCellValue(cell, value, this.styleSet, false);
return this; return this;
} }