提交 f0179e45 authored 作者: douxy's avatar douxy

增加店内执行计划导出/入功能:增加纵数配置

上级 677b8023
...@@ -42,7 +42,7 @@ public class ExportExcelServiceImpl implements IExportExcelService { ...@@ -42,7 +42,7 @@ public class ExportExcelServiceImpl implements IExportExcelService {
return R.ok(R.SUCCESS, "数据导出成功") ; return R.ok(R.SUCCESS, "数据导出成功") ;
} catch (Exception e) { } catch (Exception e) {
log.error("常规陈列数据导出异常!具体错误原因:", e); log.error("常规陈列数据导出异常!具体错误原因:", e);
return R.fail(R.FAIL,"数据导出失败,请联系后台管理员处理!"); return R.fail(R.FAIL,e.getMessage());
} }
} }
......
...@@ -206,12 +206,18 @@ public class NormalDisplayImportStrategyImpl implements IImportApExcelStrategy<S ...@@ -206,12 +206,18 @@ public class NormalDisplayImportStrategyImpl implements IImportApExcelStrategy<S
// 提取实际值中的数字(如“8纵”→8) // 提取实际值中的数字(如“8纵”→8)
String actualType = dto.getActualMainShelfType().trim(); String actualType = dto.getActualMainShelfType().trim();
Integer actualNum = null; Integer actualNum = null;
if (actualType.endsWith("纵")) { if (actualType.endsWith("纵") ) {
try { try {
actualNum = Integer.parseInt(actualType.replace("纵", "")); actualNum = Integer.parseInt(actualType.replace("纵", ""));
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
log.warn("实际主货架类型格式错误,无法提取数字:{}", actualType); log.warn("实际主货架类型格式错误,无法提取数字:{}", actualType);
} }
} else if (actualType.endsWith("纵及以上")){
try {
actualNum = Integer.parseInt(actualType.replace("纵及以上", ""));
} catch (NumberFormatException e) {
log.warn("实际主货架类型格式错误,无法提取数字:{}", actualType);
}
} }
// 仅当数字提取成功时,判断“实际≥计划”+数量充足 // 仅当数字提取成功时,判断“实际≥计划”+数量充足
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论