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
44e8b201
提交
44e8b201
authored
12月 16, 2025
作者:
douxy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加店内执行计划导出/入功能:处理数据-修改执行判断条件
上级
20fcb1ae
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
35 行增加
和
6 行删除
+35
-6
NormalDisplayExportStrategyImpl.java
...trategy/impl/exports/NormalDisplayExportStrategyImpl.java
+1
-1
NormalDisplayImportStrategyImpl.java
...trategy/impl/imports/NormalDisplayImportStrategyImpl.java
+34
-5
没有找到文件。
src/main/java/com/sfa/operation/strategy/impl/exports/NormalDisplayExportStrategyImpl.java
浏览文件 @
44e8b201
...
...
@@ -38,7 +38,7 @@ public class NormalDisplayExportStrategyImpl implements IExportApExcelStrategy {
ExportColumnConfig
actualMainShelfType
=
new
ExportColumnConfig
(
"actualMainShelfType"
,
"主货架形式(实际)"
,
""
,
ExcelStyleUtils
.
ExcelStyle
.
LIGHT_BLUE_BG
);
actualMainShelfType
.
setValidationValidOptions
(
Arrays
.
asList
(
"3纵"
,
"4纵"
,
"5纵"
,
"6纵"
,
"7纵"
,
"8纵及以上"
));
actualMainShelfType
.
setValidationErrorTitle
(
"输入错误"
);
actualMainShelfType
.
setValidationErrorMsg
(
"主货架形式必须输入
”3纵、4纵、5纵、6纵、7纵、8纵及以上“
之一!"
);
actualMainShelfType
.
setValidationErrorMsg
(
"主货架形式必须输入
“3纵、4纵、5纵、6纵、7纵、8纵及以上”
之一!"
);
actualMainShelfType
.
setConditionalStyling
(
true
);
//主货架数量-实际
...
...
src/main/java/com/sfa/operation/strategy/impl/imports/NormalDisplayImportStrategyImpl.java
浏览文件 @
44e8b201
...
...
@@ -208,14 +208,43 @@ public class NormalDisplayImportStrategyImpl implements IImportApExcelStrategy<S
updateDisplay
.
setRemark
(
dto
.
getRemark
());
// 主货架执行状态计算
if
(
updateDisplay
.
getPlannedMainShelfType
()
!=
null
&&
updateDisplay
.
getPlannedMainShelfQty
()
!=
null
&&
dto
.
getActualMainShelfType
()
!=
null
&&
dto
.
getActualMainShelfQty
()
!=
null
)
{
boolean
mainShelfTypeMatch
=
dto
.
getActualMainShelfType
().
equals
(
updateDisplay
.
getPlannedMainShelfType
());
boolean
mainShelfQtySufficient
=
dto
.
getActualMainShelfQty
()
>=
updateDisplay
.
getPlannedMainShelfQty
();
updateDisplay
.
setActualMainShelfExecuted
((
mainShelfTypeMatch
&&
mainShelfQtySufficient
)
?
"执行"
:
"未执行"
);
// 提取计划值中的数字(如“7纵”→7)
String
plannedType
=
updateDisplay
.
getPlannedMainShelfType
().
trim
();
Integer
plannedNum
=
null
;
if
(
plannedType
.
endsWith
(
"纵"
))
{
try
{
plannedNum
=
Integer
.
parseInt
(
plannedType
.
replace
(
"纵"
,
""
));
}
catch
(
NumberFormatException
e
)
{
log
.
warn
(
"计划主货架类型格式错误,无法提取数字:{}"
,
plannedType
);
}
}
// 提取实际值中的数字(如“8纵”→8)
String
actualType
=
dto
.
getActualMainShelfType
().
trim
();
Integer
actualNum
=
null
;
if
(
actualType
.
endsWith
(
"纵"
))
{
try
{
actualNum
=
Integer
.
parseInt
(
actualType
.
replace
(
"纵"
,
""
));
}
catch
(
NumberFormatException
e
)
{
log
.
warn
(
"实际主货架类型格式错误,无法提取数字:{}"
,
actualType
);
}
}
// 仅当数字提取成功时,判断“实际≥计划”+数量充足
if
(
plannedNum
!=
null
&&
actualNum
!=
null
)
{
// 实际纵数≥计划纵数
boolean
mainShelfTypeMatch
=
actualNum
>=
plannedNum
;
boolean
mainShelfQtySufficient
=
dto
.
getActualMainShelfQty
()
>=
updateDisplay
.
getPlannedMainShelfQty
();
updateDisplay
.
setActualMainShelfExecuted
((
mainShelfTypeMatch
&&
mainShelfQtySufficient
)
?
"执行"
:
"未执行"
);
}
else
{
// 格式错误,清空执行状态
updateDisplay
.
setActualMainShelfExecuted
(
"未执行"
);
}
}
else
{
updateDisplay
.
setActualMainShelfExecuted
(
null
);
// 计划/实际值不全,清空执行状态
updateDisplay
.
setActualMainShelfExecuted
(
"未执行"
);
}
// 2. 端架执行状态计算
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论