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
34c7ce10
Commit
34c7ce10
authored
Sep 28, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
b06b0dba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
BrandController.java
src/main/java/com/egolm/shop/controller/BrandController.java
+16
-1
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 @
34c7ce10
...
...
@@ -260,9 +260,24 @@ public class BrandController {
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"custNo"
,
dataType
=
"String"
,
required
=
true
,
value
=
"用户编号"
,
defaultValue
=
""
),
})
@RequestMapping
(
value
=
"/authorizationIPList"
,
method
=
RequestMethod
.
POST
)
public
Object
authorizationIP
(
String
custNo
,
String
orgNo
)
{
public
Object
authorizationIP
List
(
String
custNo
,
String
orgNo
)
{
List
<
Map
<
String
,
Object
>>
list
=
brandService
.
queryAuthorizationIPList
(
custNo
,
orgNo
);
return
Rjx
.
jsonOk
().
set
(
"list"
,
list
).
toJson
();
}
@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
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"brandId"
,
dataType
=
"String"
,
required
=
true
,
value
=
"品牌ID"
,
defaultValue
=
""
),
})
@RequestMapping
(
value
=
"/authorizationIPDetail"
,
method
=
RequestMethod
.
POST
)
public
Object
authorizationIPDetail
(
String
custNo
,
String
brandId
,
String
orgNo
)
{
Map
<
String
,
Object
>
map
=
brandService
.
queryAuthorizationIPDetail
(
custNo
,
brandId
,
orgNo
);
return
Rjx
.
jsonOk
().
set
(
"data"
,
map
).
toJson
();
}
}
src/main/java/com/egolm/shop/service/BrandService.java
View file @
34c7ce10
...
...
@@ -21,4 +21,6 @@ public interface BrandService {
public
String
saveAuthorizationIP
(
Map
<
String
,
Object
>
params
);
public
List
<
Map
<
String
,
Object
>>
queryAuthorizationIPList
(
String
custNo
,
String
orgNo
);
public
Map
<
String
,
Object
>
queryAuthorizationIPDetail
(
String
custNo
,
String
brandId
,
String
orgNo
);
}
src/main/java/com/egolm/shop/service/impl/BrandServiceImpl.java
View file @
34c7ce10
...
...
@@ -213,4 +213,10 @@ public class BrandServiceImpl implements BrandService {
String
sql
=
"select * from tIPBrandAuthorize where sOrgNO = ? and sCustNO = ? and nTag&1 = 0"
;
return
jdbcTemplate
.
queryForList
(
sql
,
orgNo
,
custNo
);
}
@Override
public
Map
<
String
,
Object
>
queryAuthorizationIPDetail
(
String
custNo
,
String
brandId
,
String
orgNo
)
{
String
sql
=
"select * from tIPBrandAuthorize where sOrgNO = ? and sCustNO = ? and sBrandID = ?"
;
return
jdbcTemplate
.
queryForMap
(
sql
,
orgNo
,
custNo
,
brandId
);
}
}
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