liulin
2025-07-03 fb2f11d7d502ceacbe7fbed176bea4ab0f152f69
src/main/java/com/lunhan/water/repository/impl/PaymentRecordsMapperImpl.java
@@ -32,6 +32,7 @@
import com.lunhan.water.repository.BasicMapperImpl;
import org.springframework.stereotype.Repository;
import java.math.BigDecimal;
import java.util.List;
import com.lunhan.water.entity.search.SearchPaymentRecords;
import com.lunhan.water.repository.mapper.PaymentRecordsMapper;
@@ -55,8 +56,9 @@
      LambdaQueryWrapper<PaymentRecordsPO> queryWrapper = this.query();
      // 非逻辑删除
      queryWrapper.eq(PaymentRecordsPO::getIsDelete, EYesOrNo.NO.getValue());
      // 状态
      //queryWrapper.eq(NumericUtil.tryParseInt(search.getStatus()).compareTo(0) > 0, PaymentRecordsPO::getStatus, search.getStatus());
      // 用户id查询
      queryWrapper.ge(NumericUtil.tryParseLong(search.getUserId()).compareTo(0L) > 0, PaymentRecordsPO::getUserId, search.getUserId());
      // 状态列表
      //queryWrapper.in(ListUtil.isNotNullOrEmpty(search.getListStatus()), PaymentRecordsPO::getStatus, search.getListStatus());
@@ -130,6 +132,10 @@
   public PaymentRecordsPO getById(Long id) {
      return super.get(id);
   }
   public BigDecimal getSumUseCount(Long userId) {
      return DB.getSumUseCount(userId);
   }
   public List<PaymentRecordsPO> getListById(List<Long> listId) {
      return super.getList(listId);