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
fa82ab99
Commit
fa82ab99
authored
Feb 24, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
如果为空判断
parent
a89e9f4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
AppPayController.java
...va/com/gic/operation/web/controller/AppPayController.java
+9
-5
No files found.
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/AppPayController.java
View file @
fa82ab99
...
...
@@ -14,7 +14,9 @@ import com.gic.operation.web.vo.apppay.PayConfigVO;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 支付配置
* @ClassName: AppPayController
...
...
@@ -41,12 +43,13 @@ public class AppPayController {
* @return com.gic.commons.webapi.reponse.RestResponse
*/
@RequestMapping
(
"/list"
)
public
RestResponse
list
(
Integer
pageNum
,
Integer
pageSize
,
String
search
)
{
ServiceResponse
<
Page
<
PayConfigDTO
>>
list
=
payConfigApiService
.
getGicBusinessPayConfig
(
pageNum
,
pageSize
,
search
);
public
RestResponse
list
(
@RequestParam
(
value
=
"pageNum"
,
defaultValue
=
"1"
)
Integer
pageNum
,
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"20"
)
Integer
pageSize
,
String
search
)
{
ServiceResponse
<
Page
<
PayConfigDTO
>>
list
=
payConfigApiService
.
getGicBusinessPayConfig
(
pageNum
,
pageSize
,
search
);
return
ResultControllerUtils
.
commonResult
(
list
,
PayConfigVO
.
class
);
}
@RequestMapping
(
"/save"
)
public
RestResponse
save
(
PayConfigDTO
payConfigDTO
)
{
//1gic特邀商户
...
...
@@ -67,7 +70,7 @@ public class AppPayController {
@RequestMapping
(
"/list-app"
)
public
RestResponse
listApp
(
Integer
enterpriseId
)
{
return
ResultControllerUtils
.
commonResult
(
payConfigApiService
.
getApplets
(
enterpriseId
,
1
)
,
AppVO
.
class
);
return
ResultControllerUtils
.
commonResult
(
payConfigApiService
.
getApplets
(
enterpriseId
,
1
));
}
@RequestMapping
(
"/delete"
)
...
...
@@ -77,6 +80,7 @@ public class AppPayController {
@RequestMapping
(
"/list-enterprise-by-name"
)
public
RestResponse
listEnterpriseByName
(
String
search
)
{
return
ResultControllerUtils
.
commonResult
(
enterpriseApiService
.
listEnterpriseByName
(
search
),
EnterpriseVO
.
class
);
return
ResultControllerUtils
.
commonResult
(
enterpriseApiService
.
listEnterpriseByName
(
search
),
EnterpriseVO
.
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