Commit 655921d2 authored by zhengyi's avatar zhengyi

竞争对手下拉框数据接口补充模糊匹配参数查询,并最多返回30条数据(参数改非必填)

parent a96cc84e
......@@ -77,7 +77,7 @@ public class CustomerCompetitorController {
@ApiOperation("获得所有客户竞争对手列表")
@ApiImplicitParam(name = "searchKey", value = "关键字", required = false, dataTypeClass = String.class)
// @PreAuthorize("@ss.hasPermission('customer:competitor:query')")
public CommonResult<List<CustomerCompetitorBackVO>> getCompetitorListAll(@RequestParam("searchKey") String searchKey) {
public CommonResult<List<CustomerCompetitorBackVO>> getCompetitorListAll(@RequestParam(value = "searchKey", required = false) String searchKey) {
List<CustomerCompetitorDO> list = competitorService.getCompetitorListBySearchKey(searchKey);
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