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
76e87203
Commit
76e87203
authored
Aug 06, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LicenseCode调整
parent
9e20f8a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
EnterpriseController.java
...om/gic/operation/web/controller/EnterpriseController.java
+7
-5
No files found.
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/EnterpriseController.java
View file @
76e87203
...
...
@@ -8,6 +8,7 @@ import com.gic.authcenter.security.core.constant.DataResourceEnum;
import
com.gic.authcenter.security.core.dto.AuthcenterUserDetails
;
import
com.gic.enterprise.constants.Constants
;
import
com.gic.enterprise.dto.*
;
import
com.gic.enterprise.utils.LicenseUtils
;
import
com.gic.marketing.api.service.sms.SmsOuterApiService
;
import
com.gic.member.config.api.dto.OwnerMemberCardDTO
;
import
com.gic.member.config.api.service.MemberCardApiService
;
...
...
@@ -203,17 +204,18 @@ public class EnterpriseController {
listResult
.
forEach
(
e
->
{
List
<
ApplicationLicenseDTO
>
tempLicense
=
licenseMap
.
get
(
Long
.
valueOf
(
e
.
getEnterpriseId
()));
if
(
CollectionUtils
.
isNotEmpty
(
tempLicense
))
{
Set
<
String
>
licenseCodeSet
=
new
HashSet
<>(
Arrays
.
asList
(
"165165"
,
"member_card"
,
"wxapp"
,
"wxfwh"
));
Set
<
String
>
licenseCodeSet
=
new
HashSet
<>(
Arrays
.
asList
(
LicenseUtils
.
STORE_LICENSE_CODE
,
LicenseUtils
.
MEMBER_CARD_LICENSE_CODE
,
LicenseUtils
.
WECHAT_LICENSE_CODE
,
LicenseUtils
.
SERVICE_CARD_LICENSE_CODE
));
Map
<
String
,
Integer
>
showLicenseMap
=
new
HashMap
<>(
8
);
tempLicense
.
forEach
(
license
->
{
if
(
licenseCodeSet
.
contains
(
license
.
getLicenseCode
()))
{
showLicenseMap
.
put
(
license
.
getLicenseCode
(),
license
.
getQuantity
());
}
});
Integer
memberCardNum
=
showLicenseMap
.
get
(
"member_card"
)
==
null
?
0
:
showLicenseMap
.
get
(
"member_card"
);
Integer
wxfwhNum
=
showLicenseMap
.
get
(
"wxfwh"
)
==
null
?
0
:
showLicenseMap
.
get
(
"wxfwh"
);
Integer
wxappNum
=
showLicenseMap
.
get
(
"wxapp"
)
==
null
?
0
:
showLicenseMap
.
get
(
"wxapp"
);
Integer
storeNum
=
showLicenseMap
.
get
(
"165165"
)
==
null
?
0
:
showLicenseMap
.
get
(
"165165"
);
Integer
memberCardNum
=
showLicenseMap
.
get
(
LicenseUtils
.
MEMBER_CARD_LICENSE_CODE
)
==
null
?
0
:
showLicenseMap
.
get
(
LicenseUtils
.
MEMBER_CARD_LICENSE_CODE
);
Integer
wxfwhNum
=
showLicenseMap
.
get
(
LicenseUtils
.
SERVICE_CARD_LICENSE_CODE
)
==
null
?
0
:
showLicenseMap
.
get
(
LicenseUtils
.
SERVICE_CARD_LICENSE_CODE
);
Integer
wxappNum
=
showLicenseMap
.
get
(
LicenseUtils
.
WECHAT_LICENSE_CODE
)
==
null
?
0
:
showLicenseMap
.
get
(
LicenseUtils
.
WECHAT_LICENSE_CODE
);
Integer
storeNum
=
showLicenseMap
.
get
(
LicenseUtils
.
STORE_LICENSE_CODE
)
==
null
?
0
:
showLicenseMap
.
get
(
LicenseUtils
.
STORE_LICENSE_CODE
);
e
.
setServiceInfo
(
memberCardNum
+
"-"
+
wxfwhNum
+
"-"
+
wxappNum
+
"-"
+
storeNum
);
}
});
...
...
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