Authored by LUOXC

omitEmptyStrings

... ... @@ -219,7 +219,10 @@ public class ErpGWOrderController {
@IgnoreSession
@RequestMapping(value = "/findOrderGoods")
public ApiResponse findOrderGoods(@RequestParam(value = "orderCodes") String orderCodes) {
List<Long> orderCodeList = Splitter.on(",").trimResults().splitToList(orderCodes).stream()
List<Long> orderCodeList = Splitter.on(",")
.trimResults()
.omitEmptyStrings()
.splitToList(orderCodes).stream()
.map(Long::valueOf)
.collect(Collectors.toList());
... ...