解决单据中按条码查询商品带空格无法匹配的bug

This commit is contained in:
季圣华
2022-03-30 21:24:20 +08:00
parent 10e5001573
commit 8b78999132

View File

@@ -411,6 +411,7 @@ public class MaterialService {
} }
if(StringUtil.isNotEmpty(q)) { if(StringUtil.isNotEmpty(q)) {
q = q.replace("'", ""); q = q.replace("'", "");
q = q.trim();
} }
list= materialMapperEx.findBySelectWithBarCode(idList, q, offset, rows); list= materialMapperEx.findBySelectWithBarCode(idList, q, offset, rows);
}catch(Exception e){ }catch(Exception e){