Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qianhe-ydsj
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangyun
qianhe-ydsj
Commits
2b6cb45d
Commit
2b6cb45d
authored
Oct 15, 2024
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
ad8fbe93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
qianhe-ydsj/src/main/java/com/qianhe/service/impl/BzscSczhzxscZbServiceImpl.java
+6
-1
qianhe-ydsj/src/main/java/com/qianhe/service/impl/BzscZczscZbServiceImpl.java
+5
-0
No files found.
qianhe-ydsj/src/main/java/com/qianhe/service/impl/BzscSczhzxscZbServiceImpl.java
View file @
2b6cb45d
...
...
@@ -3,6 +3,7 @@ package com.qianhe.service.impl;
import
java.util.Iterator
;
import
java.util.List
;
import
cn.hutool.core.codec.Base64
;
import
com.qianhe.common.annotation.DataScope
;
import
com.qianhe.common.utils.DateUtils
;
import
com.qianhe.common.utils.bean.BeanUtils
;
...
...
@@ -140,13 +141,15 @@ public class BzscSczhzxscZbServiceImpl implements IBzscSczhzxscZbService
bzscSczhzxscCb
.
setParentId
(
0L
);
bzscSczhzxscCb
.
setDeptId
(
bzscSczhzxscZb
.
getDeptId
());
bzscSczhzxscCb
.
setNd
(
bzscSczhzxscZb
.
getNd
());
bzscSczhzxscCb
.
setNr
(
new
String
(
Base64
.
decode
(
bzscSczhzxscCb
.
getNr
())));
bzscSczhzxscZbMapper
.
insertBzscSczhzxscCb
(
bzscSczhzxscCb
);
if
(
StringUtils
.
isNotNull
(
bzscSczhzxscCb
.
getChildList
())){
for
(
BzscSczhzxscCb
cb1:
bzscSczhzxscCb
.
getChildList
()){
cb1
.
setZbId
(
ID
);
cb1
.
setParentId
(
bzscSczhzxsc
Z
b
.
getID
());
cb1
.
setParentId
(
bzscSczhzxsc
C
b
.
getID
());
cb1
.
setDeptId
(
bzscSczhzxscZb
.
getDeptId
());
cb1
.
setNd
(
bzscSczhzxscZb
.
getNd
());
cb1
.
setNr
(
new
String
(
Base64
.
decode
(
cb1
.
getNr
())));
bzscSczhzxscZbMapper
.
insertBzscSczhzxscCb
(
cb1
);
if
(
cb1
.
getChildList
().
size
()>
0
){
for
(
BzscSczhzxscCb
cb2:
cb1
.
getChildList
()){
...
...
@@ -154,6 +157,7 @@ public class BzscSczhzxscZbServiceImpl implements IBzscSczhzxscZbService
cb2
.
setParentId
(
cb1
.
getID
());
cb2
.
setDeptId
(
bzscSczhzxscZb
.
getDeptId
());
cb2
.
setNd
(
bzscSczhzxscZb
.
getNd
());
cb2
.
setNr
(
new
String
(
Base64
.
decode
(
cb2
.
getNr
())));
bzscSczhzxscZbMapper
.
insertBzscSczhzxscCb
(
cb2
);
}
}
else
{
...
...
@@ -164,6 +168,7 @@ public class BzscSczhzxscZbServiceImpl implements IBzscSczhzxscZbService
cb2
.
setParentId
(
cb1
.
getID
());
cb2
.
setDeptId
(
bzscSczhzxscZb
.
getDeptId
());
cb2
.
setNd
(
bzscSczhzxscZb
.
getNd
());
cb2
.
setNr
(
new
String
(
Base64
.
decode
(
cb2
.
getNr
())));
bzscSczhzxscZbMapper
.
insertBzscSczhzxscCb
(
cb2
);
}
}
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/impl/BzscZczscZbServiceImpl.java
View file @
2b6cb45d
...
...
@@ -3,6 +3,7 @@ package com.qianhe.service.impl;
import
java.util.Iterator
;
import
java.util.List
;
import
cn.hutool.core.codec.Base64
;
import
com.qianhe.common.annotation.DataScope
;
import
com.qianhe.common.utils.DateUtils
;
import
com.qianhe.common.utils.SecurityUtils
;
...
...
@@ -142,6 +143,7 @@ public class BzscZczscZbServiceImpl implements IBzscZczscZbService
bzscZczscCb
.
setParentId
(
0L
);
bzscZczscCb
.
setDeptId
(
bzscZczscZb
.
getDeptId
());
bzscZczscCb
.
setNd
(
bzscZczscZb
.
getNd
());
bzscZczscCb
.
setNr
(
new
String
(
Base64
.
decode
(
bzscZczscCb
.
getNr
())));
bzscZczscZbMapper
.
insertBzscZczscCb
(
bzscZczscCb
);
if
(
StringUtils
.
isNotNull
(
bzscZczscCb
.
getChildList
())){
for
(
BzscZczscCb
cb1:
bzscZczscCb
.
getChildList
()){
...
...
@@ -149,6 +151,7 @@ public class BzscZczscZbServiceImpl implements IBzscZczscZbService
cb1
.
setParentId
(
bzscZczscCb
.
getID
());
cb1
.
setDeptId
(
bzscZczscZb
.
getDeptId
());
cb1
.
setNd
(
bzscZczscZb
.
getNd
());
cb1
.
setNr
(
new
String
(
Base64
.
decode
(
cb1
.
getNr
())));
bzscZczscZbMapper
.
insertBzscZczscCb
(
cb1
);
if
(
cb1
.
getChildList
().
size
()>
0
){
for
(
BzscZczscCb
cb2:
cb1
.
getChildList
()){
...
...
@@ -156,6 +159,7 @@ public class BzscZczscZbServiceImpl implements IBzscZczscZbService
cb2
.
setParentId
(
cb1
.
getID
());
cb2
.
setDeptId
(
bzscZczscZb
.
getDeptId
());
cb2
.
setNd
(
bzscZczscZb
.
getNd
());
cb2
.
setNr
(
new
String
(
Base64
.
decode
(
cb2
.
getNr
())));
bzscZczscZbMapper
.
insertBzscZczscCb
(
cb2
);
}
}
else
{
...
...
@@ -166,6 +170,7 @@ public class BzscZczscZbServiceImpl implements IBzscZczscZbService
cb2
.
setParentId
(
cb1
.
getID
());
cb2
.
setDeptId
(
bzscZczscZb
.
getDeptId
());
cb2
.
setNd
(
bzscZczscZb
.
getNd
());
cb2
.
setNr
(
new
String
(
Base64
.
decode
(
cb2
.
getNr
())));
bzscZczscZbMapper
.
insertBzscZczscCb
(
cb2
);
}
}
...
...
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