package com.dk.mdm.mapper.mac;

import com.dk.mdm.model.pojo.mac.OtherReceivable;
import com.dk.common.mapper.BaseMapper;
import com.dk.mdm.model.query.mac.OtherReceivableQuery;
import com.dk.mdm.model.response.mac.OtherReceivableResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*  其他收入单 Mapper
*/
@Repository
public interface OtherReceivableMapper extends BaseMapper<OtherReceivable>{
    /**
     * @desc   : 根据条件进行查询
     * @author : 付斌
     * @date   : 2024-02-28 10:18
     */
    List<OtherReceivableResponse> selectByCond(OtherReceivableQuery otherReceivableQuery);

    /**
     * @desc   : 根据条件进行查询（数量）
     * @author : 付斌
     * @date   : 2024-02-28 10:19
     */
    Long countByCond(OtherReceivableQuery otherReceivableQuery);

    /**
     * @desc   : 根据Id进行查询
     * @author : 付斌
     * @date   : 2024-03-03 9:25
     */
    OtherReceivableResponse selectById(@Param("id") String id);
}

