Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
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
胡园园
yanxuan-qc-change-system
Commits
e8e2df9b
Commit
e8e2df9b
authored
Dec 16, 2022
by
穆龙飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify:组装分类对象
parent
55b4808e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
+16
-1
ChangeConfigServiceImpl.java
...ange/biz/service/impl/change/ChangeConfigServiceImpl.java
+16
-1
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/change/ChangeConfigServiceImpl.java
View file @
e8e2df9b
package
com
.
netease
.
mail
.
yanxuan
.
change
.
biz
.
service
.
impl
.
change
;
package
com
.
netease
.
mail
.
yanxuan
.
change
.
biz
.
service
.
impl
.
change
;
import
com.netease.mail.yanxuan.change.biz.service.change.ChangeConfigService
;
import
com.netease.mail.yanxuan.change.biz.service.change.ChangeConfigService
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeConfig
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeConfig
;
import
com.netease.mail.yanxuan.change.dal.entity.ChangeType
;
import
com.netease.mail.yanxuan.change.dal.mapper.ChangeConfigMapper
;
import
com.netease.mail.yanxuan.change.dal.mapper.ChangeConfigMapper
;
import
com.netease.mail.yanxuan.change.dal.mapper.ChangeTypeMapper
;
import
com.netease.mail.yanxuan.change.dal.meta.model.po.ChangeConfigPo
;
import
com.netease.mail.yanxuan.change.dal.meta.model.po.ChangeConfigPo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
/**
* @author WangJiaXiang
* @author WangJiaXiang
* @date 2022/11/11/011$
* @date 2022/11/11/011$
...
@@ -16,6 +21,9 @@ public class ChangeConfigServiceImpl implements ChangeConfigService {
...
@@ -16,6 +21,9 @@ public class ChangeConfigServiceImpl implements ChangeConfigService {
@Autowired
@Autowired
public
ChangeConfigMapper
mapper
;
public
ChangeConfigMapper
mapper
;
@Autowired
private
ChangeTypeMapper
changeTypeMapper
;
@Override
@Override
public
ChangeConfig
queryChangeConfig
(
Long
id
)
{
public
ChangeConfig
queryChangeConfig
(
Long
id
)
{
return
mapper
.
queryById
(
id
);
return
mapper
.
queryById
(
id
);
...
@@ -28,7 +36,14 @@ public class ChangeConfigServiceImpl implements ChangeConfigService {
...
@@ -28,7 +36,14 @@ public class ChangeConfigServiceImpl implements ChangeConfigService {
@Override
@Override
public
ChangeConfigPo
queryInfoPo
(
Long
parentChangeClassId
,
Long
sonChangeClassId
)
{
public
ChangeConfigPo
queryInfoPo
(
Long
parentChangeClassId
,
Long
sonChangeClassId
)
{
return
mapper
.
queryInfoPo
(
parentChangeClassId
,
sonChangeClassId
);
ChangeConfigPo
changeConfigPo
=
mapper
.
queryInfoPo
(
parentChangeClassId
,
sonChangeClassId
);
ChangeType
parentChangeType
=
changeTypeMapper
.
selectByPrimaryKey
(
changeConfigPo
.
getParentChangeClassId
());
ChangeType
sonChangeType
=
changeTypeMapper
.
selectByPrimaryKey
(
changeConfigPo
.
getSonChangeClassId
());
List
<
ChangeType
>
changeTypes
=
new
ArrayList
<>();
changeTypes
.
add
(
parentChangeType
);
changeTypes
.
add
(
sonChangeType
);
changeConfigPo
.
setChangeTypes
(
changeTypes
);
return
changeConfigPo
;
}
}
@Override
@Override
...
...
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