| | |
| | | <?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="com.yeshi.fanli.dao.mybatis.AppVersionInfoMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.AppVersionInfo"> |
| | | <id column="avcm_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="avcm_platform" property="platform" jdbcType="VARCHAR" /> |
| | | <result column="avcm_version" property="version" jdbcType="VARCHAR" /> |
| | | <result column="avcm_version_code" property="versionCode" |
| | | jdbcType="INTEGER" /> |
| | | <result column="avcm_createtime" property="createTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="avcm_updatetime" property="updateTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">avcm_id,avcm_platform,avcm_version,avcm_version_code,avcm_createtime,avcm_updatetime |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_id = |
| | | #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByPlatform" resultMap="BaseResultMap" |
| | | parameterType="java.lang.String"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_platform = |
| | | #{0} |
| | | </select> |
| | | |
| | | <select id="selectByPlatformAndVersion" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_platform = |
| | | #{platform} |
| | | and avcm_version=#{version} |
| | | </select> |
| | | |
| | | <select id="selectByPlatformAndVersionCode" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_platform = |
| | | #{platform} |
| | | and avcm_version_code=#{versionCode} |
| | | </select> |
| | | |
| | | <select id="listByPlatformAndMinVersionCode" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_platform = |
| | | #{platform} |
| | | and avcm_version_code>=#{minVersionCode} |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="listByPlatformAndMaxVersionCode" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_platform = |
| | | #{platform} |
| | | and #{maxVersionCode}> avcm_version_code |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_app_version_code_map where avcm_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.AppVersionInfo" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_app_version_code_map |
| | | (avcm_id,avcm_platform,avcm_version,avcm_version_code,avcm_createtime,avcm_updatetime) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{platform,jdbcType=VARCHAR},#{version,jdbcType=VARCHAR},#{versionCode,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.AppVersionInfo" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_app_version_code_map |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">avcm_id,</if> |
| | | <if test="platform != null">avcm_platform,</if> |
| | | <if test="version != null">avcm_version,</if> |
| | | <if test="versionCode != null">avcm_version_code,</if> |
| | | <if test="createTime != null">avcm_createtime,</if> |
| | | <if test="updateTime != null">avcm_updatetime,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="platform != null">#{platform,jdbcType=VARCHAR},</if> |
| | | <if test="version != null">#{version,jdbcType=VARCHAR},</if> |
| | | <if test="versionCode != null">#{versionCode,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.AppVersionInfo">update |
| | | yeshi_ec_app_version_code_map set avcm_platform = |
| | | #{platform,jdbcType=VARCHAR},avcm_version = |
| | | #{version,jdbcType=VARCHAR},avcm_version_code = |
| | | #{versionCode,jdbcType=INTEGER},avcm_createtime = |
| | | #{createTime,jdbcType=TIMESTAMP},avcm_updatetime = |
| | | #{updateTime,jdbcType=TIMESTAMP} where avcm_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.AppVersionInfo"> |
| | | update yeshi_ec_app_version_code_map |
| | | <set> |
| | | <if test="platform != null">avcm_platform=#{platform,jdbcType=VARCHAR},</if> |
| | | <if test="version != null">avcm_version=#{version,jdbcType=VARCHAR},</if> |
| | | <if test="versionCode != null">avcm_version_code=#{versionCode,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">avcm_createtime=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">avcm_updatetime=#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </set> |
| | | where avcm_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?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="com.yeshi.fanli.dao.mybatis.AppVersionInfoMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.AppVersionInfo">
|
| | | <id column="avcm_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="avcm_platform" property="platform" jdbcType="VARCHAR" />
|
| | | <result column="avcm_version" property="version" jdbcType="VARCHAR" />
|
| | | <result column="avcm_version_code" property="versionCode"
|
| | | jdbcType="INTEGER" />
|
| | | <result column="avcm_createtime" property="createTime"
|
| | | jdbcType="TIMESTAMP" />
|
| | | <result column="avcm_updatetime" property="updateTime"
|
| | | jdbcType="TIMESTAMP" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">avcm_id,avcm_platform,avcm_version,avcm_version_code,avcm_createtime,avcm_updatetime
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_id =
|
| | | #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="selectByPlatform" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.String">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_platform =
|
| | | #{0}
|
| | | </select>
|
| | |
|
| | | <select id="selectByPlatformAndVersion" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_platform =
|
| | | #{platform}
|
| | | and avcm_version=#{version}
|
| | | </select>
|
| | |
|
| | | <select id="selectByPlatformAndVersionCode" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_platform =
|
| | | #{platform}
|
| | | and avcm_version_code=#{versionCode}
|
| | | </select>
|
| | |
|
| | | <select id="listByPlatformAndMinVersionCode" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_platform =
|
| | | #{platform}
|
| | | and avcm_version_code>=#{minVersionCode}
|
| | | </select>
|
| | |
|
| | |
|
| | |
|
| | | <select id="listByPlatformAndMaxVersionCode" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_platform =
|
| | | #{platform}
|
| | | and #{maxVersionCode}> avcm_version_code
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="listByVersion" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.String">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_version=#{version}
|
| | | </select>
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_app_version_code_map where avcm_id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.AppVersionInfo"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_app_version_code_map
|
| | | (avcm_id,avcm_platform,avcm_version,avcm_version_code,avcm_createtime,avcm_updatetime)
|
| | | values
|
| | | (#{id,jdbcType=BIGINT},#{platform,jdbcType=VARCHAR},#{version,jdbcType=VARCHAR},#{versionCode,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.AppVersionInfo"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_app_version_code_map
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">avcm_id,</if>
|
| | | <if test="platform != null">avcm_platform,</if>
|
| | | <if test="version != null">avcm_version,</if>
|
| | | <if test="versionCode != null">avcm_version_code,</if>
|
| | | <if test="createTime != null">avcm_createtime,</if>
|
| | | <if test="updateTime != null">avcm_updatetime,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="platform != null">#{platform,jdbcType=VARCHAR},</if>
|
| | | <if test="version != null">#{version,jdbcType=VARCHAR},</if>
|
| | | <if test="versionCode != null">#{versionCode,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.AppVersionInfo">update
|
| | | yeshi_ec_app_version_code_map set avcm_platform =
|
| | | #{platform,jdbcType=VARCHAR},avcm_version =
|
| | | #{version,jdbcType=VARCHAR},avcm_version_code =
|
| | | #{versionCode,jdbcType=INTEGER},avcm_createtime =
|
| | | #{createTime,jdbcType=TIMESTAMP},avcm_updatetime =
|
| | | #{updateTime,jdbcType=TIMESTAMP} where avcm_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.AppVersionInfo">
|
| | | update yeshi_ec_app_version_code_map
|
| | | <set>
|
| | | <if test="platform != null">avcm_platform=#{platform,jdbcType=VARCHAR},</if>
|
| | | <if test="version != null">avcm_version=#{version,jdbcType=VARCHAR},</if>
|
| | | <if test="versionCode != null">avcm_version_code=#{versionCode,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">avcm_createtime=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updateTime != null">avcm_updatetime=#{updateTime,jdbcType=TIMESTAMP},</if>
|
| | | </set>
|
| | | where avcm_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|