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
b7790b56
Commit
b7790b56
authored
Sep 16, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
4662b70c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
CommonController.java
...main/java/com/egolm/shop/controller/CommonController.java
+3
-2
CommonService.java
src/main/java/com/egolm/shop/service/CommonService.java
+1
-1
CommonServiceImpl.java
...n/java/com/egolm/shop/service/impl/CommonServiceImpl.java
+2
-2
No files found.
src/main/java/com/egolm/shop/controller/CommonController.java
View file @
b7790b56
...
@@ -56,6 +56,7 @@ public class CommonController {
...
@@ -56,6 +56,7 @@ public class CommonController {
@ApiOperation
(
"获取共同参数"
)
@ApiOperation
(
"获取共同参数"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"commonNo"
,
dataType
=
"String"
,
required
=
false
,
value
=
"参数名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
false
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@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
=
"langID"
,
dataType
=
"String"
,
required
=
false
,
value
=
"语言"
,
defaultValue
=
"936"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"sign"
,
dataType
=
"String"
,
required
=
true
,
value
=
"签名"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"sign"
,
dataType
=
"String"
,
required
=
true
,
value
=
"签名"
,
defaultValue
=
""
),
...
@@ -64,8 +65,8 @@ public class CommonController {
...
@@ -64,8 +65,8 @@ public class CommonController {
@RequestMapping
(
value
=
"/getCommonArgs"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getCommonArgs"
,
method
=
RequestMethod
.
GET
)
public
String
getCommonArgs
(
HttpServletRequest
request
)
{
public
String
getCommonArgs
(
HttpServletRequest
request
)
{
String
langID
=
request
.
getParameter
(
"langID"
);
String
langID
=
request
.
getParameter
(
"langID"
);
String
commonN
O
=
request
.
getParameter
(
"commonNO
"
);
String
commonN
o
=
request
.
getParameter
(
"commonNo
"
);
List
<
Map
<
String
,
Object
>>
list
=
commonService
.
getCommonArgs
(
langID
,
commonN
O
);
List
<
Map
<
String
,
Object
>>
list
=
commonService
.
getCommonArgs
(
langID
,
commonN
o
);
return
Rjx
.
jsonOk
().
set
(
"list"
,
list
).
toJson
();
return
Rjx
.
jsonOk
().
set
(
"list"
,
list
).
toJson
();
}
}
...
...
src/main/java/com/egolm/shop/service/CommonService.java
View file @
b7790b56
...
@@ -22,5 +22,5 @@ public interface CommonService {
...
@@ -22,5 +22,5 @@ public interface CommonService {
public
String
getOpenCity
(
String
langID
)
;
public
String
getOpenCity
(
String
langID
)
;
public
List
<
Map
<
String
,
Object
>>
getCommonArgs
(
String
langID
,
String
commonN
O
);
public
List
<
Map
<
String
,
Object
>>
getCommonArgs
(
String
langID
,
String
commonN
o
);
}
}
src/main/java/com/egolm/shop/service/impl/CommonServiceImpl.java
View file @
b7790b56
...
@@ -171,7 +171,7 @@ public class CommonServiceImpl implements CommonService{
...
@@ -171,7 +171,7 @@ public class CommonServiceImpl implements CommonService{
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getCommonArgs
(
String
langID
,
String
commonN
O
)
{
public
List
<
Map
<
String
,
Object
>>
getCommonArgs
(
String
langID
,
String
commonN
o
)
{
String
sql
=
""
String
sql
=
""
+
"SELECT "
+
"SELECT "
+
"DISTINCT "
+
"DISTINCT "
...
@@ -195,7 +195,7 @@ public class CommonServiceImpl implements CommonService{
...
@@ -195,7 +195,7 @@ public class CommonServiceImpl implements CommonService{
+
"AND a.nTag& 1 = 0 "
+
"AND a.nTag& 1 = 0 "
+
"ORDER BY "
+
"ORDER BY "
+
"a.sComID"
;
+
"a.sComID"
;
return
jdbcTemplate
.
queryForList
(
sql
,
langID
,
commonN
O
);
return
jdbcTemplate
.
queryForList
(
sql
,
langID
,
commonN
o
);
}
}
}
}
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