Commit 032aa26b authored by 赵啸非's avatar 赵啸非

添加模块查询排序

parent 608641e3
package com.mortals.xhx.module.model.service.impl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.util.DataUtil;
import com.mortals.framework.util.StringUtils;
import com.mortals.xhx.module.model.model.ModelCensusEntity;
......@@ -16,6 +17,7 @@ import com.mortals.xhx.module.model.dao.ModelDao;
import com.mortals.xhx.module.model.model.ModelEntity;
import com.mortals.xhx.module.model.service.ModelService;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
......@@ -61,6 +63,11 @@ public class ModelServiceImpl extends AbstractCRUDServiceImpl<ModelDao, ModelEnt
}
ModelQuery modelQuery = new ModelQuery();
modelQuery.setIdList(ids);
modelQuery.setOrderColList(new ArrayList<OrderCol>() {
{
add(new OrderCol("a.sort", OrderCol.ASCENDING));
}
});
List<ModelEntity> modelEntityList = this.find(modelQuery);
return modelEntityList;
}else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment