package org.jk.system.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jk.common.mybatis.core.mapper.BaseMapperPlus;
import org.jk.system.domain.SysOss;
import org.jk.system.domain.vo.SysOssVo;

/**
 * 文件上传 数据层
 *
 * @author jk
 */
public interface SysOssMapper extends BaseMapperPlus<SysOss, SysOssVo> {

    @Select("<script>" +
        "select count(document.document_id) " +
        " from bm_document document " +
        " where document.oss_id = #{ossId}  " +
        "</script>")
    Integer selDocumentByOssId(@Param("ossId") Long ossId);
}
