| | |
| | | <!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.push.PushRecordMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.push.PushQueueRecord"> |
| | | <id column="qe_id" property="id" jdbcType="BIGINT"/> |
| | | <result column="qe_type" property="type" jdbcType="INTEGER"/> |
| | | <result column="qe_content" property="jsonContent" jdbcType="VARCHAR"/> |
| | | <result column="qe_start_cursor" property="startCursor" jdbcType="BIGINT"/> |
| | | <result column="qe_end_cursor" property="endCursor" jdbcType="BIGINT"/> |
| | | <result column="qe_record_cursor" property="recordCursor" jdbcType="BIGINT"/> |
| | | <result column="qe_push_num" property="pushNum" jdbcType="INTEGER"/> |
| | | <result column="qe_versions" property="versions" jdbcType="VARCHAR"/> |
| | | <result column="qe_state" property="state" jdbcType="INTEGER"/> |
| | | <result column="qe_createtime" property="createtime" jdbcType="TIMESTAMP"/> |
| | | <result column="qe_endtime" property="endtime" jdbcType="TIMESTAMP"/> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.xinge.PushRecord"> |
| | | <id column="id" property="id" jdbcType="BIGINT"/> |
| | | <result column="url" property="url" jdbcType="VARCHAR"/> |
| | | <result column="type" property="type" jdbcType="INTEGER"/> |
| | | <result column="title" property="title" jdbcType="VARCHAR"/> |
| | | <result column="state" property="state" jdbcType="INTEGER"/> |
| | | <result column="createtime" property="createtime" jdbcType="BIGINT"/> |
| | | <result column="count" property="count" jdbcType="BIGINT"/> |
| | | <result column="iosPushId" property="iosPushId" jdbcType="VARCHAR"/> |
| | | <result column="androidPushId" property="androidPushId" jdbcType="VARCHAR"/> |
| | | <result column="account" property="account" jdbcType="INTEGER"/> |
| | | <result column="appName" property="appName" jdbcType="VARCHAR"/> |
| | | <result column="uid" property="uid" jdbcType="BIGINT"/> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">qe_id,qe_type,qe_content,qe_start_cursor,qe_end_cursor,qe_record_cursor,qe_push_num,qe_versions,qe_state,qe_createtime,qe_endtime</sql> |
| | | <sql id="Base_Column_List">id,url,type,title,state,createtime,count,iosPushId,androidPushId,account,appName,uid</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_push_queue where qe_id = #{id,jdbcType=BIGINT} |
| | | <include refid="Base_Column_List"/>from yeshi_ec_push_record where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_push_queue where qe_id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.push.PushQueueRecord" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_push_queue (qe_id,qe_type,qe_content,qe_start_cursor,qe_end_cursor,qe_record_cursor,qe_push_num,qe_versions,qe_state,qe_createtime,qe_endtime) values (#{id,jdbcType=BIGINT},#{type,jdbcType=INTEGER},#{jsonContent,jdbcType=VARCHAR},#{startCursor,jdbcType=BIGINT},#{endCursor,jdbcType=BIGINT},#{recordCursor,jdbcType=BIGINT},#{pushNum,jdbcType=INTEGER},#{versions,jdbcType=VARCHAR},#{state,jdbcType=INTEGER},#{createtime,jdbcType=TIMESTAMP},#{endtime,jdbcType=TIMESTAMP})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.push.PushQueueRecord" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_push_queue |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_push_record where id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.xinge.PushRecord" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_push_record (id,url,type,title,state,createtime,count,iosPushId,androidPushId,account,appName,uid) values (#{id,jdbcType=BIGINT},#{url,jdbcType=VARCHAR},#{type,jdbcType=INTEGER},#{title,jdbcType=VARCHAR},#{state,jdbcType=INTEGER},#{createtime,jdbcType=BIGINT},#{count,jdbcType=BIGINT},#{iosPushId,jdbcType=VARCHAR},#{androidPushId,jdbcType=VARCHAR},#{account,jdbcType=INTEGER},#{appName,jdbcType=VARCHAR},#{uid,jdbcType=BIGINT})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.xinge.PushRecord" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_push_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">qe_id,</if> |
| | | <if test="type != null">qe_type,</if> |
| | | <if test="jsonContent != null">qe_content,</if> |
| | | <if test="startCursor != null">qe_start_cursor,</if> |
| | | <if test="endCursor != null">qe_end_cursor,</if> |
| | | <if test="recordCursor != null">qe_record_cursor,</if> |
| | | <if test="pushNum != null">qe_push_num,</if> |
| | | <if test="versions != null">qe_versions,</if> |
| | | <if test="state != null">qe_state,</if> |
| | | <if test="createtime != null">qe_createtime,</if> |
| | | <if test="endtime != null">qe_endtime,</if> |
| | | <if test="id != null">id,</if> |
| | | <if test="url != null">url,</if> |
| | | <if test="type != null">type,</if> |
| | | <if test="title != null">title,</if> |
| | | <if test="state != null">state,</if> |
| | | <if test="createtime != null">createtime,</if> |
| | | <if test="count != null">count,</if> |
| | | <if test="iosPushId != null">iosPushId,</if> |
| | | <if test="androidPushId != null">androidPushId,</if> |
| | | <if test="account != null">account,</if> |
| | | <if test="appName != null">appName,</if> |
| | | <if test="uid != null">uid,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="url != null">#{url,jdbcType=VARCHAR},</if> |
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if> |
| | | <if test="jsonContent != null">#{jsonContent,jdbcType=VARCHAR},</if> |
| | | <if test="startCursor != null">#{startCursor,jdbcType=BIGINT},</if> |
| | | <if test="endCursor != null">#{endCursor,jdbcType=BIGINT},</if> |
| | | <if test="recordCursor != null">#{recordCursor,jdbcType=BIGINT},</if> |
| | | <if test="pushNum != null">#{pushNum,jdbcType=INTEGER},</if> |
| | | <if test="versions != null">#{versions,jdbcType=VARCHAR},</if> |
| | | <if test="title != null">#{title,jdbcType=VARCHAR},</if> |
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if> |
| | | <if test="endtime != null">#{endtime,jdbcType=TIMESTAMP},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=BIGINT},</if> |
| | | <if test="count != null">#{count,jdbcType=BIGINT},</if> |
| | | <if test="iosPushId != null">#{iosPushId,jdbcType=VARCHAR},</if> |
| | | <if test="androidPushId != null">#{androidPushId,jdbcType=VARCHAR},</if> |
| | | <if test="account != null">#{account,jdbcType=INTEGER},</if> |
| | | <if test="appName != null">#{appName,jdbcType=VARCHAR},</if> |
| | | <if test="uid != null">#{uid,jdbcType=BIGINT},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.push.PushQueueRecord">update yeshi_ec_push_queue set qe_type = #{type,jdbcType=INTEGER},qe_content = #{jsonContent,jdbcType=VARCHAR},qe_start_cursor = #{startCursor,jdbcType=BIGINT},qe_end_cursor = #{endCursor,jdbcType=BIGINT},qe_record_cursor = #{recordCursor,jdbcType=BIGINT},qe_push_num = #{pushNum,jdbcType=INTEGER},qe_versions = #{versions,jdbcType=VARCHAR},qe_state = #{state,jdbcType=INTEGER},qe_createtime = #{createtime,jdbcType=TIMESTAMP},qe_endtime = #{endtime,jdbcType=TIMESTAMP} where qe_id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.push.PushQueueRecord">update yeshi_ec_push_queue |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.xinge.PushRecord">update yeshi_ec_push_record set url = #{url,jdbcType=VARCHAR},type = #{type,jdbcType=INTEGER},title = #{title,jdbcType=VARCHAR},state = #{state,jdbcType=INTEGER},createtime = #{createtime,jdbcType=BIGINT},count = #{count,jdbcType=BIGINT},iosPushId = #{iosPushId,jdbcType=VARCHAR},androidPushId = #{androidPushId,jdbcType=VARCHAR},account = #{account,jdbcType=INTEGER},appName = #{appName,jdbcType=VARCHAR},uid = #{uid,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.xinge.PushRecord">update yeshi_ec_push_record |
| | | <set> |
| | | <if test="type != null">qe_type=#{type,jdbcType=INTEGER},</if> |
| | | <if test="jsonContent != null">qe_content=#{jsonContent,jdbcType=VARCHAR},</if> |
| | | <if test="startCursor != null">qe_start_cursor=#{startCursor,jdbcType=BIGINT},</if> |
| | | <if test="endCursor != null">qe_end_cursor=#{endCursor,jdbcType=BIGINT},</if> |
| | | <if test="recordCursor != null">qe_record_cursor=#{recordCursor,jdbcType=BIGINT},</if> |
| | | <if test="pushNum != null">qe_push_num=#{pushNum,jdbcType=INTEGER},</if> |
| | | <if test="versions != null">qe_versions=#{versions,jdbcType=VARCHAR},</if> |
| | | <if test="state != null">qe_state=#{state,jdbcType=INTEGER},</if> |
| | | <if test="createtime != null">qe_createtime=#{createtime,jdbcType=TIMESTAMP},</if> |
| | | <if test="endtime != null">qe_endtime=#{endtime,jdbcType=TIMESTAMP},</if> |
| | | </set> where qe_id = #{id,jdbcType=BIGINT} |
| | | <if test="url != null">url=#{url,jdbcType=VARCHAR},</if> |
| | | <if test="type != null">type=#{type,jdbcType=INTEGER},</if> |
| | | <if test="title != null">title=#{title,jdbcType=VARCHAR},</if> |
| | | <if test="state != null">state=#{state,jdbcType=INTEGER},</if> |
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=BIGINT},</if> |
| | | <if test="count != null">count=#{count,jdbcType=BIGINT},</if> |
| | | <if test="iosPushId != null">iosPushId=#{iosPushId,jdbcType=VARCHAR},</if> |
| | | <if test="androidPushId != null">androidPushId=#{androidPushId,jdbcType=VARCHAR},</if> |
| | | <if test="account != null">account=#{account,jdbcType=INTEGER},</if> |
| | | <if test="appName != null">appName=#{appName,jdbcType=VARCHAR},</if> |
| | | <if test="uid != null">uid=#{uid,jdbcType=BIGINT},</if> |
| | | </set> where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |