groovy中list转map,map转bean实体类,根据List中某个元素的值过滤List中的元素
String sql = """ select * from location where warehouseCode = '${scrapDetail.warehouseCode}' and code in (${locationCodeList.join(',')})""" List<Location> locationList = tem...