Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1028d36b
authored
Aug 04, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp2jpa
1 parent
731bda9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
View file @
1028d36
...
...
@@ -20,6 +20,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.persistence.EntityManager
;
import
java.util.*
;
...
...
@@ -139,6 +140,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
return
Result
.
success
(
resp
);
}
@Transactional
@Override
public
Result
<?>
businessServiceBlockAdd
(
String
layerId
,
String
teamId
)
throws
BusinessException
{
...
...
@@ -188,7 +190,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
String
blockName
=
String
.
format
(
"%s_%s"
,
layerName
,
team
.
getTeamName
());
//区块名称
MapBlockInfo
block
=
new
MapBlockInfo
();
MapBlockInfo
Entity
block
=
new
MapBlockInfoEntity
();
block
.
setBlockId
(
blockId
);
block
.
setBlockName
(
blockName
);
block
.
setBranchId
(
team
.
getBranchId
());
...
...
@@ -196,8 +198,8 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
block
.
setTeamId
(
teamId
);
block
.
setLayerId
(
layerId
);
block
.
setLayer
(
layerName
);
block
.
setStatus
(
1
);
mapBlockInfoMPDao
.
inser
t
(
block
);
block
.
setStatus
(
true
);
entityManager
.
persis
t
(
block
);
return
Result
.
success
(
null
);
}
...
...
@@ -226,6 +228,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
return
saasLayerId
;
}
@Transactional
@Override
public
Result
<?>
businessServiceBlockRemove
(
String
blockId
)
throws
BusinessException
{
MapBlockInfoEntity
block
=
mapBlockInfoDao
.
findByBlockId
(
blockId
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment