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
93867451
Commit
93867451
authored
Jun 07, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加测试app数据动态访问排序
parent
d8f44a88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
18 deletions
+15
-18
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
.../main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
+13
-14
base-manager/src/test/java/com/mortals/httpclient/app/AppDatasetController.http
...java/com/mortals/httpclient/app/AppDatasetController.http
+2
-4
No files found.
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
View file @
93867451
...
...
@@ -46,24 +46,25 @@
</if>
<include
refid=
"_second_condition_"
/>
<!-- <if test="condition.fieldCode!=null and condition.fieldCode!=''">
and b.fieldCode = #{condition.fieldCode,jdbcType=VARCHAR}
</if>
<if test="condition.fieldName!=null and condition.fieldName!=''">
and b.fieldName = #{condition.fieldName,jdbcType=VARCHAR}
</if>
<if test="condition.fieldValue != null and condition.fieldValue != ''">
and b.fieldValue like #{condition.fieldValue}
</if>-->
</trim>
</trim>
<if
test=
"(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()"
>
order by
<trim
prefix=
""
suffixOverrides=
","
suffix=
""
prefixOverrides=
","
>
CASE
WHEN fieldType = 'date' THEN STR_TO_DATE(fieldValue, '%Y-%m-%d'),
ELSE NULL
END
CASE
WHEN fieldType = 'top' THEN fieldValue,
ELSE NULL
END
IF
( `fieldType` = 'top', '0', '1' ),
`fieldValue` DESC,
<trim
prefix=
""
suffixOverrides=
","
suffix=
""
>
<if
test=
"orderCol.containsKey('id')"
>
a.id
<if
test=
'orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'
>
DESC
</if>
...
...
@@ -89,8 +90,6 @@
<if
test=
'orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'
>
DESC
</if>
,
</if>
</trim>
</if>
</select>
...
...
base-manager/src/test/java/com/mortals/httpclient/app/AppDatasetController.http
View file @
93867451
...
...
@@ -44,10 +44,8 @@ Content-Type: application/json
}
],
"page": 1,
"size": 10,
"orderCols": {
"id":"asc"
}
"size": 10
}
...
...
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