|
@@ -404,8 +404,9 @@ public class GenerateCodeServiceImpl implements GenerateCodeService {
|
|
List<QrInnerData> qrInnerDataList = new LinkedList<>();
|
|
List<QrInnerData> qrInnerDataList = new LinkedList<>();
|
|
//箱子码幅面
|
|
//箱子码幅面
|
|
for (int a = 0; a < boxCodeFormat.getFormatNumber(); a++) {
|
|
for (int a = 0; a < boxCodeFormat.getFormatNumber(); a++) {
|
|
|
|
+ log.info("doLoopGenerateCode 的疑似死循环.3");
|
|
for (int j = 0; j < qrRepertoryColumnList.size(); j++) {
|
|
for (int j = 0; j < qrRepertoryColumnList.size(); j++) {
|
|
- log.info("doLoopGenerateCode 的疑似死循环.3");
|
|
|
|
|
|
+ log.info("doLoopGenerateCode 的疑似死循环.4");
|
|
QrRepertoryColumnVO qrRepertoryColumn = qrRepertoryColumnList.get(j);
|
|
QrRepertoryColumnVO qrRepertoryColumn = qrRepertoryColumnList.get(j);
|
|
Long qrRepertoryColumnId = qrRepertoryColumn.getId();
|
|
Long qrRepertoryColumnId = qrRepertoryColumn.getId();
|
|
//声明拆分数量
|
|
//声明拆分数量
|
|
@@ -444,16 +445,16 @@ public class GenerateCodeServiceImpl implements GenerateCodeService {
|
|
setQrIndex(qrIndex);
|
|
setQrIndex(qrIndex);
|
|
|
|
|
|
try {
|
|
try {
|
|
- redisClient.delete("box_code_format_split");
|
|
|
|
return qrDataList;
|
|
return qrDataList;
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- redisClient.delete("box_code_format_split");
|
|
|
|
log.error("封装码失败", e);
|
|
log.error("封装码失败", e);
|
|
if (++repeatTimes >= REPEAT_BUILD_CODE_TIMES) {
|
|
if (++repeatTimes >= REPEAT_BUILD_CODE_TIMES) {
|
|
throw new RuntimeException("生成码失败,重复生成码次数超过" + REPEAT_BUILD_CODE_TIMES + "次");
|
|
throw new RuntimeException("生成码失败,重复生成码次数超过" + REPEAT_BUILD_CODE_TIMES + "次");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ log.info("doLoopGenerateCode 返回return");
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|