|
@@ -22,6 +22,7 @@ import me.zhengjie.utils.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
@@ -112,7 +113,7 @@ public class BorrowerServiceImpl extends AbstractServiceImpl<IBorrowerDao, AppBo
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public List<OrderEntity> getOrderList(String phone, String status, Integer pageIndex, Integer pageSize) {
|
|
|
|
|
|
|
+ public List<OrderEntity> getOrderList(String contractNo,String phone, String status, Integer pageIndex, Integer pageSize) {
|
|
|
QueryWrapper<SysUserEntity> qw = new QueryWrapper<>();
|
|
QueryWrapper<SysUserEntity> qw = new QueryWrapper<>();
|
|
|
qw.eq("phone", phone);
|
|
qw.eq("phone", phone);
|
|
|
SysUserEntity user = userDao.selectOne(qw);
|
|
SysUserEntity user = userDao.selectOne(qw);
|
|
@@ -121,6 +122,7 @@ public class BorrowerServiceImpl extends AbstractServiceImpl<IBorrowerDao, AppBo
|
|
|
QueryWrapper<OrderEntity> orderEntityQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<OrderEntity> orderEntityQueryWrapper = new QueryWrapper<>();
|
|
|
orderEntityQueryWrapper.eq("customer_id", user.getUserId());
|
|
orderEntityQueryWrapper.eq("customer_id", user.getUserId());
|
|
|
orderEntityQueryWrapper.eq("status",status);
|
|
orderEntityQueryWrapper.eq("status",status);
|
|
|
|
|
+ orderEntityQueryWrapper.like(!ObjectUtils.isEmpty(contractNo), "contract_no", contractNo);
|
|
|
List<OrderEntity> orderEntities = orderDaol.selectList(orderEntityQueryWrapper);
|
|
List<OrderEntity> orderEntities = orderDaol.selectList(orderEntityQueryWrapper);
|
|
|
list.addAll(orderEntities);
|
|
list.addAll(orderEntities);
|
|
|
}
|
|
}
|