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
6416a161
Commit
6416a161
authored
Oct 31, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加窗口大厅站点选项
parent
6aef6ef6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
8 deletions
+36
-8
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
.../main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
+36
-1
base-manager/src/test/java/com/mortals/httpclient/app/AppDatasetController.http
...java/com/mortals/httpclient/app/AppDatasetController.http
+0
-7
No files found.
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
View file @
6416a161
...
...
@@ -57,7 +57,42 @@
</if>-->
</trim>
</trim>
<include
refid=
"_orderCols_"
/>
<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')"
>
a.id
<if
test=
'orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('appId')"
>
a.appId
<if
test=
'orderCol.appId != null and "DESC".equalsIgnoreCase(orderCol.appId)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('createTime')"
>
a.createTime
<if
test=
'orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('updateUserId')"
>
a.updateUserId
<if
test=
'orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('updateTime')"
>
a.updateTime
<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 @
6416a161
...
...
@@ -20,13 +20,6 @@ Content-Type: application/json
{
"siteId": 1,
"appId": 79,
"orConditionList": [ {
"fieldCode":"year",
"fieldValue":"2022"
},{
"fieldCode":"yOrm",
"fieldValue":"0"
}],
"page": 1,
"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