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
f9f06365
Commit
f9f06365
authored
Oct 12, 2023
by
lvzhuangzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据清洗,添加事务
parent
fc9c3e6e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ruoyi-supplies/src/main/java/com/ruoyi/system/service/impl/ActSuppliesHistorydataServiceImpl.java
...ystem/service/impl/ActSuppliesHistorydataServiceImpl.java
+5
-0
No files found.
ruoyi-supplies/src/main/java/com/ruoyi/system/service/impl/ActSuppliesHistorydataServiceImpl.java
View file @
f9f06365
...
...
@@ -15,6 +15,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.ActSuppliesHistorydataMapper
;
import
com.ruoyi.system.service.IActSuppliesHistorydataService
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
org.springframework.transaction.annotation.Transactional
;
/**
* 历史数据Service业务层处理
...
...
@@ -23,6 +25,7 @@ import com.ruoyi.system.service.IActSuppliesHistorydataService;
* @date 2023-08-01
*/
@Service
@EnableTransactionManagement
public
class
ActSuppliesHistorydataServiceImpl
implements
IActSuppliesHistorydataService
{
@Autowired
...
...
@@ -198,6 +201,7 @@ public class ActSuppliesHistorydataServiceImpl implements IActSuppliesHistorydat
* @return 结果
*/
@Override
@Transactional
public
void
addInsertImport
(
List
<
ActOperation1
>
actOperation2s
)
{
//创建新线程
Thread
thread
=
new
Thread
(){
...
...
@@ -263,6 +267,7 @@ public class ActSuppliesHistorydataServiceImpl implements IActSuppliesHistorydat
* @return 结果
*/
@Override
@Transactional
public
void
addInsertImportss
(
List
<
ActOperation1
>
actOperation2s
)
{
Thread
thread
=
new
Thread
()
{
...
...
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