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
42f84e3a
Commit
42f84e3a
authored
Mar 24, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
是否已配置平台商户规则
parent
fdfd8551
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
ConfigRuleEnterpriseApiService.java
...ic/enterprise/service/ConfigRuleEnterpriseApiService.java
+9
-0
ConfigRuleEnterpriseApiServiceImpl.java
...ervice/outer/impl/ConfigRuleEnterpriseApiServiceImpl.java
+9
-0
ConfigRuleController.java
...om/gic/operation/web/controller/ConfigRuleController.java
+12
-0
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/service/ConfigRuleEnterpriseApiService.java
View file @
42f84e3a
...
...
@@ -63,4 +63,13 @@ public interface ConfigRuleEnterpriseApiService {
*/
ServiceResponse
<
Page
<
RuleEnterpriseDTO
>>
listEnterpriseRule
(
String
search
,
Integer
enterpriseRuleId
,
Integer
pageNum
,
Integer
pageSize
);
/**
* 是否已配置平台商户规则
* @Title: hasDefaultEnterpriseRule
* @Description:
* @author guojuxing
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Boolean>
*/
ServiceResponse
<
Boolean
>
hasDefaultEnterpriseRule
();
}
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/ConfigRuleEnterpriseApiServiceImpl.java
View file @
42f84e3a
...
...
@@ -178,6 +178,15 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
return
ServiceResponse
.
success
(
resultPage
);
}
@Override
public
ServiceResponse
<
Boolean
>
hasDefaultEnterpriseRule
()
{
TabConfigRuleEnterpriseRel
defaultRule
=
configRuleEnterpriseService
.
getByEnterpriseId
(-
1
);
if
(
defaultRule
!=
null
)
{
return
ServiceResponse
.
success
(
true
);
}
return
ServiceResponse
.
success
(
false
);
}
/**
* 验证参数
* @param dto
...
...
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/ConfigRuleController.java
View file @
42f84e3a
...
...
@@ -215,4 +215,16 @@ public class ConfigRuleController {
configRuleEnterpriseApiService
.
listEnterpriseRule
(
search
,
enterpriseRuleId
,
pageNum
,
pageSize
),
EnterpriseVO
.
class
);
}
/**
* 是否已配置平台商户规则
* @Title: hasDefaultEnterpriseRule
* @Description:
* @author guojuxing
* @return com.gic.commons.webapi.reponse.RestResponse
*/
@RequestMapping
(
"/has-default-enterprise-rule"
)
public
RestResponse
hasDefaultEnterpriseRule
()
{
return
ResultControllerUtils
.
commonResult
(
configRuleEnterpriseApiService
.
hasDefaultEnterpriseRule
());
}
}
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