Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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
base_platform_enterprise
gic-platform-enterprise
Commits
33af5b79
Commit
33af5b79
authored
Mar 12, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务周期修改
parent
212f4c38
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
7 deletions
+27
-7
AppletCardDTO.java
...i/src/main/java/com/gic/enterprise/dto/AppletCardDTO.java
+2
-0
AppletMainCardDTO.java
...c/main/java/com/gic/enterprise/dto/AppletMainCardDTO.java
+1
-1
AppletDecorationConfigApiServiceImpl.java
...vice/outer/impl/AppletDecorationConfigApiServiceImpl.java
+18
-6
AppletDecorationConfigController.java
...rise/web/controller/AppletDecorationConfigController.java
+6
-0
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/AppletCardDTO.java
View file @
33af5b79
...
...
@@ -21,6 +21,8 @@ public class AppletCardDTO implements Serializable{
private
Long
cardConfigId
;
private
String
cardName
;
private
Boolean
mainCard
;
/**
* 子卡列表
*/
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/AppletMainCardDTO.java
View file @
33af5b79
...
...
@@ -21,6 +21,6 @@ public class AppletMainCardDTO implements Serializable{
/**
* 是否是主卡,否:关联的平衡组主卡
*/
private
Boolean
isM
ainCard
;
private
Boolean
m
ainCard
;
}
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/AppletDecorationConfigApiServiceImpl.java
View file @
33af5b79
...
...
@@ -142,16 +142,17 @@ public class AppletDecorationConfigApiServiceImpl implements AppletDecorationCon
//添加主卡
AppletCardRelationDTO
mainCard
=
mainCardResult
.
getResult
();
result
.
add
(
new
AppletMainCardDTO
().
setCardConfigId
(
mainCard
.
getCardConfigId
())
.
setCardName
(
mainCard
.
getCardName
()).
set
Is
MainCard
(
true
));
.
setCardName
(
mainCard
.
getCardName
()).
setMainCard
(
true
));
String
mainCardId
=
mainCard
.
getCardConfigId
().
toString
();
List
<
AppletCardDTO
>
appletCardList
=
appletCardResult
.
getResult
();
for
(
AppletCardDTO
cardDTO
:
appletCardList
)
{
List
<
AppletCardDTO
>
subList
=
cardDTO
.
getSubList
();
if
(
CollectionUtils
.
isNotEmpty
(
subList
))
{
for
(
AppletCardDTO
cardDTO1
:
subList
)
{
if
(
cardDTO1
.
getCardConfigId
().
toString
().
equals
(
mainCard
.
getAppletConfId
().
toString
()
))
{
result
.
add
(
new
AppletMainCardDTO
().
setCardConfigId
(
mainCard
.
getCardConfigId
())
.
setCardName
(
mainCard
.
getCardName
()).
setIs
MainCard
(
false
));
if
(
cardDTO1
.
getCardConfigId
().
toString
().
equals
(
mainCard
Id
))
{
result
.
add
(
new
AppletMainCardDTO
().
setCardConfigId
(
cardDTO
.
getCardConfigId
())
.
setCardName
(
cardDTO
.
getCardName
()).
set
MainCard
(
false
));
}
}
}
...
...
@@ -308,6 +309,14 @@ public class AppletDecorationConfigApiServiceImpl implements AppletDecorationCon
return
ServiceResponse
.
failure
(
appletResult
.
getCode
(),
appletResult
.
getMessage
());
}
long
appletConfigId
=
appletResult
.
getResult
();
//默认主卡
ServiceResponse
<
Long
>
mainCardResult
=
getMainCard
(
appId
,
enterpriseId
);
String
mainCardId
=
""
;
if
(
mainCardResult
.
isSuccess
())
{
mainCardId
=
mainCardResult
.
getResult
().
toString
();
}
ServiceResponse
<
List
<
MemberCardRelDTO
>>
appletCardResult
=
appletsConfigApiService
.
queryAppletIntegralBalanceCardRel
(
appletConfigId
,
enterpriseId
);
if
(
appletCardResult
.
isSuccess
())
{
...
...
@@ -316,15 +325,18 @@ public class AppletDecorationConfigApiServiceImpl implements AppletDecorationCon
if
(
CollectionUtils
.
isNotEmpty
(
cardList
))
{
for
(
MemberCardRelDTO
card
:
cardList
)
{
List
<
MemberCardRelDTO
>
sub
=
card
.
getRelCards
();
Boolean
isMainCard
=
card
.
getId
().
toString
().
endsWith
(
mainCardId
);
List
<
AppletCardDTO
>
subList
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
sub
))
{
for
(
MemberCardRelDTO
subTemp
:
sub
)
{
Boolean
isMainCardTemp
=
subTemp
.
getId
().
toString
().
endsWith
(
mainCardId
);
subList
.
add
(
new
AppletCardDTO
().
setCardConfigId
(
subTemp
.
getId
())
.
setCardName
(
subTemp
.
getName
()));
.
setCardName
(
subTemp
.
getName
())
.
setMainCard
(
isMainCardTemp
)
);
}
}
resultList
.
add
(
new
AppletCardDTO
().
setCardName
(
card
.
getName
()).
setCardConfigId
(
card
.
getId
())
.
setSubList
(
subList
));
.
setSubList
(
subList
)
.
setMainCard
(
isMainCard
)
);
}
}
return
ServiceResponse
.
success
(
resultList
);
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/AppletDecorationConfigController.java
View file @
33af5b79
...
...
@@ -45,4 +45,10 @@ public class AppletDecorationConfigController {
return
ResultControllerUtils
.
commonResult
(
appletDecorationConfigApiService
.
listAppletCard
(
appId
,
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()),
AppletCardRealtionVO
.
class
);
}
@RequestMapping
(
"/list-applet-card-of-total-integral"
)
public
RestResponse
listAppletCardOfTotalIntegral
(
String
appId
)
{
return
ResultControllerUtils
.
commonResult
(
appletDecorationConfigApiService
.
listAppletCardOfTotalIntegral
(
appId
,
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()),
AppletCardRealtionVO
.
class
);
}
}
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