Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
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
曲欣亮
shop
Commits
7795a4a8
Commit
7795a4a8
authored
Sep 29, 2024
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a57013a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
OrderServiceImpl.java
...ava/com/egolm/shop/api/service/impl/OrderServiceImpl.java
+4
-4
No files found.
src/main/java/com/egolm/shop/api/service/impl/OrderServiceImpl.java
View file @
7795a4a8
...
...
@@ -1576,7 +1576,7 @@ public class OrderServiceImpl implements OrderService {
@Override
public
String
submitV2
(
Map
<
String
,
Object
>
map
)
{
DefaultTransactionDefinition
def
=
new
DefaultTransactionDefinition
();
/*
DefaultTransactionDefinition def = new DefaultTransactionDefinition();
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
...
...
@@ -1585,7 +1585,7 @@ public class OrderServiceImpl implements OrderService {
DataSource dataSource = jdbcTemplate.getDataSource();
// 此处PlatformTransactionManager对象初始化,应单独用一个类管理,不应每次都创建一个新的
PlatformTransactionManager transactionManager = new DataSourceTransactionManager(dataSource);
TransactionStatus
status
=
transactionManager
.
getTransaction
(
def
);
TransactionStatus status = transactionManager.getTransaction(def);
*/
String
LangID
=
""
+
map
.
get
(
"langID"
);
try
{
...
...
@@ -1648,14 +1648,14 @@ public class OrderServiceImpl implements OrderService {
}
else
{
errorMsg
=
(
String
)
pcommitMap
.
get
(
0
).
get
(
"StatusName"
);
}
transactionManager
.
rollback
(
status
);
//
transactionManager.rollback(status);
return
Rjx
.
jsonErr
().
setMessage
(
errorMsg
).
set
(
"errorMsg"
,
errorMsg
).
setData
(
pcommitMap
).
toJson
();
}
}
}
transactionManager
.
commit
(
status
);
//
transactionManager.commit(status);
return
Rjx
.
jsonOk
().
setData
(
commitMap
).
toJson
();
}
else
{
String
errorMsg
=
""
;
...
...
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