|
|
@ -5,6 +5,7 @@ import com.alibaba.excel.metadata.data.WriteCellData; |
|
|
|
import com.alibaba.excel.util.BooleanUtils; |
|
|
|
import com.alibaba.excel.util.BooleanUtils; |
|
|
|
import com.alibaba.excel.write.handler.CellWriteHandler; |
|
|
|
import com.alibaba.excel.write.handler.CellWriteHandler; |
|
|
|
import com.alibaba.excel.write.handler.context.CellWriteHandlerContext; |
|
|
|
import com.alibaba.excel.write.handler.context.CellWriteHandlerContext; |
|
|
|
|
|
|
|
import com.alibaba.excel.write.metadata.holder.WriteWorkbookHolder; |
|
|
|
import com.alibaba.excel.write.metadata.style.WriteCellStyle; |
|
|
|
import com.alibaba.excel.write.metadata.style.WriteCellStyle; |
|
|
|
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
@ -38,8 +39,8 @@ public class FillStyleCellWriteHandler implements CellWriteHandler { |
|
|
|
if (writeCellStyle == null && originCellStyle == null) { |
|
|
|
if (writeCellStyle == null && originCellStyle == null) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
//WriteWorkbookHolder writeWorkbookHolder = context.getWriteWorkbookHolder();
|
|
|
|
WriteWorkbookHolder writeWorkbookHolder = context.getWriteWorkbookHolder(); |
|
|
|
//context.getCell().setCellStyle(writeWorkbookHolder.createCellStyle(writeCellStyle, originCellStyle));
|
|
|
|
context.getCell().setCellStyle(writeWorkbookHolder.createCellStyle(writeCellStyle, originCellStyle)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|