<?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="cn.qihangerp.mapper.OShopMapper">

    <resultMap id="BaseResultMap" type="cn.qihangerp.model.entity.OShop">
            <id property="id" column="id" jdbcType="BIGINT"/>
            <result property="name" column="name" jdbcType="VARCHAR"/>
            <result property="type" column="type" jdbcType="INTEGER"/>
            <result property="url" column="url" jdbcType="VARCHAR"/>
            <result property="sort" column="sort" jdbcType="INTEGER"/>
            <result property="status" column="status" jdbcType="INTEGER"/>
            <result property="remark" column="remark" jdbcType="VARCHAR"/>
            <result property="sellerId" column="seller_id" jdbcType="BIGINT"/>
            <result property="appKey" column="app_key" jdbcType="VARCHAR"/>
            <result property="appSecret" column="app_secret" jdbcType="VARCHAR"/>
            <result property="accessToken" column="access_token" jdbcType="VARCHAR"/>
            <result property="expiresIn" column="expires_in" jdbcType="BIGINT"/>
            <result property="accessTokenBegin" column="access_token_begin" jdbcType="BIGINT"/>
            <result property="refreshToken" column="refresh_token" jdbcType="VARCHAR"/>
            <result property="refreshTokenTimeout" column="refresh_token_timeout" jdbcType="BIGINT"/>
            <result property="apiRequestUrl" column="api_request_url" jdbcType="VARCHAR"/>
            <result property="apiRedirectUrl" column="api_redirect_url" jdbcType="VARCHAR"/>
            <result property="manageUserId" column="manage_user_id" jdbcType="BIGINT"/>
            <result property="manageDeptId" column="manage_dept_id" jdbcType="BIGINT"/>
            <result property="regionId" column="region_id" jdbcType="BIGINT"/>
        <result property="apiStatus" column="api_status" jdbcType="INTEGER"/>
            <result property="modifyOn" column="modify_on" jdbcType="BIGINT"/>
            <result property="createOn" column="create_on" jdbcType="BIGINT"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,name,type,
        url,sort,status,api_status,
        remark,seller_id,app_key,
        app_secret,access_token,expires_in,
        access_token_begin,refresh_token,refresh_token_timeout,
        api_request_url,api_redirect_url,manage_user_id,
        manage_dept_id,region_id,modify_on,
        create_on
    </sql>
</mapper>
