WechatMiniprogramUrlLinkMapper.xml 2.17 KB
<?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.com.glsx.dj.wechat.mapper.WechatMiniprogramUrlLinkMapper" >
  <resultMap id="BaseResultMap" type="cn.com.glsx.dj.wechat.model.WechatMiniprogramUrlLink" >
    <!--
      WARNING - @mbg.generated
    -->
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="app_id" property="appId" jdbcType="VARCHAR" />
    <result column="path" property="path" jdbcType="VARCHAR" />
    <result column="query" property="query" jdbcType="VARCHAR" />
    <result column="is_expire" property="isExpire" jdbcType="BIT" />
    <result column="expire_type" property="expireType" jdbcType="INTEGER" />
    <result column="expire_time" property="expireTime" jdbcType="INTEGER" />
    <result column="expire_interval" property="expireInterval" jdbcType="INTEGER" />
    <result column="cloud_base" property="cloudBase" jdbcType="VARCHAR" />
    <result column="url_link" property="urlLink" jdbcType="VARCHAR" />
    <result column="status" property="status" jdbcType="BIT" />
    <result column="env_version" property="envVersion" jdbcType="VARCHAR" />
    <result column="create_by" property="createBy" jdbcType="VARCHAR" />
    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
    <result column="update_by" property="updateBy" jdbcType="VARCHAR" />
    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
    <result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbg.generated
    -->
    id, app_id,path, query, is_expire, expire_type, expire_time, expire_interval, cloud_base,
    url_link, env_version, status, create_by, create_date, update_by, update_date, deleted_flag
  </sql>

  <select id="selectEffectiveOne" parameterType="string" resultMap="BaseResultMap">
    select  <include refid="Base_Column_List"/>
    from dj_wechat_miniprogram_url_link
    where status = 1
    and path = #{path}
    and query = #{query}
    and app_id = #{appId}
    and env_version = #{envVersion}
  </select>
</mapper>