Commit 855a002b by 江和松

工序质检单合格、不合格数量不能都为0

parent eeacca29
......@@ -246,6 +246,7 @@ public class HGKCTools {
AssertUtils.isEmpty(hgzl002.getProductCode(), "存货编码不能为空!");
AssertUtils.isEmpty(hgzl002.getProductName(), "存货名称不能为空!");
AssertUtils.isTrue(Objects.isNull(hgzl002.getId())||hgzl002.getId()<=0, "质检单明细ID不能为空!");
AssertUtils.isTrue(hgzl002.getPassQuantity().compareTo(0) == 0 && hgzl002.getUnpassQuantity().compareTo(0) == 0, "合格数量与不合格数量不能都为0!");
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment