|
@@ -1,5 +1,8 @@
|
|
|
package com.fjhx.sale.service.quotation.impl;
|
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.fjhx.sale.entity.quotation.po.QuotationPay;
|
|
|
import com.fjhx.sale.mapper.quotation.QuotationPayMapper;
|
|
|
import com.fjhx.sale.service.quotation.QuotationPayService;
|
|
@@ -26,8 +29,9 @@ public class QuotationPayServiceImpl extends ServiceImpl<QuotationPayMapper, Quo
|
|
|
|
|
|
@Override
|
|
|
public Page<QuotationPayVo> getPage(QuotationPaySelectDto dto) {
|
|
|
- IWrapper<QuotationPay> wrapper = getWrapper();
|
|
|
- wrapper.orderByDesc("qp", QuotationPay::getId);
|
|
|
+ LambdaQueryWrapper<QuotationPay> wrapper = Wrappers.<QuotationPay>lambdaQuery();
|
|
|
+ wrapper.orderByDesc(QuotationPay::getCreateTime);
|
|
|
+ wrapper.like(ObjectUtil.isNotEmpty(dto.getPayName()),QuotationPay::getPayName,dto.getPayName());
|
|
|
Page<QuotationPayVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
return page;
|
|
|
}
|