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
8d23f5db
Commit
8d23f5db
authored
Oct 08, 2023
by
lenovo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据清洗功能完善(重新导入删除旧数据)
parent
558c2d26
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
457 additions
and
126 deletions
+457
-126
ruoyi-supplies/src/main/java/com/ruoyi/system/mapper/ActSuppliesHistorydataMapper.java
...com/ruoyi/system/mapper/ActSuppliesHistorydataMapper.java
+1
-1
ruoyi-supplies/src/main/java/com/ruoyi/system/service/impl/ActSuppliesHistorydataServiceImpl.java
...ystem/service/impl/ActSuppliesHistorydataServiceImpl.java
+18
-2
ruoyi-supplies/src/main/resources/mapper/system/ActSuppliesHistorydataMapper.xml
.../resources/mapper/system/ActSuppliesHistorydataMapper.xml
+2
-2
ruoyi-ui/src/views/system/supplies/index.vue
ruoyi-ui/src/views/system/supplies/index.vue
+436
-121
No files found.
ruoyi-supplies/src/main/java/com/ruoyi/system/mapper/ActSuppliesHistorydataMapper.java
View file @
8d23f5db
...
@@ -61,7 +61,7 @@ public interface ActSuppliesHistorydataMapper
...
@@ -61,7 +61,7 @@ public interface ActSuppliesHistorydataMapper
Long
[]
selectActSuppliesRole
(
Long
templateId
);
Long
[]
selectActSuppliesRole
(
Long
templateId
);
L
ong
selectActSuppliesHistorydatauuid
(
String
exportUuid
);
L
ist
<
ActSuppliesHistorydata
>
selectActSuppliesHistorydatauuid
(
String
exportUuid
);
void
insertActSuppliesHistorydatas
(
ActSuppliesHistorydata
actSuppliesHistorydata1
);
void
insertActSuppliesHistorydatas
(
ActSuppliesHistorydata
actSuppliesHistorydata1
);
...
...
ruoyi-supplies/src/main/java/com/ruoyi/system/service/impl/ActSuppliesHistorydataServiceImpl.java
View file @
8d23f5db
...
@@ -8,6 +8,7 @@ import java.util.List;
...
@@ -8,6 +8,7 @@ import java.util.List;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.system.mapper.ActSuppliesCleaningRuleMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.ActSuppliesHistorydataMapper
;
import
com.ruoyi.system.mapper.ActSuppliesHistorydataMapper
;
...
@@ -26,6 +27,9 @@ public class ActSuppliesHistorydataServiceImpl implements IActSuppliesHistorydat
...
@@ -26,6 +27,9 @@ public class ActSuppliesHistorydataServiceImpl implements IActSuppliesHistorydat
@Autowired
@Autowired
private
ActSuppliesHistorydataMapper
actSuppliesHistorydataMapper
;
private
ActSuppliesHistorydataMapper
actSuppliesHistorydataMapper
;
@Autowired
private
ActSuppliesCleaningRuleMapper
actSuppliesCleaningRuleMapper
;
/**
/**
* 查询 历史数据
* 查询 历史数据
*
*
...
@@ -112,14 +116,26 @@ public class ActSuppliesHistorydataServiceImpl implements IActSuppliesHistorydat
...
@@ -112,14 +116,26 @@ public class ActSuppliesHistorydataServiceImpl implements IActSuppliesHistorydat
SysUser
user
=
SecurityUtils
.
getLoginUser
().
getUser
();
SysUser
user
=
SecurityUtils
.
getLoginUser
().
getUser
();
ActSuppliesHistorydata
actSuppliesHistorydata1
=
new
ActSuppliesHistorydata
();
ActSuppliesHistorydata
actSuppliesHistorydata1
=
new
ActSuppliesHistorydata
();
Long
s
=
actSuppliesHistorydataMapper
.
selectActSuppliesHistorydatauuid
(
actSuppliesHistorydata
.
get
(
0
).
getImportUuid
());
List
<
ActSuppliesHistorydata
>
s
=
actSuppliesHistorydataMapper
.
selectActSuppliesHistorydatauuid
(
actSuppliesHistorydata
.
get
(
0
).
getImportUuid
());
if
(
s
.
size
()>
0
){
if
(
s
.
get
(
0
).
getCleanStatus
()>
0
){
for
(
int
j
=
0
;
j
<
s
.
size
();
j
++){
if
(
s
.
get
(
j
).
getIdentifyingCode
()==
0
){
actSuppliesCleaningRuleMapper
.
deleteActSuppliesImportTable
(
s
.
get
(
j
).
getId
());
}
else
if
(
s
.
get
(
j
).
getIdentifyingCode
()==
1
){
actSuppliesCleaningRuleMapper
.
deleteActSuppliesSixMinesSummaryTable
(
s
.
get
(
j
).
getId
());
}
}
if
(
s
>
0
){
}
for
(
int
i
=
0
;
i
<
actSuppliesHistorydata
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
actSuppliesHistorydata
.
size
();
i
++)
{
actSuppliesHistorydata
.
get
(
i
).
setCreateBy
(
user
.
getUserName
());
actSuppliesHistorydata
.
get
(
i
).
setCreateBy
(
user
.
getUserName
());
actSuppliesHistorydata
.
get
(
i
).
setCreateTime
(
DateUtils
.
getNowDate
());
actSuppliesHistorydata
.
get
(
i
).
setCreateTime
(
DateUtils
.
getNowDate
());
actSuppliesHistorydataMapper
.
updateActSuppliesHistorydatas
(
actSuppliesHistorydata
.
get
(
i
));
actSuppliesHistorydataMapper
.
updateActSuppliesHistorydatas
(
actSuppliesHistorydata
.
get
(
i
));
}
}
}
else
{
}
else
{
...
...
ruoyi-supplies/src/main/resources/mapper/system/ActSuppliesHistorydataMapper.xml
View file @
8d23f5db
...
@@ -118,8 +118,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -118,8 +118,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectActSuppliesHistorydatauuid"
parameterType=
"String"
result
Type=
"Long
"
>
<select
id=
"selectActSuppliesHistorydatauuid"
parameterType=
"String"
result
Map=
"ActSuppliesHistorydataResult
"
>
select
count(*)
from act_supplies_historydata where import_uuid = #{importUuid}
select
id, import_uuid, template_id, export_uuid, role_id, history_name, identifying_code,clean_status ,status, create_by, date, create_time, ssk_id
from act_supplies_historydata where import_uuid = #{importUuid}
</select>
</select>
<select
id=
"selectActSuppliesRole"
parameterType=
"Long"
resultType=
"Long"
>
<select
id=
"selectActSuppliesRole"
parameterType=
"Long"
resultType=
"Long"
>
...
...
ruoyi-ui/src/views/system/supplies/index.vue
View file @
8d23f5db
This diff is collapsed.
Click to expand it.
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