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
a69048a7
Commit
a69048a7
authored
Jul 31, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
Developer See merge request
!30
parents
98234135
c3631e43
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
EnterpriseApiService.java
...java/com/gic/enterprise/service/EnterpriseApiService.java
+11
-0
LicenseUtils.java
.../src/main/java/com/gic/enterprise/utils/LicenseUtils.java
+1
-1
EnterpriseApiServiceImpl.java
...terprise/service/outer/impl/EnterpriseApiServiceImpl.java
+13
-1
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/service/EnterpriseApiService.java
View file @
a69048a7
...
...
@@ -199,6 +199,17 @@ public interface EnterpriseApiService {
ServiceResponse
<
List
<
EnterpriseLicenseDTO
>>
listEnterpriseLicense
(
Integer
enterpriseId
);
/**
* 获取商户的某个license具体数据
* @Title: getEnterpriseLicense
* @Description:
* @author guojuxing
* @param enterpriseId
* @param licenseCode
* @return com.gic.api.base.commons.ServiceResponse<com.gic.enterprise.dto.EnterpriseLicenseDTO>
*/
ServiceResponse
<
EnterpriseLicenseDTO
>
getEnterpriseLicense
(
Integer
enterpriseId
,
String
licenseCode
);
/**
* 服务订购列表数据
* @Title: listOrder
* @Description:
...
...
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/utils/LicenseUtils.java
View file @
a69048a7
...
...
@@ -6,7 +6,7 @@ public class LicenseUtils {
public
static
final
String
MEMBER_CARD_LICENSE_CODE
=
"member_card"
;
public
static
final
String
SERVICE_CARD_LICENSE_CODE
=
"wxfwh"
;
public
static
final
String
WECHAT_LICENSE_CODE
=
"wxapp"
;
public
static
final
String
STORE_LICENSE_CODE
=
"
165165
"
;
public
static
final
String
STORE_LICENSE_CODE
=
"
store
"
;
public
static
boolean
isGoodsLicense
(
String
licenseCode
)
{
return
GOODS_LICENSE_CODE
.
equals
(
licenseCode
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/EnterpriseApiServiceImpl.java
View file @
a69048a7
...
...
@@ -530,7 +530,7 @@ public class EnterpriseApiServiceImpl implements EnterpriseApiService {
@Override
public
ServiceResponse
<
List
<
EnterpriseLicenseDTO
>>
listEnterpriseLicense
(
Integer
enterpriseId
)
{
ServiceResponse
<
List
<
ApplicationLicenseDTO
>>
hasBuyLicense
=
enterpriseLicenseApiService
.
listEnterpriseBuyLicense
(
Arrays
.
asList
(
enterpriseId
));
LOGGER
.
info
(
"商户ID:{},license信息:{}"
,
JSON
.
toJSONString
(
hasBuyLicense
));
LOGGER
.
info
(
"商户ID:{},license信息:{}"
,
enterpriseId
,
JSON
.
toJSONString
(
hasBuyLicense
));
if
(
hasBuyLicense
.
isSuccess
())
{
List
<
ApplicationLicenseDTO
>
licenseList
=
hasBuyLicense
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
licenseList
))
{
...
...
@@ -547,6 +547,18 @@ public class EnterpriseApiServiceImpl implements EnterpriseApiService {
}
@Override
public
ServiceResponse
<
EnterpriseLicenseDTO
>
getEnterpriseLicense
(
Integer
enterpriseId
,
String
licenseCode
)
{
ServiceResponse
<
List
<
EnterpriseLicenseDTO
>>
result
=
listEnterpriseLicense
(
enterpriseId
);
if
(
result
.
isSuccess
())
{
List
<
EnterpriseLicenseDTO
>
list
=
result
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
return
ServiceResponse
.
success
(
list
.
stream
().
filter
(
e
->
e
.
getLicenseCode
().
equals
(
licenseCode
)).
collect
(
Collectors
.
toList
()).
get
(
0
));
}
}
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
Page
<
OrderGicDTO
>>
listOrder
(
OrderServiceQO
params
)
{
Page
<
OrderGicDTO
>
resultPage
=
new
Page
<>();
...
...
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