if (CollectionUtils.isNotEmpty(jobList) && StringUtils.isNotBlank(columnName)) {
if (mark.equals("asc")) {
Collections.sort(jobList, (p1, p2) -> p1.get(columnName)::int - p2.get(columnName)::int);
} else if (mark.equals("desc")) {
Collections.sort(jobList, (p1, p2) -> p2.get(columnName)::int - p1.get(columnName)::int);
} else {
cpring("----请输入排序规则------");
}
} else {
cpring("----请确认参数------");
}
调用
//5.遍历list的取进行每个sku自己的数据整合
for (area in areaList) {
var jobList = []
var arr = [1];