1.去除查询CMMP资源号前后空格

This commit is contained in:
zhouc 2024-10-24 18:44:10 +08:00
parent 0b029535ea
commit daf729a12c

View File

@ -31,7 +31,7 @@ public class MaterialVehicleNoCMMP {
if(YEM.isEmpty(product)){
return new ArrayList<>();
}
StringBuffer where = new StringBuffer(String.format("where %s = '%s'",productCode,product));
StringBuffer where = new StringBuffer(String.format("where %s = '%s'",productCode,product.trim()));
sql = sql + where.toString();
List<Map> fromCmmp = RequestCmmp.getFromCmmp(orgId, sql,id);
return fromCmmp;