|
@@ -59,7 +59,8 @@ public class CreditServiceImpl extends ServiceImpl<CreditInfoMapper, CreditInfo>
|
|
public GridPage findByName(String name, Integer type, Integer page, Integer rows) {
|
|
public GridPage findByName(String name, Integer type, Integer page, Integer rows) {
|
|
Page objectPage = PageHelper.startPage(page, rows);
|
|
Page objectPage = PageHelper.startPage(page, rows);
|
|
List<CreditInfo> list ;
|
|
List<CreditInfo> list ;
|
|
- list = lambdaQuery().eq(CreditInfo::getType,type).like(CreditInfo::getName, name).like(CreditInfo::getCardNo,name).orderByDesc(CreditInfo::getGmtCreate).list();
|
|
|
|
|
|
+ list = lambdaQuery().eq(CreditInfo::getType,type).like(CreditInfo::getName, name).or().like(CreditInfo::getCardNo, name)
|
|
|
|
+ .orderByDesc(CreditInfo::getGmtCreate).list();
|
|
return new GridPage(rows,page,objectPage.getTotal(),list);
|
|
return new GridPage(rows,page,objectPage.getTotal(),list);
|
|
}
|
|
}
|
|
|
|
|