admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?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.push.PushQueueRecordMapper">
    <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_state" property="state" jdbcType="INTEGER"/>
        <result column="qe_createtime" property="createtime" jdbcType="TIMESTAMP"/>
        <result column="qe_endtime" property="endtime" jdbcType="TIMESTAMP"/>
        <result column="qe_versions" property="versions" jdbcType="VARCHAR"/>
        <result column="qe_system" property="system" jdbcType="VARCHAR"/>
    </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_state,qe_createtime,qe_endtime,qe_versions,qe_system</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}
    </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_state,qe_createtime,qe_endtime,qe_id,qe_versions,qe_system) values (#{id,jdbcType=BIGINT},#{type,jdbcType=INTEGER},#{jsonContent,jdbcType=VARCHAR},#{startCursor,jdbcType=BIGINT},#{endCursor,jdbcType=BIGINT},#{recordCursor,jdbcType=BIGINT},#{pushNum,jdbcType=INTEGER},#{state,jdbcType=INTEGER},#{createtime,jdbcType=TIMESTAMP},#{endtime,jdbcType=TIMESTAMP},#{id,jdbcType=BIGINT},#{versions,jdbcType=VARCHAR},#{system,jdbcType=VARCHAR})</insert>
    <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.push.PushQueueRecord" useGeneratedKeys="true"
            keyProperty="id">insert into yeshi_ec_push_queue
        <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="state != null">qe_state,</if>
            <if test="createtime != null">qe_createtime,</if>
            <if test="endtime != null">qe_endtime,</if>
            <if test="versions != null">qe_versions,</if>
            <if test="system != null">qe_system,</if>
        </trim>
        values
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id,jdbcType=BIGINT},</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="state != null">#{state,jdbcType=INTEGER},</if>
            <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if>
            <if test="endtime != null">#{endtime,jdbcType=TIMESTAMP},</if>
            <if test="versions != null">#{versions,jdbcType=VARCHAR},</if>
            <if test="system != null">#{system,jdbcType=VARCHAR},</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_state = #{state,jdbcType=INTEGER},qe_createtime = #{createtime,jdbcType=TIMESTAMP},qe_endtime = #{endtime,jdbcType=TIMESTAMP} ,qe_versions =#{versions,jdbcType=VARCHAR} ,qe_system =#{system,jdbcType=VARCHAR} where qe_id = #{id,jdbcType=BIGINT}</update>
    <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.push.PushQueueRecord">update
        yeshi_ec_push_queue
        <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="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>
            <if test="versions !=null">qe_versions =#{versions,jdbcType=VARCHAR},</if>
            <if test="system !=null">qe_system =#{system,jdbcType=VARCHAR},</if>
        </set>
        where qe_id = #{id,jdbcType=BIGINT}
    </update>
</mapper>