package cn.iocoder.yudao.module.server.dal.mysql.workorderFile;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.server.dal.dataobject.workorderFile.WorkorderFileDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 工单类型 Mapper
 *
 * @author wyj
 */
@Mapper
public interface WorkorderFileMapper extends BaseMapper<WorkorderFileDO> {

    @Update("UPDATE workorder_file SET deleted = 0 WHERE id = #{id}")
    int restoreById(@Param("id") Long id);

}