取消负数限制
This commit is contained in:
parent
3ed9941da1
commit
26da8f93be
|
|
@ -308,13 +308,13 @@ public class EBomImportService {
|
|||
.collect(Collectors.toList())
|
||||
);
|
||||
}
|
||||
//2024.8.15 BigDecimal.ZERO.compareTo(u.getNum()) >= 0 取消负数限制
|
||||
numError = datas.stream().filter(u -> Objects.isNull(u.getNum()))
|
||||
|
||||
numError = datas.stream().filter(u -> Objects.isNull(u.getNum()) || BigDecimal.ZERO.compareTo(u.getNum()) == 0)
|
||||
.map(BaseImportExcelDTO::getRowNum)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
if (!numError.isEmpty()) {
|
||||
errorMsg.addAll(numError.stream().map(n -> OperationErrorMsgVO.create("第" + n + "行", "数量不正确"))
|
||||
errorMsg.addAll(numError.stream().map(n -> OperationErrorMsgVO.create("第" + n + "行", "数量不正确(不能为空或0)"))
|
||||
.collect(Collectors.toList())
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue