Commit b8d58d48 LN

bug修改

1 个父辈 408d82c7
......@@ -847,6 +847,9 @@ public class BarcodeRule {
codeStr="100301*340093060042*20231228*2853*0002";
// codeStr="woerweoruweorwer*wrwerwerwe";
rule="PN;RI;BATCH;1;1;1;1";
codeStr="T002;1002;10;T002;1002;10;1";
BarcodeRule br = BarcodeRule.newRule(rule);
Barcode b = br.toCodeBean(codeStr).getBarcode();
if(b != null){
......
......@@ -195,24 +195,26 @@ public class BoxKanbanController {
String[] blurrys = blurry.split(",");
String[] valueArray = new String[]{datalog.getPosName(), datalog.getStorageName(), datalog.getCid(), datalog.getPartNumber(), datalog.getBarcode(), datalog.getSourceName()};
for (String s : blurrys) {
if(ObjectUtil.isNotEmpty(s)){
if (ObjectUtil.isNotEmpty(s)) {
for (String v : valueArray) {
try {
Pattern pattern = Pattern.compile(QueryHelp.escapeExprSpecialWord(s), Pattern.CASE_INSENSITIVE);
Matcher m = pattern.matcher(v);
while (m.find()) {
blurryOk = true;
break;
}
if (blurryOk) break;
}catch (Exception ex){
log.error(ex.toString());
if (ObjectUtil.isEmpty(v)) {
continue;
}
try {
Pattern pattern = Pattern.compile(QueryHelp.escapeExprSpecialWord(s), Pattern.CASE_INSENSITIVE);
Matcher m = pattern.matcher(v);
while (m.find()) {
blurryOk = true;
break;
}
if (blurryOk) break;
} catch (Exception ex) {
log.error(ex.toString());
}
}
if (blurryOk) break;
}
else{
blurryOk=true;
} else {
blurryOk = true;
}
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!