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
3caf6f9b
Commit
3caf6f9b
authored
Jun 07, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加测试app数据动态访问排序
parent
3716929e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
base-manager/src/main/java/com/mortals/xhx/module/app/dao/AppDatasetDao.java
...in/java/com/mortals/xhx/module/app/dao/AppDatasetDao.java
+1
-3
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
.../main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
+11
-4
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/dao/AppDatasetDao.java
View file @
3caf6f9b
...
...
@@ -20,9 +20,7 @@ import java.util.List;
public
interface
AppDatasetDao
extends
ICRUDDao
<
AppDatasetEntity
,
Long
>
{
String
SQLID_CUSTOM_LIST
=
""
+
""
+
""
;
String
SQLID_CUSTOM_LIST
=
"getCustomList"
;
String
SQLID_CUSTOM_COUNT
=
"getCustomListCount"
;
Result
<
AppInfoFieldEntity
>
getCustomList
(
AppDatasetQuery
appDatasetQuery
,
PageInfo
pageInfo
);
...
...
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
View file @
3caf6f9b
...
...
@@ -60,10 +60,7 @@
<if
test=
"(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()"
>
order by
CASE
WHEN fieldType = 'date' THEN STR_TO_DATE(fieldValue, '%Y-%m-%d')
ELSE NULL
END
<trim
prefix=
","
suffixOverrides=
","
suffix=
""
>
<if
test=
"orderCol.containsKey('id')"
>
...
...
@@ -91,6 +88,16 @@
<if
test=
'orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'
>
DESC
</if>
,
</if>
CASE
WHEN fieldType = 'date' THEN STR_TO_DATE(fieldValue, '%Y-%m-%d'),
ELSE NULL
END
CASE
WHEN fieldType = 'top' THEN fieldValue,
ELSE NULL
END
</trim>
</if>
</select>
...
...
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