feat: 导入SAP结果,“修改失败计量单位”错误提示特殊处理
This commit is contained in:
parent
3a2e6f883f
commit
901a789da5
|
|
@ -197,6 +197,9 @@ public class SapOpUtilService {
|
|||
list.stream()
|
||||
.filter(f -> f.getFLAG().equals("0"))
|
||||
.forEach(it -> {
|
||||
if (it.getSTATUS().contains("修改失败计量单位")) {
|
||||
errorMsgVOS.add(OperationErrorMsgVO.create(it.getMATNR(), it.getSTATUS()));
|
||||
} else {
|
||||
Matcher matcher = PATTERN.matcher(it.getSTATUS());
|
||||
if (matcher.find()) {
|
||||
if (errorMsgVOS.stream().noneMatch(f -> StrUtil.equals(f.getPrimaryKey(), matcher.group()))) {
|
||||
|
|
@ -205,6 +208,7 @@ public class SapOpUtilService {
|
|||
} else {
|
||||
errorMsgVOS.add(OperationErrorMsgVO.create(buildErrCol1(it), it.getSTATUS()));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return errorMsgVOS;
|
||||
|
|
|
|||
Loading…
Reference in New Issue