|
@@ -75,7 +75,7 @@ public abstract class BusJcabServiceImpl {
|
|
|
Field[] fields = BusJcab.class.getDeclaredFields();
|
|
Field[] fields = BusJcab.class.getDeclaredFields();
|
|
|
List<String> fieldList = Arrays.stream(fields).map(Field::getName).collect(Collectors.toList());
|
|
List<String> fieldList = Arrays.stream(fields).map(Field::getName).collect(Collectors.toList());
|
|
|
// 如果排序字段不是BusJcab类的属性时,取默认排序字段
|
|
// 如果排序字段不是BusJcab类的属性时,取默认排序字段
|
|
|
- log.debug("前端指定的排序字段 - {}", jcab.getOrderBy());
|
|
|
|
|
|
|
+ // log.debug("前端指定的排序字段 - {}", jcab.getOrderBy())
|
|
|
if (StringUtils.isNotEmpty(jcab.getOrderBy())) {
|
|
if (StringUtils.isNotEmpty(jcab.getOrderBy())) {
|
|
|
if (JcebOrderFieldEnum.OPERATION_DATE.getAttribute().equals(jcab.getOrderBy())
|
|
if (JcebOrderFieldEnum.OPERATION_DATE.getAttribute().equals(jcab.getOrderBy())
|
|
|
|| JcebOrderFieldEnum.OPERATION_DATE.getField().equals(jcab.getOrderBy())
|
|
|| JcebOrderFieldEnum.OPERATION_DATE.getField().equals(jcab.getOrderBy())
|
|
@@ -85,7 +85,7 @@ public abstract class BusJcabServiceImpl {
|
|
|
} else if (fieldList.contains(jcab.getOrderBy())) {
|
|
} else if (fieldList.contains(jcab.getOrderBy())) {
|
|
|
jcab.setOrderBy(SqlUtil.humpToLine(jcab.getOrderBy()));
|
|
jcab.setOrderBy(SqlUtil.humpToLine(jcab.getOrderBy()));
|
|
|
} else {
|
|
} else {
|
|
|
- log.info("排序字段名在当前表不存在 - {}", jcab.getOrderBy());
|
|
|
|
|
|
|
+ // log.info("排序字段名在当前表不存在 - {}", jcab.getOrderBy())
|
|
|
jcab.setOrderBy(JcebOrderFieldEnum.CHECK_DATE.getField());
|
|
jcab.setOrderBy(JcebOrderFieldEnum.CHECK_DATE.getField());
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
@@ -93,7 +93,7 @@ public abstract class BusJcabServiceImpl {
|
|
|
jcab.setOrderBy(JcebOrderFieldEnum.CHECK_DATE.getField());
|
|
jcab.setOrderBy(JcebOrderFieldEnum.CHECK_DATE.getField());
|
|
|
jcab.setIsAsc(SortTypeEnum.DESC.getCode());
|
|
jcab.setIsAsc(SortTypeEnum.DESC.getCode());
|
|
|
}
|
|
}
|
|
|
- log.debug("最终使用的排序字段 - {}", jcab.getOrderBy());
|
|
|
|
|
|
|
+ // log.debug("最终使用的排序字段 - {}", jcab.getOrderBy())
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|