Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
a3f3ba1a
Commit
a3f3ba1a
authored
Jul 04, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据
parent
fd7ab7a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
16 deletions
+19
-16
MonitorFanIndicatorMapper.xml
...i/src/main/resources/mapper/MonitorFanIndicatorMapper.xml
+5
-5
MasterDbConfig.java
...oin/amos/boot/module/jxiop/biz/config/MasterDbConfig.java
+14
-11
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/MonitorFanIndicatorMapper.xml
View file @
a3f3ba1a
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
<mapper
namespace=
"com.yeejoin.amos.boot.module.jxiop.api.mapper.MonitorFanIndicatorMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.jxiop.api.mapper.MonitorFanIndicatorMapper"
>
<update
id=
""
>
<update
id=
"
UpdateMonitorFanIndicator
"
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
>
update monitor_fan_indicator set indicator_value =#{item.indicatorValue} ,set time=#{item.time}
update monitor_fan_indicator set indicator_value =#{item.indicatorValue} ,set time=#{item.time}
where gateway=#{time.gateway} and index_address=#{time.indexAddress}
where gateway=#{time.gateway} and index_address=#{time.indexAddress}
</foreach>
</foreach>
</update>
</update>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/config/MasterDbConfig.java
View file @
a3f3ba1a
...
@@ -73,17 +73,20 @@ public class MasterDbConfig {
...
@@ -73,17 +73,20 @@ public class MasterDbConfig {
//分页插件
//分页插件
Interceptor
interceptor
=
new
PageInterceptor
();
Interceptor
interceptor
=
new
PageInterceptor
();
Properties
properties
=
new
Properties
();
Properties
properties
=
new
Properties
();
//数据库
properties
.
setProperty
(
"helperDialect"
,
"mysql"
);
properties
.
setProperty
(
"helperDialect"
,
"mysql"
);
properties
.
setProperty
(
"offsetAsPageNum"
,
"true"
);
//是否将参数offset作为PageNum使用
properties
.
setProperty
(
"rowBoundsWithCount"
,
"true"
);
properties
.
setProperty
(
"offsetAsPageNum"
,
"true"
);
properties
.
setProperty
(
"reasonable"
,
"true"
);
//是否进行count查询
properties
.
setProperty
(
"supportMethodsArguments"
,
"true"
);
properties
.
setProperty
(
"rowBoundsWithCount"
,
"true"
);
properties
.
setProperty
(
"params"
,
"pageNum=pageNum;pageSize=pageSize"
+
//是否分页合理化
""
+
properties
.
setProperty
(
"reasonable"
,
"false"
);
";"
);
interceptor
.
setProperties
(
properties
);
interceptor
.
setProperties
(
properties
);
sessionFactory
.
setPlugins
(
new
Interceptor
[]
{
interceptor
});
sessionFactory
.
setPlugins
(
new
Interceptor
[]
{
interceptor
});
return
sessionFactory
.
getObject
();
return
sessionFactory
.
getObject
();
...
...
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