Files
usdt/ruoyi-system/src/main/java/com/ruoyi/system/service/IRentLedgerService.java
T
2026-10-22 11:09:36 -04:00

92 lines
3.2 KiB
Java

package com.ruoyi.system.service;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.system.domain.RentLedger;
import com.ruoyi.system.domain.RentLedgerPlus;
import java.util.List;
import java.util.Map;
/**
* 不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖Service接口
*
* @author luqj
* @date 2026-10-22
*/
public interface IRentLedgerService extends IService<RentLedgerPlus>
{
List<SelectItem> select(String keyword);
/**
* 查询不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖
*
* @param id 不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖ID
* @return 不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖
*/
public RentLedger selectRentLedgerById(Long id);
/**
* 查询不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖列表
*
* @param rentLedger 不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖
* @return 不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖集合
*/
public List<RentLedger> selectRentLedgerList(RentLedger rentLedger);
/**
* 新增不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖
*
* @param rentLedger 不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖
* @return 结果
*/
public int insertRentLedger(RentLedger rentLedger);
/**
* 修改不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖
*
* @param rentLedger 不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖
* @return 结果
*/
public int updateRentLedger(RentLedger rentLedger);
/**
* 批量删除不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖
*
* @param ids 需要删除的不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖ID
* @return 结果
*/
public int deleteRentLedgerByIds(Long[] ids);
/**
* 删除不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖信息
*
* @param id 不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖ID
* @return 结果
*/
public int deleteRentLedgerById(Long id);
List<RentLedgerPlus> getByIds(List<Long> ids, SFunction<RentLedgerPlus, ?>... columns);
RentLedgerPlus getById(Long id, SFunction<RentLedgerPlus, ?>... columns);
Map<Long, RentLedgerPlus> getMapByIds(List<Long> ids, SFunction<RentLedgerPlus, ?>... columns);
List<RentLedgerPlus> getByIds(List<Long> ids);
Map<Long, RentLedgerPlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}