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
04d78e03
Commit
04d78e03
authored
Feb 22, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
b205a1ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
FormInstanceMapper.java
...va/com/yeejoin/equipmanage/mapper/FormInstanceMapper.java
+1
-1
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+2
-1
FormInstanceMapper.xml
...em-equip/src/main/resources/mapper/FormInstanceMapper.xml
+2
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FormInstanceMapper.java
View file @
04d78e03
...
...
@@ -138,7 +138,7 @@ public interface FormInstanceMapper extends BaseMapper<FormInstance> {
/**
* 修改仓库
*/
int
updateStr
(
@Param
(
"id"
)
Long
id
,
@Param
(
"name"
)
String
name
,
@Param
(
"fullName"
)
String
fullName
,
@Param
(
"parentId"
)
String
parentId
,
@Param
(
"code"
)
String
code
);
int
updateStr
(
@Param
(
"id"
)
Long
id
,
@Param
(
"name"
)
String
name
,
@Param
(
"fullName"
)
String
fullName
,
@Param
(
"parentId"
)
String
parentId
,
@Param
(
"code"
)
String
code
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
04d78e03
...
...
@@ -343,10 +343,11 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
String
fullName
=
name
;
String
code
=
(
String
)
map
.
get
(
"code"
);
String
parentName
=
formInstanceMapper
.
getStuctureName
(
parentId
);
String
bizOrgCode
=
map
.
get
(
"bizOrgCode"
).
toString
();
if
(!
"0"
.
equals
(
parentId
))
{
fullName
=
parentName
+
'-'
+
name
;
}
formInstanceMapper
.
updateStr
(
instanceId
,
name
,
fullName
,
parentId
,
code
);
formInstanceMapper
.
updateStr
(
instanceId
,
name
,
fullName
,
parentId
,
code
,
bizOrgCode
);
//3.修改仓库对应子数据
fullName
=
"0"
.
equals
(
parentId
)
?
name
+
"-"
:
"-"
+
name
;
name
=
beforFullName
+
"-"
;
...
...
amos-boot-system-equip/src/main/resources/mapper/FormInstanceMapper.xml
View file @
04d78e03
...
...
@@ -389,7 +389,8 @@
set name = #{name} ,
full_name = #{fullName},
parent_id = #{parentId},
code = #{code}
code = #{code},
biz_org_code = #{bizOrgCode}
where id = #{id}
</update>
<update
id=
"updateStrFullName"
>
...
...
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