Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
曲欣亮
shop
Commits
ca0ef364
Commit
ca0ef364
authored
Apr 24, 2023
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取付款方式
parent
9527b5b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
CommonController.java
src/main/java/com/egolm/shop/api/CommonController.java
+23
-0
No files found.
src/main/java/com/egolm/shop/api/CommonController.java
View file @
ca0ef364
...
...
@@ -17,6 +17,7 @@ import com.egolm.common.bean.Rjx;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.shop.api.service.CommonService
;
import
com.egolm.shop.common.XException
;
import
com.egolm.shop.common.utils.I18NUtils
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
...
...
@@ -78,6 +79,28 @@ public class CommonController {
return
Rjx
.
jsonOk
().
set
(
"list"
,
list
).
toJson
();
}
@ApiOperation
(
"获取付款方式"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"shopNo"
,
dataType
=
"String"
,
required
=
false
,
value
=
"参数名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
false
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
false
,
value
=
"语言"
,
defaultValue
=
"936"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"sign"
,
dataType
=
"String"
,
required
=
true
,
value
=
"签名"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
})
@RequestMapping
(
value
=
"/getPayTypeList"
,
method
=
RequestMethod
.
GET
)
public
String
getPayTypeList
(
HttpServletRequest
request
)
{
String
langID
=
request
.
getParameter
(
"langID"
);
String
shopNo
=
request
.
getParameter
(
"shopNo"
);
if
(!
StringUtil
.
isNotEmpty
(
shopNo
))
{
return
Rjx
.
json
().
setCode
(-
1
).
setMessage
(
I18NUtils
.
getMessage
(
shopNo
,
"Msg_Parameter_empty"
)).
toJson
();
}
String
sql
=
"SELECT Ord = b.nOrd, PayTypeID=b.sPayTypeID, PayType = b.sPayType, PayTypeDesc = b.sPayTypeDesc,PayTypeLogoUrl = b.sUrl "
+
" FROM tShopPayType a,tPayType b,tShop s WHERE a.sPayTypeID = b.sPayTypeID AND a.nShopID = s.nShopID AND s.sShopNO = ? ORDER BY b.nOrd"
;
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
queryForList
(
sql
,
shopNo
);
return
Rjx
.
jsonOk
().
set
(
"list"
,
list
).
toJson
();
}
@ApiOperation
(
"获取省市区数据"
)
@ApiImplicitParams
({
...
...
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