Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-module-operation
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-module-operation
Commits
6d54bd07
提交
6d54bd07
authored
12月 18, 2025
作者:
窦馨雨
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'qa' 到 'master'
修改纵数匹配和错误信息返回 查看合并请求
!101
上级
405cb7c0
37cfca9b
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
3 行删除
+9
-3
ExportExcelServiceImpl.java
...ion/service/sales/export/impl/ExportExcelServiceImpl.java
+1
-1
NormalDisplayImportStrategyImpl.java
...trategy/impl/imports/NormalDisplayImportStrategyImpl.java
+7
-1
ExcelUtils.java
src/main/java/com/sfa/operation/util/excel/ExcelUtils.java
+1
-1
没有找到文件。
src/main/java/com/sfa/operation/service/sales/export/impl/ExportExcelServiceImpl.java
浏览文件 @
6d54bd07
...
...
@@ -42,7 +42,7 @@ public class ExportExcelServiceImpl implements IExportExcelService {
return
R
.
ok
(
R
.
SUCCESS
,
"数据导出成功"
)
;
}
catch
(
Exception
e
)
{
log
.
error
(
"常规陈列数据导出异常!具体错误原因:"
,
e
);
return
R
.
fail
(
R
.
FAIL
,
"数据导出失败,请联系后台管理员处理!"
);
return
R
.
fail
(
R
.
FAIL
,
e
.
getMessage
()
);
}
}
...
...
src/main/java/com/sfa/operation/strategy/impl/imports/NormalDisplayImportStrategyImpl.java
浏览文件 @
6d54bd07
...
...
@@ -202,17 +202,23 @@ public class NormalDisplayImportStrategyImpl implements IImportApExcelStrategy<S
log
.
warn
(
"计划主货架类型格式错误,无法提取数字:{}"
,
plannedType
);
}
}
if
(
plannedType
.
contains
(
"8"
)){
plannedNum
=
8
;
}
// 提取实际值中的数字(如“8纵”→8)
String
actualType
=
dto
.
getActualMainShelfType
().
trim
();
Integer
actualNum
=
null
;
if
(
actualType
.
endsWith
(
"纵"
))
{
if
(
actualType
.
endsWith
(
"纵"
)
)
{
try
{
actualNum
=
Integer
.
parseInt
(
actualType
.
replace
(
"纵"
,
""
));
}
catch
(
NumberFormatException
e
)
{
log
.
warn
(
"实际主货架类型格式错误,无法提取数字:{}"
,
actualType
);
}
}
if
(
actualType
.
contains
(
"8"
)){
actualNum
=
8
;
}
// 仅当数字提取成功时,判断“实际≥计划”+数量充足
if
(
plannedNum
!=
null
)
{
...
...
src/main/java/com/sfa/operation/util/excel/ExcelUtils.java
浏览文件 @
6d54bd07
...
...
@@ -466,7 +466,7 @@ public static <T> List<T> readApExcelWithColumnConfig(InputStream inputStream,
throw
new
IOException
(
"导出Excel失败:没有配置导出列"
);
}
if
(
CollectionUtils
.
isEmpty
(
dataList
))
{
throw
new
IOException
(
"
导出Excel失败:没有获取到相关数据,请检查条件后重试
"
);
throw
new
IOException
(
"
暂无数据,请检查查询条件
"
);
}
if
(
sheetName
==
null
||
sheetName
.
trim
().
isEmpty
())
{
throw
new
IOException
(
"导出Excel失败:没有配置sheetName"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论