Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
config-server-api
Project
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
何熠
config-server-api
Commits
3e44293e
Commit
3e44293e
authored
Dec 15, 2021
by
zhaoxiaolei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改集成superbom逻辑
parent
2a6af525
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
CtoBomMapper.java
...java/cn/com/uitech/authorization/mapper/CtoBomMapper.java
+2
-0
IntegrateServiceImpl.java
...tech/authorization/service/impl/IntegrateServiceImpl.java
+1
-1
CtoBomMapper.xml
src/main/resources/mapper/CtoBomMapper.xml
+5
-0
No files found.
src/main/java/cn/com/uitech/authorization/mapper/CtoBomMapper.java
View file @
3e44293e
...
...
@@ -109,4 +109,6 @@ public interface CtoBomMapper extends IBaseMapper<ConfigurableBom>
ConfigurableBom
getConfigId
(
String
h3cPn
);
ProductGroup
getProductGroup
(
String
classification
);
ConfigurableBom
getCto
(
String
superBomCode
);
}
src/main/java/cn/com/uitech/authorization/service/impl/IntegrateServiceImpl.java
View file @
3e44293e
...
...
@@ -97,7 +97,7 @@ public class IntegrateServiceImpl implements IntegrateService {
configurableBom
.
setBrand
(
saveSuperBomInputDto
.
getBrand
());
configurableBom
.
setRevision
(
saveSuperBomInputDto
.
getRevision
());
configurableBom
.
setType
(
saveSuperBomInputDto
.
getType
());
ConfigurableBom
getOne
=
ctoBomMapper
.
getCto
BomsByCode
(
configurableBom
.
getSuperBomCode
(),
configurableBom
.
getProductClassNam
e
());
ConfigurableBom
getOne
=
ctoBomMapper
.
getCto
(
configurableBom
.
getSuperBomCod
e
());
if
(!
ObjectUtils
.
isEmpty
(
getOne
))
{
BeanUtils
.
copyProperties
(
configurableBom
,
getOne
);
ConfigurableBomLog
log
=
new
ConfigurableBomLog
();
...
...
src/main/resources/mapper/CtoBomMapper.xml
View file @
3e44293e
...
...
@@ -379,4 +379,8 @@
<select
id=
"getProductGroup"
resultType=
"cn.com.uitech.authorization.pojo.entity.ProductGroup"
>
select * from a_productclasscode where product_class_code = #{classification}
</select>
<select
id=
"getCto"
resultMap=
"superBomInfo"
>
select * from super_bom_info where super_bom_code = #{superBomCode}
</select>
</mapper>
\ No newline at end of file
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