提交 e59d68ae authored 作者: 杨启发's avatar 杨启发

磅单OCR识别需求

上级 3b8e5c93
......@@ -2879,7 +2879,7 @@ public class OrderChildServiceImpl implements OrderChildService {
String autoName = itemInfo.getKey().getAutoName();
String autoContent = itemInfo.getValue().getAutoContent();
originalResultMap.put(autoName,autoContent);
if (NumberUtils.isCreatable(autoContent) && new BigDecimal(autoContent).compareTo(new BigDecimal(100))<0) {
if (NumberUtils.isCreatable(autoContent) && new BigDecimal(autoContent).compareTo(new BigDecimal(100))<0 && new BigDecimal(autoContent).scale()<=2) {
if ("毛重".equals(autoName)) {
vo.setGrossWeight(new BigDecimal(autoContent));
}else if ("皮重".equals(autoName)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论