| | |
| | | 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; |
| | |
| | | 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()); |
| | | |
| | |
| | | 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); |