<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="im.zhaojun.zfile.module.readme.mapper.ReadmeConfigMapper">
  <resultMap id="BaseResultMap" type="im.zhaojun.zfile.module.readme.model.entity.ReadmeConfig">
    <!--@mbg.generated-->
    <!--@Table `readme_config`-->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="storage_id" jdbcType="INTEGER" property="storageId" />
    <result column="expression" jdbcType="VARCHAR" property="expression" />
    <result column="readme_text" jdbcType="LONGVARCHAR" property="readmeText" />
    <result column="description" jdbcType="VARCHAR" property="description" />
    <result column="display_mode" jdbcType="VARCHAR" property="displayMode" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    `id`, `storage_id`, `expression`, `readme_text`, `description`, `display_mode`
  </sql>

  <!--auto generated by MybatisCodeHelper on 2021-07-15-->
  <select id="findByStorageId" resultMap="BaseResultMap">
    select
    <include refid="Base_Column_List"/>
    from readme_config
    where storage_id=#{storageId,jdbcType=INTEGER}
  </select>

  <!--auto generated by MybatisCodeHelper on 2021-07-15-->
  <delete id="deleteByStorageId">
    delete from readme_config
    where storage_id=#{storageId,jdbcType=INTEGER}
  </delete>

</mapper>