Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
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
王衍超
cloud-fb
Commits
6574cc77
Commit
6574cc77
authored
May 27, 2021
by
高晓磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
场站修改时不删除生产线
parent
db67d701
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
StationDaoImpl.java
.../java/com/xyst/dinas/biz/internal/dao/StationDaoImpl.java
+6
-3
No files found.
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/internal/dao/StationDaoImpl.java
View file @
6574cc77
...
...
@@ -101,17 +101,20 @@ public class StationDaoImpl extends AbstractBaseDao implements StationDao, Stat
kobject
.
set
(
BaseConstants
.
MODIFY_TIME
,
new
Date
());
kobject
.
set
(
BaseConstants
.
MODIFIER
,
staff
);
kobject
.
set
(
BaseConstants
.
DEL
,
false
);
template
.
deleteAll
(
id
.
get
(
"productionLines"
).
toList
());
// template.deleteAll(id.get("productionLines").toList());
KObject
productions
=
kobject
.
get
(
"productionLines"
);
if
(
null
!=
productions
){
List
<
KObject
>
kObjects
=
productions
.
toList
();
for
(
KObject
object
:
kObjects
)
{
object
.
set
(
"station"
,
kobject
);
if
(
null
==
object
.
getUuid
(
"id"
)){
object
.
set
(
"id"
,
UUID
.
randomUUID
());
template
.
save
(
ProductionLineConstant
.
ENTITY
,
object
);
}
else
{
template
.
update
(
ProductionLineConstant
.
ENTITY
,
object
);
}
object
.
set
(
"station"
,
kobject
);
template
.
save
(
ProductionLineConstant
.
ENTITY
,
object
);
}
}
template
.
merge
(
kobject
);
...
...
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