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
aa287978
Commit
aa287978
authored
Sep 13, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.scsmile.cn/zxf/smart_gov_platform
parents
80fe0d08
613b1137
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
8 deletions
+21
-8
base-manager/src/main/resources/config/mybatis-sqlmap-config.xml
...nager/src/main/resources/config/mybatis-sqlmap-config.xml
+1
-1
base-manager/src/main/resources/sqlmap/module/dept/DeptMapper.xml
...ager/src/main/resources/sqlmap/module/dept/DeptMapper.xml
+18
-6
base-manager/src/test/java/com/mortals/httpclient/dept/DeptController.http
...test/java/com/mortals/httpclient/dept/DeptController.http
+2
-1
No files found.
base-manager/src/main/resources/config/mybatis-sqlmap-config.xml
View file @
aa287978
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</plugin>
</plugin>
<plugin
interceptor=
"com.mortals.framework.thirty.mybatis.LogInterceptor"
>
<plugin
interceptor=
"com.mortals.framework.thirty.mybatis.LogInterceptor"
>
<property
name=
"enableExecutorTime"
value=
"true"
/>
<property
name=
"enableExecutorTime"
value=
"true"
/>
<property
name=
"showSql"
value=
"
fals
e"
/>
<property
name=
"showSql"
value=
"
tru
e"
/>
</plugin>
</plugin>
</plugins>
</plugins>
</configuration>
</configuration>
\ No newline at end of file
base-manager/src/main/resources/sqlmap/module/dept/DeptMapper.xml
View file @
aa287978
...
@@ -1092,14 +1092,31 @@
...
@@ -1092,14 +1092,31 @@
<sql
id=
"_orderCols_"
>
<sql
id=
"_orderCols_"
>
<if
test=
"orderColList != null and !orderColList.isEmpty()"
>
<if
test=
"orderColList != null and !orderColList.isEmpty()"
>
order by
order by
<if
test=
"conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0"
>
field(a.id,
<foreach
collection=
"conditionParamRef.idList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<trim
suffixOverrides=
","
suffix=
""
>
<trim
suffixOverrides=
","
suffix=
""
>
<foreach
collection=
"orderColList"
open=
""
close=
""
index=
"index"
item=
"item"
separator=
","
>
<foreach
collection=
"orderColList"
open=
""
close=
""
index=
"index"
item=
"item"
separator=
","
>
${item.colName} ${item.sortKind}
${item.colName} ${item.sortKind}
</foreach>
</foreach>
</trim>
</trim>
</if>
</if>
<if
test=
"(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()"
>
<if
test=
"(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()"
>
order by
order by
<if
test=
"conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0"
>
field(a.id,
<foreach
collection=
"conditionParamRef.idList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<trim
suffixOverrides=
","
suffix=
""
>
<trim
suffixOverrides=
","
suffix=
""
>
<if
test=
"orderCol.containsKey('id')"
>
<if
test=
"orderCol.containsKey('id')"
>
a.id
a.id
...
@@ -1213,12 +1230,7 @@
...
@@ -1213,12 +1230,7 @@
</if>
</if>
</trim>
</trim>
</if>
</if>
<if
test=
"conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0"
>
,field(a.id,
<foreach
collection=
"conditionParamRef.idList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
</sql>
</sql>
<sql
id=
"_group_by_"
>
<sql
id=
"_group_by_"
>
...
...
base-manager/src/test/java/com/mortals/httpclient/dept/DeptController.http
View file @
aa287978
...
@@ -10,7 +10,8 @@ Content-Type: application/json
...
@@ -10,7 +10,8 @@ Content-Type: application/json
POST {{baseUrl}}/dept/list
POST {{baseUrl}}/dept/list
Content-Type: application/json
Content-Type: application/json
{"siteId":1,"page":"1","size":"3","idList":[9,8,5,3]}
#{"siteId":1,"page":"1","size":"3","idList":[422,420,413,412],"orderColList":[{"colName":"sort","sortKind":"asc"}]}
{"siteId":1,"page":"1","size":"3","idList":[9,5,3,2],"orderColList":[{"colName":"sort","sortKind":"asc"}]}
###部门更新与保存
###部门更新与保存
POST {{baseUrl}}/dept/save
POST {{baseUrl}}/dept/save
Content-Type: application/json
Content-Type: application/json
...
...
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