package com.jeeplus.test.cw.contractRegistration.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeeplus.test.cw.contractRegistration.domain.CwWorkContractBorrow;
import com.jeeplus.test.cw.contractRegistration.domain.CwWorkContractBorrowMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 王强
 * @create: 2022-11-27 13:52
 **/
public interface CwWorkContractBorrowMapper extends BaseMapper<CwWorkContractBorrow> {

    void updateStatusById(@Param("id") String id, @Param("borrowType")String borrowType);

    void updateStatusByContractInfoId(@Param("id") String id, @Param("borrowType")String borrowType);

    CwWorkContractBorrow selectFileByContractInfoId (@Param("id") String id);

    void updateMessageByBorrowId(@Param("id") String id, @Param("borrowType")String borrowType, @Param("type")String type);

    void deleteMessageById(@Param("id") String id);

    List<CwWorkContractBorrowMessage> findMessageList(@Param("id") String id);

}
