Commit a96cc84e authored by zhengyi's avatar zhengyi

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

parent 05709adb
...@@ -83,7 +83,7 @@ public class CustomerCompetitorServiceImpl extends AbstractService<CustomerCompe ...@@ -83,7 +83,7 @@ public class CustomerCompetitorServiceImpl extends AbstractService<CustomerCompe
public List<CustomerCompetitorDO> getCompetitorListBySearchKey(String searchKey) { public List<CustomerCompetitorDO> getCompetitorListBySearchKey(String searchKey) {
return competitorMapper.selectList(new LambdaQueryWrapper<CustomerCompetitorDO>() return competitorMapper.selectList(new LambdaQueryWrapper<CustomerCompetitorDO>()
.like(StringUtils.isNotBlank(searchKey), CustomerCompetitorDO::getName, searchKey) .like(StringUtils.isNotBlank(searchKey), CustomerCompetitorDO::getName, searchKey)
.orderDesc(CustomerCompetitorDO::getId) .orderByDesc(CustomerCompetitorDO::getId)
.last("limit 30")); .last("limit 30"));
} }
......
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