Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
6c080275
Commit
6c080275
authored
Mar 10, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
0a3b8df0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+15
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
6c080275
...
@@ -47,6 +47,7 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -47,6 +47,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
@@ -364,6 +365,20 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -364,6 +365,20 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
{
{
long
id1
=
Long
.
parseLong
(
e
.
get
(
"id"
).
toString
());
long
id1
=
Long
.
parseLong
(
e
.
get
(
"id"
).
toString
());
formInstanceMapper
.
updateStr
(
id1
,
e
.
get
(
"name"
).
toString
(),
e
.
get
(
"full_name"
).
toString
(),
e
.
get
(
"parent_id"
).
toString
(),
e
.
get
(
"code"
).
toString
(),
bizOrgCode
,
bizOrgName
);
formInstanceMapper
.
updateStr
(
id1
,
e
.
get
(
"name"
).
toString
(),
e
.
get
(
"full_name"
).
toString
(),
e
.
get
(
"parent_id"
).
toString
(),
e
.
get
(
"code"
).
toString
(),
bizOrgCode
,
bizOrgName
);
List
<
Map
<
String
,
Object
>>
resultSon
=
formInstanceMapper
.
getParentId
(
id1
);
if
(
resultSon
.
size
()>
0
&&
resultSon
!=
null
){
resultSon
.
forEach
(
r
->{
long
id2
=
Long
.
parseLong
(
r
.
get
(
"id"
).
toString
());
formInstanceMapper
.
updateStr
(
id2
,
r
.
get
(
"name"
).
toString
(),
r
.
get
(
"full_name"
).
toString
(),
r
.
get
(
"parent_id"
).
toString
(),
r
.
get
(
"code"
).
toString
(),
bizOrgCode
,
bizOrgName
);
List
<
Map
<
String
,
Object
>>
resultSons
=
formInstanceMapper
.
getParentId
(
id2
);
if
(
resultSons
.
size
()>
0
&&
!
ValidationUtil
.
isEmpty
(
resultSons
)){
resultSons
.
forEach
(
z
->{
long
id3
=
Long
.
parseLong
(
z
.
get
(
"id"
).
toString
());
formInstanceMapper
.
updateStr
(
id3
,
z
.
get
(
"name"
).
toString
(),
z
.
get
(
"full_name"
).
toString
(),
z
.
get
(
"parent_id"
).
toString
(),
z
.
get
(
"code"
).
toString
(),
bizOrgCode
,
bizOrgName
);
});
}
});
}
});
});
}
}
//3.修改仓库对应子数据
//3.修改仓库对应子数据
...
...
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