Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
klck
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
位宇华
klck
Commits
95ef8e09
Commit
95ef8e09
authored
Jul 01, 2024
by
刘_震
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电力汇总-代码修改
parent
36b22b73
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
ruoyi-wages/src/main/java/com/ruoyi/system/mapper/PowerWagesDeMapper.java
...main/java/com/ruoyi/system/mapper/PowerWagesDeMapper.java
+2
-0
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/PowerWagesServiceImpl.java
.../com/ruoyi/system/service/impl/PowerWagesServiceImpl.java
+1
-1
ruoyi-wages/src/main/resources/mapper/system/PowerWagesComMapper.xml
.../src/main/resources/mapper/system/PowerWagesComMapper.xml
+1
-2
ruoyi-wages/src/main/resources/mapper/system/PowerWagesDeMapper.xml
...s/src/main/resources/mapper/system/PowerWagesDeMapper.xml
+6
-2
No files found.
ruoyi-wages/src/main/java/com/ruoyi/system/mapper/PowerWagesDeMapper.java
View file @
95ef8e09
...
@@ -21,4 +21,6 @@ public interface PowerWagesDeMapper {
...
@@ -21,4 +21,6 @@ public interface PowerWagesDeMapper {
List
<
PowerWagesDetails
>
selectByMineIdAndDate
(
@Param
(
"mineId"
)
String
mineId
,
@Param
(
"date"
)
String
date
);
List
<
PowerWagesDetails
>
selectByMineIdAndDate
(
@Param
(
"mineId"
)
String
mineId
,
@Param
(
"date"
)
String
date
);
List
<
PowerWagesDetails
>
selectByCId
(
int
comparisonId
);
List
<
PowerWagesDetails
>
selectByCId
(
int
comparisonId
);
void
deleteByDateAndMineId
(
@Param
(
"mineId"
)
String
mineId
,
@Param
(
"date"
)
String
date
);
}
}
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/PowerWagesServiceImpl.java
View file @
95ef8e09
...
@@ -49,7 +49,7 @@ public class PowerWagesServiceImpl implements PowerWagesService {
...
@@ -49,7 +49,7 @@ public class PowerWagesServiceImpl implements PowerWagesService {
//定义需要解析的sheet名
//定义需要解析的sheet名
List
<
String
>
sheetList
=
Arrays
.
asList
(
"电量数据专业化公司"
,
"外界电量数据"
);
List
<
String
>
sheetList
=
Arrays
.
asList
(
"电量数据专业化公司"
,
"外界电量数据"
);
// 定义需要过滤的关键词列表
// 定义需要过滤的关键词列表
List
<
String
>
filterList
=
Arrays
.
asList
(
"
合计"
,
"小计"
,
"总表小计"
,
"劳服总表"
,
"校验"
,
"
null"
);
List
<
String
>
filterList
=
Arrays
.
asList
(
"null"
);
// 获取上传文件的输入流
// 获取上传文件的输入流
for
(
int
i
=
0
;
i
<
sheetList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
sheetList
.
size
();
i
++)
{
type
=
type
+
i
;
type
=
type
+
i
;
...
...
ruoyi-wages/src/main/resources/mapper/system/PowerWagesComMapper.xml
View file @
95ef8e09
...
@@ -377,8 +377,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -377,8 +377,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a56, a57, a58, a59, a60, a61, a62, a63, a64,
a56, a57, a58, a59, a60, a61, a62, a63, a64,
a65, a66, a67, a68, a69, a70, a71, a72, a73,
a65, a66, a67, a68, a69, a70, a71, a72, a73,
a74, a75, a76, a77, a78, a79, a80, a81, a82,
a74, a75, a76, a77, a78, a79, a80, a81, a82,
a83, a84, a85, a86, a87, a88, a89, a90,
a83, a84, a85, a86, a87, a88, a89, a90
mine_id, import_time, type
from power_wages_comparation
from power_wages_comparation
where mine_id = #{mineId} and import_time = #{date}
where mine_id = #{mineId} and import_time = #{date}
</select>
</select>
...
...
ruoyi-wages/src/main/resources/mapper/system/PowerWagesDeMapper.xml
View file @
95ef8e09
...
@@ -475,6 +475,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -475,6 +475,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{mineId},#{importTime},#{comparisonId})
#{mineId},#{importTime},#{comparisonId})
</foreach>
</foreach>
</insert>
</insert>
<delete
id=
"deleteByDateAndMineId"
>
delete from power_wages_details
where mine_id = #{mineId} and import_time = #{date}
</delete>
<select
id=
"selectByMineIdAndDate"
resultMap=
"PowerWagesDetailsResult"
>
<select
id=
"selectByMineIdAndDate"
resultMap=
"PowerWagesDetailsResult"
>
select id, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10,
select id, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10,
a11, a12, a13, a14, a15, a16, a17, a18, a19,
a11, a12, a13, a14, a15, a16, a17, a18, a19,
...
@@ -491,7 +495,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -491,7 +495,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where mine_id = #{mineId} and import_time = #{date}
where mine_id = #{mineId} and import_time = #{date}
</select>
</select>
<select
id=
"selectByCId"
resultMap=
"PowerWagesDetailsResult"
>
<select
id=
"selectByCId"
resultMap=
"PowerWagesDetailsResult"
>
select
id,
a1, a2, a3, a4, a5, a6, a7, a8, a9, a10,
select a1, a2, a3, a4, a5, a6, a7, a8, a9, a10,
a11, a12, a13, a14, a15, a16, a17, a18, a19,
a11, a12, a13, a14, a15, a16, a17, a18, a19,
a20, a21, a22, a23, a24, a25, a26, a27, a28,
a20, a21, a22, a23, a24, a25, a26, a27, a28,
a29, a30, a31, a32, a33, a34, a35, a36, a37,
a29, a30, a31, a32, a33, a34, a35, a36, a37,
...
@@ -501,7 +505,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -501,7 +505,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a65, a66, a67, a68, a69, a70, a71, a72, a73,
a65, a66, a67, a68, a69, a70, a71, a72, a73,
a74, a75, a76, a77, a78, a79, a80, a81, a82,
a74, a75, a76, a77, a78, a79, a80, a81, a82,
a83, a84, a85, a86, a87, a88, a89, a90,
a83, a84, a85, a86, a87, a88, a89, a90,
mine_id, import_time,
comparison_id
comparison_id
from power_wages_details
from power_wages_details
where comparison_id = #{comparsionId}
where comparison_id = #{comparsionId}
</select>
</select>
...
...
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