Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhny
Project
Project
Details
Activity
Releases
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
王夏晖
zhny
Commits
6d026bd7
Commit
6d026bd7
authored
Aug 07, 2018
by
jichao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备维护--设备报表,表头顺序混乱的bug
parent
639f2ca4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ReportRepository.java
.../rcisoft/business/device/report/dao/ReportRepository.java
+2
-2
ReportServiceImpl.java
...usiness/device/report/service/impl/ReportServiceImpl.java
+1
-1
logback-spring.xml
src/main/resources/logback-spring.xml
+3
-3
No files found.
src/main/java/org/rcisoft/business/device/report/dao/ReportRepository.java
View file @
6d026bd7
...
...
@@ -22,8 +22,8 @@ public interface ReportRepository {
*/
@Select
(
"<script>select b.DEV_NUM,b.DEV_NM,bp.PARAM,dp.P_SOURCE,dp.PARAM_NM "
+
"from bus_device_param bp,bus_devicetp_param dp,bus_device b "
+
"where bp.PARAM_CODE=dp.PARAM_CODE and b.PRO_ID=dp.PRO_ID and bp.DEV_NUM=b.DEV_NUM and b.PRO_ID=#{proId}"
+
"order by b.DEV_NUM,dp.P_SOURCE</script>"
)
"where bp.PARAM_CODE=dp.PARAM_CODE and b.PRO_ID=dp.PRO_ID and bp.DEV_NUM=b.DEV_NUM and b.PRO_ID=#{proId}
"
+
"order by b.DEV_NUM,dp.P_SOURCE
,bp.PARAM
</script>"
)
@ResultMap
(
value
=
"report"
)
List
<
Report
>
reportList
(
Params
params
);
...
...
src/main/java/org/rcisoft/business/device/report/service/impl/ReportServiceImpl.java
View file @
6d026bd7
...
...
@@ -157,7 +157,7 @@ public class ReportServiceImpl implements ReportService {
row
.
createCell
(
size
+
1
,
CellType
.
STRING
).
setCellValue
(
original
.
getElec
());
row
.
createCell
(
size
+
2
,
CellType
.
STRING
).
setCellValue
(
original
.
getGas
());
//用完删除当前行的数据
originalList
.
remove
(
i
--);
//
originalList.remove(i--);
}
}
});
...
...
src/main/resources/logback-spring.xml
View file @
6d026bd7
...
...
@@ -24,7 +24,7 @@
<!--滚动策略-->
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<!--路径-->
<fileNamePattern>
/zhny/logs/info.%d.log
</fileNamePattern>
<fileNamePattern>
/
home/
zhny/logs/info.%d.log
</fileNamePattern>
</rollingPolicy>
</appender>
...
...
@@ -45,7 +45,7 @@
<!--滚动策略-->
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<!--路径-->
<fileNamePattern>
/zhny/logs/error.%d.log
</fileNamePattern>
<fileNamePattern>
/
home/
zhny/logs/error.%d.log
</fileNamePattern>
</rollingPolicy>
</appender>
<!--
...
...
@@ -64,7 +64,7 @@
</springProfile>
<springProfile
name=
"prod"
>
<root
level=
"
info
"
>
<root
level=
"
warn
"
>
<appender-ref
ref=
"consoleLog"
/>
<appender-ref
ref=
"fileInfoLog"
/>
<appender-ref
ref=
"fileErrorLog"
/>
...
...
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