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
54d312d2
Commit
54d312d2
authored
Mar 14, 2023
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求 #14514
parent
433e8692
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
CommonController.java
src/main/java/com/egolm/shop/api/CommonController.java
+10
-3
No files found.
src/main/java/com/egolm/shop/api/CommonController.java
View file @
54d312d2
...
@@ -99,17 +99,24 @@ public class CommonController {
...
@@ -99,17 +99,24 @@ public class CommonController {
@ApiOperation
(
"获取配置信息"
)
@ApiOperation
(
"获取配置信息"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"appId"
,
dataType
=
"String"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"appId"
,
dataType
=
"String"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"orgN
O
"
,
dataType
=
"String"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"orgN
o
"
,
dataType
=
"String"
),
@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
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
})
})
@RequestMapping
(
value
=
"/getConfig"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getConfig"
,
method
=
RequestMethod
.
GET
)
public
Object
getConfig
(
String
appId
,
String
orgN
O
)
{
public
Object
getConfig
(
String
appId
,
String
orgN
o
)
{
Map
<
String
,
Object
>
map
=
null
;
Map
<
String
,
Object
>
map
=
null
;
try
{
try
{
map
=
jdbcTemplate
.
queryForMap
(
"select sOrgNO, sOrgDesc, sOrgPicUrl from tOrg where sAppID = ? and sOrgNO = ? and nTag&1 = 0"
,
appId
,
orgNO
);
String
sql
=
"select sOrgNO, sOrgDesc, sOrgPicUrl from tOrg where sAppID = ? and nTag&1 = 0 "
;
if
(
StringUtil
.
isNotEmpty
(
orgNo
))
{
sql
+=
" and sOrgNO = ? "
;
map
=
jdbcTemplate
.
queryForMap
(
sql
,
appId
,
orgNo
);
}
else
{
map
=
jdbcTemplate
.
queryForMap
(
sql
,
appId
);
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
XException
(
"配置不存在"
,
e
);
throw
new
XException
(
"配置不存在"
,
e
);
}
}
...
...
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