Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
base-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
赵啸非
base-platform
Commits
78ebfe47
Commit
78ebfe47
authored
Apr 18, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改构建api文档
parent
3b223dab
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
7 deletions
+21
-7
base-manager/src/main/java/com/mortals/xhx/base/framework/config/P6spySqlFormatConfig.java
...rtals/xhx/base/framework/config/P6spySqlFormatConfig.java
+1
-1
base-manager/src/main/resources/spy.properties
base-manager/src/main/resources/spy.properties
+1
-1
base-manager/src/main/resources/sqlmap/module/business/BusinessMatterExt.xml
...in/resources/sqlmap/module/business/BusinessMatterExt.xml
+15
-0
base-manager/src/test/java/com/mortals/httpclient/business/BusinessMatterController.http
...mortals/httpclient/business/BusinessMatterController.http
+4
-5
No files found.
base-manager/src/main/java/com/mortals/xhx/base/framework/config/P6spySqlFormatConfig.java
View file @
78ebfe47
...
@@ -18,7 +18,7 @@ public class P6spySqlFormatConfig implements MessageFormattingStrategy {
...
@@ -18,7 +18,7 @@ public class P6spySqlFormatConfig implements MessageFormattingStrategy {
@Override
@Override
public
String
formatMessage
(
int
connectionId
,
String
now
,
long
elapsed
,
String
category
,
String
prepared
,
String
sql
,
String
url
)
{
public
String
formatMessage
(
int
connectionId
,
String
now
,
long
elapsed
,
String
category
,
String
prepared
,
String
sql
,
String
url
)
{
log
.
info
(
String
.
format
(
"connectionId:%d now:%s elapsed:%d category:%s
prepared:%s"
,
connectionId
,
now
,
elapsed
,
category
,
prepared
));
log
.
info
(
String
.
format
(
"connectionId:%d now:%s elapsed:%d category:%s
"
,
connectionId
,
now
,
elapsed
,
category
));
return
StringUtils
.
isNotBlank
(
sql
)
?
DateUtils
.
getCurrStrDateTime
()
return
StringUtils
.
isNotBlank
(
sql
)
?
DateUtils
.
getCurrStrDateTime
()
+
" | 耗时 "
+
elapsed
+
" ms | SQL 语句:"
+
StringUtils
.
LF
+
sql
.
replaceAll
(
"[\\s]+"
,
StringUtils
.
SPACE
)
+
";"
:
""
;
+
" | 耗时 "
+
elapsed
+
" ms | SQL 语句:"
+
StringUtils
.
LF
+
sql
.
replaceAll
(
"[\\s]+"
,
StringUtils
.
SPACE
)
+
";"
:
""
;
...
...
base-manager/src/main/resources/spy.properties
View file @
78ebfe47
...
@@ -3,7 +3,7 @@ module.log=com.p6spy.engine.logging.P6LogFactory,com.p6spy.engine.outage.P6Outag
...
@@ -3,7 +3,7 @@ module.log=com.p6spy.engine.logging.P6LogFactory,com.p6spy.engine.outage.P6Outag
logMessageFormat
=
com.mortals.xhx.base.framework.config.P6spySqlFormatConfig
logMessageFormat
=
com.mortals.xhx.base.framework.config.P6spySqlFormatConfig
#customLogMessageFormat=%(currentTime) | SQL耗时: %(executionTime) ms | 连接信息: %(category)-%(connectionId) | 执行语句: %(sql)
#customLogMessageFormat=%(currentTime) | SQL耗时: %(executionTime) ms | 连接信息: %(category)-%(connectionId) | 执行语句: %(sql)
# 使用控制台记录sql
# 使用控制台记录sql
appender
=
com.p6spy.engine.spy.appender.
Stdout
Logger
appender
=
com.p6spy.engine.spy.appender.
File
Logger
## 配置记录Log例外
## 配置记录Log例外
#excludecategories=info,debug,result,batc,resultset
#excludecategories=info,debug,result,batc,resultset
# 设置使用p6spy driver来做代理
# 设置使用p6spy driver来做代理
...
...
base-manager/src/main/resources/sqlmap/module/business/BusinessMatterExt.xml
View file @
78ebfe47
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
WHERE
WHERE
id IN ( SELECT MAX( id ) FROM mortals_sys_business_matter as a WHERE
id IN ( SELECT MAX( id ) FROM mortals_sys_business_matter as a WHERE
a.siteId = #{condition.siteId}
a.siteId = #{condition.siteId}
<if
test=
"condition.siteBusinessName!=null and condition.siteBusinessName!=''"
>
AND a.siteBusinessName like #{condition.siteBusinessName}
</if>
GROUP BY
GROUP BY
a.siteBusinessId
a.siteBusinessId
)
)
...
@@ -24,6 +27,11 @@
...
@@ -24,6 +27,11 @@
WHERE
WHERE
id IN ( SELECT MAX( id ) FROM mortals_sys_business_matter as a WHERE
id IN ( SELECT MAX( id ) FROM mortals_sys_business_matter as a WHERE
a.siteId = #{condition.siteId}
a.siteId = #{condition.siteId}
<if
test=
"condition.siteBusinessName!=null and condition.siteBusinessName!=''"
>
AND a.siteBusinessName like #{condition.siteBusinessName}
</if>
GROUP BY
GROUP BY
a.siteBusinessId
a.siteBusinessId
)
)
...
@@ -38,6 +46,10 @@
...
@@ -38,6 +46,10 @@
WHERE
WHERE
id IN ( SELECT MAX( id ) FROM mortals_sys_business_matter as a WHERE
id IN ( SELECT MAX( id ) FROM mortals_sys_business_matter as a WHERE
a.siteId = #{condition.siteId}
a.siteId = #{condition.siteId}
<if
test=
"condition.matterName!=null and condition.matterName!=''"
>
AND a.matterName like #{condition.matterName}
</if>
GROUP BY
GROUP BY
a.matterId
a.matterId
)
)
...
@@ -50,6 +62,9 @@
...
@@ -50,6 +62,9 @@
WHERE
WHERE
id IN ( SELECT MAX( id ) FROM mortals_sys_business_matter as a WHERE
id IN ( SELECT MAX( id ) FROM mortals_sys_business_matter as a WHERE
a.siteId = #{condition.siteId}
a.siteId = #{condition.siteId}
<if
test=
"condition.matterName!=null and condition.matterName!=''"
>
AND a.matterName like #{condition.matterName}
</if>
GROUP BY
GROUP BY
a.matterId
a.matterId
)
)
...
...
base-manager/src/test/java/com/mortals/httpclient/business/BusinessMatterController.http
View file @
78ebfe47
...
@@ -4,11 +4,10 @@ POST {{baseUrl}}/business/matter/list
...
@@ -4,11 +4,10 @@ POST {{baseUrl}}/business/matter/list
Content-Type: application/json
Content-Type: application/json
{
{
"siteId":4680 ,
"page": 1,
"siteBusinessId":8550 ,
"siteBusinessName": "%不动产抵押登记%",
"matterId":5654 ,
"siteId": 53,
"page":1,
"size": 10
"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