Commit 877c8fc7 张少辉

厚度相差为4

1 个父辈 b5f9fa58
...@@ -219,7 +219,7 @@ public class DeviceController { ...@@ -219,7 +219,7 @@ public class DeviceController {
if (barcode.getPlateSize() == 7 || barcode.getPlateSize() == 13){ if (barcode.getPlateSize() == 7 || barcode.getPlateSize() == 13){
//如果盘宽相差不超过4,则可以入库 //如果盘宽相差不超过4,则可以入库
int difference = componentHeight - barcodeHeight; int difference = componentHeight - barcodeHeight;
if (difference > 3 || difference < -3) { if (difference > 4 || difference < -4) {
throw new ValidateException("smfcore.error.component.sizeNotMatch", "料盘尺寸[{0}}]与元器件{1}尺寸[{2}]不符,无法入库" throw new ValidateException("smfcore.error.component.sizeNotMatch", "料盘尺寸[{0}}]与元器件{1}尺寸[{2}]不符,无法入库"
, new String[]{barcode.getPlateSize() + "x" + barcodeHeight, component.getPartNumber(), component.getPlateSize() + "x" + component.getHeight()}); , new String[]{barcode.getPlateSize() + "x" + barcodeHeight, component.getPartNumber(), component.getPlateSize() + "x" + component.getHeight()});
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!