Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
032aa26b
Commit
032aa26b
authored
Aug 02, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加模块查询排序
parent
608641e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
base-manager/src/main/java/com/mortals/xhx/module/model/service/impl/ModelServiceImpl.java
...rtals/xhx/module/model/service/impl/ModelServiceImpl.java
+7
-0
No files found.
base-manager/src/main/java/com/mortals/xhx/module/model/service/impl/ModelServiceImpl.java
View file @
032aa26b
package
com.mortals.xhx.module.model.service.impl
;
package
com.mortals.xhx.module.model.service.impl
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.framework.util.DataUtil
;
import
com.mortals.framework.util.DataUtil
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.xhx.module.model.model.ModelCensusEntity
;
import
com.mortals.xhx.module.model.model.ModelCensusEntity
;
...
@@ -16,6 +17,7 @@ import com.mortals.xhx.module.model.dao.ModelDao;
...
@@ -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.model.ModelEntity
;
import
com.mortals.xhx.module.model.service.ModelService
;
import
com.mortals.xhx.module.model.service.ModelService
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -61,6 +63,11 @@ public class ModelServiceImpl extends AbstractCRUDServiceImpl<ModelDao, ModelEnt
...
@@ -61,6 +63,11 @@ public class ModelServiceImpl extends AbstractCRUDServiceImpl<ModelDao, ModelEnt
}
}
ModelQuery
modelQuery
=
new
ModelQuery
();
ModelQuery
modelQuery
=
new
ModelQuery
();
modelQuery
.
setIdList
(
ids
);
modelQuery
.
setIdList
(
ids
);
modelQuery
.
setOrderColList
(
new
ArrayList
<
OrderCol
>()
{
{
add
(
new
OrderCol
(
"a.sort"
,
OrderCol
.
ASCENDING
));
}
});
List
<
ModelEntity
>
modelEntityList
=
this
.
find
(
modelQuery
);
List
<
ModelEntity
>
modelEntityList
=
this
.
find
(
modelQuery
);
return
modelEntityList
;
return
modelEntityList
;
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment