|
@@ -22,7 +22,7 @@ import org.springframework.stereotype.Service;
|
|
|
public class ProBasicBoxchangeServiceImpl extends ServiceImpl<ProBasicBoxchangeMapper, ProBasicBoxchange> implements IProBasicBoxchangeService {
|
|
|
|
|
|
@Override
|
|
|
- public IPage<ProBasicBoxchange> list(String id, String code, String windpowerstationId, String projectId, String pageNum, String pageSize) {
|
|
|
+ public IPage<ProBasicBoxchange> list(String id, String code, String windpowerstationId, String projectId,String name, String pageNum, String pageSize) {
|
|
|
QueryWrapper<ProBasicBoxchange> qw = new QueryWrapper<>();
|
|
|
if (StringUtils.isNotEmpty(id)) {
|
|
|
qw.like("id", id);
|
|
@@ -36,6 +36,9 @@ public class ProBasicBoxchangeServiceImpl extends ServiceImpl<ProBasicBoxchangeM
|
|
|
if (StringUtils.isNotEmpty(projectId)) {
|
|
|
qw.like("projectId", projectId);
|
|
|
}
|
|
|
+ if (StringUtils.isNotEmpty(name)) {
|
|
|
+ qw.like("name", name);
|
|
|
+ }
|
|
|
Page<ProBasicBoxchange> page = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
|
|
|
IPage<ProBasicBoxchange> ProBasicPage =getBaseMapper().selectPage(page, qw);
|
|
|
return ProBasicPage;
|