package com.ruoyi.web.work.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.web.work.domain.Contract;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author lsw
 * @date 2024-04-22
 */
public interface ContractMapper extends BaseMapper<Contract> {
    List<Contract> selectList(Contract contract);

    @Select("SELECT * FROM tb_contract WHERE state=0 ORDER BY id DESC LIMIT 1")
    Contract selectContract();
}
