You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

314 lines
12 KiB
XML

4 years ago
<?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.glxp.udidl.admin.dao.udid.DevicedownloadMapper">
<resultMap id="BaseResultMap" type="com.glxp.udidl.admin.entity.udid.Devicedownload">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="updateday" jdbcType="VARCHAR" property="updateday" />
<result column="updatemonth" jdbcType="VARCHAR" property="updatemonth" />
<result column="dayindex" jdbcType="INTEGER" property="dayindex" />
<result column="monthindex" jdbcType="INTEGER" property="monthindex" />
<result column="daytotal" jdbcType="INTEGER" property="daytotal" />
<result column="monthtotal" jdbcType="INTEGER" property="monthtotal" />
<result column="alltotal" jdbcType="INTEGER" property="alltotal" />
<result column="allindex" jdbcType="INTEGER" property="allindex" />
<result column="isdownload" jdbcType="INTEGER" property="isdownload" />
<result column="startTime" jdbcType="VARCHAR" property="starttime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, updateday, updatemonth, dayindex, monthindex, daytotal, monthtotal, alltotal,
allindex, isdownload, startTime
</sql>
<select id="selectByExample" parameterType="com.glxp.udidl.admin.entity.udid.DevicedownloadExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from devicedownload
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from devicedownload
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from devicedownload
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.glxp.udidl.admin.entity.udid.DevicedownloadExample">
delete from devicedownload
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.glxp.udidl.admin.entity.udid.Devicedownload">
insert into devicedownload (id, updateday, updatemonth,
dayindex, monthindex, daytotal,
monthtotal, alltotal, allindex,
isdownload, startTime)
values (#{id,jdbcType=VARCHAR}, #{updateday,jdbcType=VARCHAR}, #{updatemonth,jdbcType=VARCHAR},
#{dayindex,jdbcType=INTEGER}, #{monthindex,jdbcType=INTEGER}, #{daytotal,jdbcType=INTEGER},
#{monthtotal,jdbcType=INTEGER}, #{alltotal,jdbcType=INTEGER}, #{allindex,jdbcType=INTEGER},
#{isdownload,jdbcType=INTEGER}, #{starttime,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.glxp.udidl.admin.entity.udid.Devicedownload">
insert into devicedownload
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="updateday != null">
updateday,
</if>
<if test="updatemonth != null">
updatemonth,
</if>
<if test="dayindex != null">
dayindex,
</if>
<if test="monthindex != null">
monthindex,
</if>
<if test="daytotal != null">
daytotal,
</if>
<if test="monthtotal != null">
monthtotal,
</if>
<if test="alltotal != null">
alltotal,
</if>
<if test="allindex != null">
allindex,
</if>
<if test="isdownload != null">
isdownload,
</if>
<if test="starttime != null">
startTime,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="updateday != null">
#{updateday,jdbcType=VARCHAR},
</if>
<if test="updatemonth != null">
#{updatemonth,jdbcType=VARCHAR},
</if>
<if test="dayindex != null">
#{dayindex,jdbcType=INTEGER},
</if>
<if test="monthindex != null">
#{monthindex,jdbcType=INTEGER},
</if>
<if test="daytotal != null">
#{daytotal,jdbcType=INTEGER},
</if>
<if test="monthtotal != null">
#{monthtotal,jdbcType=INTEGER},
</if>
<if test="alltotal != null">
#{alltotal,jdbcType=INTEGER},
</if>
<if test="allindex != null">
#{allindex,jdbcType=INTEGER},
</if>
<if test="isdownload != null">
#{isdownload,jdbcType=INTEGER},
</if>
<if test="starttime != null">
#{starttime,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.glxp.udidl.admin.entity.udid.DevicedownloadExample" resultType="java.lang.Long">
select count(*) from devicedownload
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update devicedownload
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.updateday != null">
updateday = #{record.updateday,jdbcType=VARCHAR},
</if>
<if test="record.updatemonth != null">
updatemonth = #{record.updatemonth,jdbcType=VARCHAR},
</if>
<if test="record.dayindex != null">
dayindex = #{record.dayindex,jdbcType=INTEGER},
</if>
<if test="record.monthindex != null">
monthindex = #{record.monthindex,jdbcType=INTEGER},
</if>
<if test="record.daytotal != null">
daytotal = #{record.daytotal,jdbcType=INTEGER},
</if>
<if test="record.monthtotal != null">
monthtotal = #{record.monthtotal,jdbcType=INTEGER},
</if>
<if test="record.alltotal != null">
alltotal = #{record.alltotal,jdbcType=INTEGER},
</if>
<if test="record.allindex != null">
allindex = #{record.allindex,jdbcType=INTEGER},
</if>
<if test="record.isdownload != null">
isdownload = #{record.isdownload,jdbcType=INTEGER},
</if>
<if test="record.starttime != null">
startTime = #{record.starttime,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update devicedownload
set id = #{record.id,jdbcType=VARCHAR},
updateday = #{record.updateday,jdbcType=VARCHAR},
updatemonth = #{record.updatemonth,jdbcType=VARCHAR},
dayindex = #{record.dayindex,jdbcType=INTEGER},
monthindex = #{record.monthindex,jdbcType=INTEGER},
daytotal = #{record.daytotal,jdbcType=INTEGER},
monthtotal = #{record.monthtotal,jdbcType=INTEGER},
alltotal = #{record.alltotal,jdbcType=INTEGER},
allindex = #{record.allindex,jdbcType=INTEGER},
isdownload = #{record.isdownload,jdbcType=INTEGER},
startTime = #{record.starttime,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.udidl.admin.entity.udid.Devicedownload">
update devicedownload
<set>
<if test="updateday != null">
updateday = #{updateday,jdbcType=VARCHAR},
</if>
<if test="updatemonth != null">
updatemonth = #{updatemonth,jdbcType=VARCHAR},
</if>
<if test="dayindex != null">
dayindex = #{dayindex,jdbcType=INTEGER},
</if>
<if test="monthindex != null">
monthindex = #{monthindex,jdbcType=INTEGER},
</if>
<if test="daytotal != null">
daytotal = #{daytotal,jdbcType=INTEGER},
</if>
<if test="monthtotal != null">
monthtotal = #{monthtotal,jdbcType=INTEGER},
</if>
<if test="alltotal != null">
alltotal = #{alltotal,jdbcType=INTEGER},
</if>
<if test="allindex != null">
allindex = #{allindex,jdbcType=INTEGER},
</if>
<if test="isdownload != null">
isdownload = #{isdownload,jdbcType=INTEGER},
</if>
<if test="starttime != null">
startTime = #{starttime,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.glxp.udidl.admin.entity.udid.Devicedownload">
update devicedownload
set updateday = #{updateday,jdbcType=VARCHAR},
updatemonth = #{updatemonth,jdbcType=VARCHAR},
dayindex = #{dayindex,jdbcType=INTEGER},
monthindex = #{monthindex,jdbcType=INTEGER},
daytotal = #{daytotal,jdbcType=INTEGER},
monthtotal = #{monthtotal,jdbcType=INTEGER},
alltotal = #{alltotal,jdbcType=INTEGER},
allindex = #{allindex,jdbcType=INTEGER},
isdownload = #{isdownload,jdbcType=INTEGER},
startTime = #{starttime,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateProgress" parameterType="com.glxp.udidl.admin.entity.udid.Devicedownload">
update devicedownload
set
alltotal = #{alltotal,jdbcType=INTEGER},
allindex = #{allindex,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>