diff --git a/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/customer/type/CustomerTypeService.java b/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/customer/type/CustomerTypeService.java index abdc585..046ca37 100644 --- a/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/customer/type/CustomerTypeService.java +++ b/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/customer/type/CustomerTypeService.java @@ -57,7 +57,7 @@ public class CustomerTypeService extends BaseService { // }); out.sort(Comparator.comparing(o -> - Objects.nonNull(o.getInt("customer_type_id"))? CustomerTypeEnum.getSortById(String.valueOf(o.getInt("customer_type_id"))) : Integer.valueOf(-1))); + Objects.nonNull(o.getInt("id"))? CustomerTypeEnum.getSortById(String.valueOf(o.getInt("id"))) : Integer.valueOf(-1))); List root = new ArrayList<>(); root.add(new Record().set("id", -1).set("name", "全部").set("children", out)); @@ -71,7 +71,7 @@ public class CustomerTypeService extends BaseService { if (CollectionUtils.isNotEmpty(customerTypes)) { customerTypes.sort(Comparator.comparing(o -> - Objects.nonNull(o.getInt("customer_type_id"))? CustomerTypeEnum.getSortById(String.valueOf(o.getInt("customer_type_id"))) : Integer.valueOf(-1))); + Objects.nonNull(o.getInt("id"))? CustomerTypeEnum.getSortById(String.valueOf(o.getInt("id"))) : Integer.valueOf(-1))); }