Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
1eb8bb01
Commit
1eb8bb01
authored
Nov 10, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充竞争对手查询接口
parent
eff18ea4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
CustomerCompetitorController.java
...dmin/customerCompetitor/CustomerCompetitorController.java
+8
-9
No files found.
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customerCompetitor/CustomerCompetitorController.java
View file @
1eb8bb01
...
...
@@ -55,19 +55,18 @@ public class CustomerCompetitorController {
// return success(true);
// }
//
// @GetMapping("/get")
// @ApiOperation("获得客户竞争对手
")
// @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class
)
// @PreAuthorize("@ss.hasPermission('customer:competitor:query')"
)
//
public CommonResult<CustomerCompetitorBackVO> getCompetitor(@RequestParam("id") Long id) {
//
CustomerCompetitorDO competitor = competitorService.getCompetitor(id);
//
return success(CustomerCompetitorConvert.INSTANCE.convert(competitor));
//
}
@GetMapping
(
"/get
"
)
@ApiOperation
(
"获得客户竞争对手"
)
@ApiImplicitParam
(
name
=
"id"
,
value
=
"编号"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
public
CommonResult
<
CustomerCompetitorBackVO
>
getCompetitor
(
@RequestParam
(
"id"
)
Long
id
)
{
CustomerCompetitorDO
competitor
=
competitorService
.
getCompetitor
(
id
);
return
success
(
CustomerCompetitorConvert
.
INSTANCE
.
convert
(
competitor
));
}
@GetMapping
(
"/list"
)
@ApiOperation
(
"获得客户竞争对手列表"
)
@ApiImplicitParam
(
name
=
"ids"
,
value
=
"编号列表"
,
required
=
true
,
example
=
"1024,2048"
,
dataTypeClass
=
List
.
class
)
// @PreAuthorize("@ss.hasPermission('customer:competitor:query')")
public
CommonResult
<
List
<
CustomerCompetitorBackVO
>>
getCompetitorList
(
@RequestParam
(
"ids"
)
Collection
<
Long
>
ids
)
{
List
<
CustomerCompetitorDO
>
list
=
competitorService
.
getCompetitorList
(
ids
);
return
success
(
CustomerCompetitorConvert
.
INSTANCE
.
convertList
(
list
));
...
...
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