Commit 868f56c5 张少辉

1.解析条码规则,修改数量bug处理

1 个父辈 b629ff08
......@@ -210,7 +210,7 @@ public class CodeResolve {
int lastLabelAmount = barcode.getLabelAmount();
if(type!= COMPONENT_TYPE.SOLDERPASTE) {
int currentLabelAmount = barcodeFromRule.getAmount();
if (currentLabelAmount != lastLabelAmount && currentLabelAmount > 1) {
if (currentLabelAmount != lastLabelAmount && currentLabelAmount > 0 && barcodeFromRule.getBarcode().length() > 6) {
//本次解析出来的数量与上次条码解析出来的数量不一样,重新设置数量
log.info("重新设置" + codeBeanFromRule.getCodeStr() + "数量为:" + currentLabelAmount);
barcode.setAmount(currentLabelAmount);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!