Compare commits

...

3 Commits

Author SHA1 Message Date
root 38bd869eb5
Pre Merge pull request !422 from root/N/A 2026-01-06 05:55:09 +00:00
RuoYi 2d9ce89b2e 修复Excel自定义格式样式污染问题 2026-01-06 13:55:05 +08:00
root 64410bafc4
update docker/nginx/conf/nginx.conf.
Signed-off-by: root <15907907+xuezhihongg@user.noreply.gitee.com>
2025-07-16 02:35:07 +00:00
2 changed files with 19 additions and 5 deletions

View File

@ -28,10 +28,9 @@ http {
proxy_pass http://ruoyi-gateway:8080/;
}
# 避免actuator暴露
if ($uri ~ "/actuator") {
return 403;
}
# springdoc proxy
location~^/v3/api-docs/(.*){
proxy pass http://localhost:8080/v3/api-docs/$1;
error_page 500 502 503 504 /50x.html;
location = /50x.html {

View File

@ -1004,7 +1004,7 @@ public class ExcelUtil<T>
String separator = attr.separator();
if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value))
{
cell.getCellStyle().setDataFormat(this.wb.getCreationHelper().createDataFormat().getFormat(dateFormat));
cell.setCellStyle(createCellStyle(cell.getCellStyle(), dateFormat));
cell.setCellValue(parseDateToStr(dateFormat, value));
}
else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value))
@ -1034,6 +1034,21 @@ public class ExcelUtil<T>
return cell;
}
/**
* 使
*
* @param cellStyle
* @param format
* @return CellStyle
*/
private CellStyle createCellStyle(CellStyle cellStyle, String format)
{
CellStyle style = wb.createCellStyle();
style.cloneStyleFrom(cellStyle);
style.setDataFormat(wb.getCreationHelper().createDataFormat().getFormat(format));
return style;
}
/**
* POI XSSFSheet
*