OrderPaymentMapper.java 1.0 KB

1234567891011121314151617181920212223242526272829
  1. package com.hys.app.mapper.erp;
  2. import org.apache.ibatis.annotations.Mapper;
  3. import com.hys.app.framework.database.mybatisplus.base.BaseMapperX;
  4. import com.hys.app.model.erp.dos.OrderPaymentDO;
  5. import com.hys.app.model.erp.dto.OrderPaymentQueryParams;
  6. import com.hys.app.framework.database.WebPage;
  7. /**
  8. * 订单支付明细 Mapper
  9. *
  10. * @author 张崧
  11. * 2024-01-24 17:00:32
  12. */
  13. @Mapper
  14. public interface OrderPaymentMapper extends BaseMapperX<OrderPaymentDO> {
  15. default WebPage<OrderPaymentDO> selectPage(OrderPaymentQueryParams params) {
  16. return lambdaQuery()
  17. .eqIfPresent(OrderPaymentDO::getOrderId, params.getOrderId())
  18. .eqIfPresent(OrderPaymentDO::getCollectingAccountId, params.getCollectingAccountId())
  19. .eqIfPresent(OrderPaymentDO::getCollectingAccountName, params.getCollectingAccountName())
  20. .eqIfPresent(OrderPaymentDO::getRemark, params.getRemark())
  21. .orderByDesc(OrderPaymentDO::getId)
  22. .page(params);
  23. }
  24. }