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
b06b0dba
Commit
b06b0dba
authored
Sep 28, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
8eddd11b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
BrandController.java
src/main/java/com/egolm/shop/controller/BrandController.java
+15
-0
BrandService.java
src/main/java/com/egolm/shop/service/BrandService.java
+2
-0
BrandServiceImpl.java
...in/java/com/egolm/shop/service/impl/BrandServiceImpl.java
+6
-0
No files found.
src/main/java/com/egolm/shop/controller/BrandController.java
View file @
b06b0dba
...
...
@@ -250,4 +250,19 @@ public class BrandController {
return
brandService
.
saveAuthorizationIP
(
params
);
}
@ApiOperation
(
"获取IP授权列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"LangID"
,
dataType
=
"String"
,
required
=
true
,
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
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"orgNo"
,
dataType
=
"String"
,
required
=
true
,
value
=
"组织机构"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"custNo"
,
dataType
=
"String"
,
required
=
true
,
value
=
"用户编号"
,
defaultValue
=
""
),
})
@RequestMapping
(
value
=
"/authorizationIPList"
,
method
=
RequestMethod
.
POST
)
public
Object
authorizationIP
(
String
custNo
,
String
orgNo
)
{
List
<
Map
<
String
,
Object
>>
list
=
brandService
.
queryAuthorizationIPList
(
custNo
,
orgNo
);
return
Rjx
.
jsonOk
().
set
(
"list"
,
list
).
toJson
();
}
}
src/main/java/com/egolm/shop/service/BrandService.java
View file @
b06b0dba
...
...
@@ -19,4 +19,6 @@ public interface BrandService {
public
Map
<
String
,
Object
>
hotIPDetail
(
Map
<
String
,
Object
>
params
);
public
String
saveAuthorizationIP
(
Map
<
String
,
Object
>
params
);
public
List
<
Map
<
String
,
Object
>>
queryAuthorizationIPList
(
String
custNo
,
String
orgNo
);
}
src/main/java/com/egolm/shop/service/impl/BrandServiceImpl.java
View file @
b06b0dba
...
...
@@ -207,4 +207,10 @@ public class BrandServiceImpl implements BrandService {
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryAuthorizationIPList
(
String
custNo
,
String
orgNo
)
{
String
sql
=
"select * from tIPBrandAuthorize where sOrgNO = ? and sCustNO = ? and nTag&1 = 0"
;
return
jdbcTemplate
.
queryForList
(
sql
,
orgNo
,
custNo
);
}
}
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