fix(local-material): 新增地材结果排序
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package mjkf.xinke.main.controller;
|
||||
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.jgy.xxs.core.http.resp.HttpResponse;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
@@ -57,6 +58,9 @@ public class LocalMaterialController {
|
||||
for (String key: groupMap.keySet()) {
|
||||
result.add(new LocalMaterialSummary(groupMap.get(key)));
|
||||
}
|
||||
// 排序
|
||||
result = (ArrayList<LocalMaterialSummary>) ListUtil.sortByProperty(result, "name");
|
||||
|
||||
return FuHttpResponse.Builder().dataResponse(result).build();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user