Commit 1eb8bb01 authored by zhengyi's avatar zhengyi

补充竞争对手查询接口

parent eff18ea4
...@@ -55,19 +55,18 @@ public class CustomerCompetitorController { ...@@ -55,19 +55,18 @@ public class CustomerCompetitorController {
// return success(true); // return success(true);
// } // }
// //
// @GetMapping("/get")
// @ApiOperation("获得客户竞争对手") @GetMapping("/get")
// @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class) @ApiOperation("获得客户竞争对手")
// @PreAuthorize("@ss.hasPermission('customer:competitor:query')") @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class)
// public CommonResult<CustomerCompetitorBackVO> getCompetitor(@RequestParam("id") Long id) { public CommonResult<CustomerCompetitorBackVO> getCompetitor(@RequestParam("id") Long id) {
// CustomerCompetitorDO competitor = competitorService.getCompetitor(id); CustomerCompetitorDO competitor = competitorService.getCompetitor(id);
// return success(CustomerCompetitorConvert.INSTANCE.convert(competitor)); return success(CustomerCompetitorConvert.INSTANCE.convert(competitor));
// } }
@GetMapping("/list") @GetMapping("/list")
@ApiOperation("获得客户竞争对手列表") @ApiOperation("获得客户竞争对手列表")
@ApiImplicitParam(name = "ids", value = "编号列表", required = true, example = "1024,2048", dataTypeClass = List.class) @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) { public CommonResult<List<CustomerCompetitorBackVO>> getCompetitorList(@RequestParam("ids") Collection<Long> ids) {
List<CustomerCompetitorDO> list = competitorService.getCompetitorList(ids); List<CustomerCompetitorDO> list = competitorService.getCompetitorList(ids);
return success(CustomerCompetitorConvert.INSTANCE.convertList(list)); return success(CustomerCompetitorConvert.INSTANCE.convertList(list));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment