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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?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.common.JumpDetailV2Mapper">
    <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.common.JumpDetailV2">
        <id column="jp_id" property="id" jdbcType="BIGINT"/>
        <result column="jp_name" property="name" jdbcType="VARCHAR"/>
        <result column="jp_activity" property="activity" jdbcType="VARCHAR"/>
        <result column="jp_controller" property="controller" jdbcType="VARCHAR"/>
        <result column="jp_type" property="type" jdbcType="VARCHAR"/>
        <result column="jp_need_login" property="needLogin" jdbcType="BOOLEAN"/>
        <result column="jp_path" property="path" jdbcType="VARCHAR"/>
        <result column="jp_min_android_version" property="minAndroidAppVersion" jdbcType="INTEGER"/>
        <result column="jp_min_ios_version" property="minIOSAppVersion" jdbcType="INTEGER"/>
        <result column="jp_system" property="system" jdbcType="VARCHAR"/>
    </resultMap>
    <sql id="Base_Column_List">jp_id,jp_name,jp_activity,jp_controller,jp_type,jp_need_login,jp_min_android_version,jp_min_ios_version,jp_path,jp_system</sql>
    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
        <include refid="Base_Column_List"/>
        from yeshi_ec_action_jumpdetail_v2 where jp_id = #{id,jdbcType=BIGINT}
    </select>
    <delete id="deleteByPrimaryKey"
            parameterType="java.lang.Long">delete from yeshi_ec_action_jumpdetail_v2 where jp_id = #{id,jdbcType=BIGINT}</delete>
    <insert id="insert" parameterType="com.yeshi.fanli.entity.common.JumpDetailV2" useGeneratedKeys="true"
            keyProperty="id">insert into yeshi_ec_action_jumpdetail_v2 (jp_id,jp_name,jp_activity,jp_controller,jp_type,jp_need_login,jp_min_android_version,jp_min_ios_version,jp_path,jp_system) values (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{activity,jdbcType=VARCHAR},#{controller,jdbcType=VARCHAR},#{type,jdbcType=VARCHAR},#{needLogin,jdbcType=BOOLEAN},#{minAndroidAppVersion,jdbcType=INTEGER},#{minIOSAppVersion,jdbcType=INTEGER},#{path,jdbcType=VARCHAR},#{system,jdbcType=VARCHAR})</insert>
    <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.common.JumpDetailV2" useGeneratedKeys="true"
            keyProperty="id">insert into yeshi_ec_action_jumpdetail_v2
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">jp_id,</if>
            <if test="name != null">jp_name,</if>
            <if test="activity != null">jp_activity,</if>
            <if test="controller != null">jp_controller,</if>
            <if test="type != null">jp_type,</if>
            <if test="needLogin != null">jp_need_login,</if>
            <if test="minAndroidAppVersion != null">jp_min_android_version,</if>
            <if test="minIOSAppVersion != null">jp_min_ios_version,</if>
            <if test="path != null">jp_path,</if>
            <if test="system != null">jp_system,</if>
        </trim>
        values
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id,jdbcType=BIGINT},</if>
            <if test="name != null">#{name,jdbcType=VARCHAR},</if>
            <if test="activity != null">#{activity,jdbcType=VARCHAR},</if>
            <if test="controller != null">#{controller,jdbcType=VARCHAR},</if>
            <if test="type != null">#{type,jdbcType=VARCHAR},</if>
            <if test="needLogin != null">#{jp_need_login,jdbcType=BOOLEAN},</if>
            <if test="minAndroidAppVersion != null">#{minAndroidAppVersion,jdbcType=INTEGER}</if>
            <if test="minIOSAppVersion != null">#{minIOSAppVersion,jdbcType=INTEGER}</if>
            <if test="path != null">#{path,jdbcType=VARCHAR}</if>
            <if test="system != null">#{system,jdbcType=VARCHAR}</if>
        </trim>
    </insert>
    <update id="updateByPrimaryKey"
            parameterType="com.yeshi.fanli.entity.common.JumpDetailV2">update yeshi_ec_action_jumpdetail_v2 set jp_name = #{name,jdbcType=VARCHAR},jp_activity = #{activity,jdbcType=VARCHAR},jp_controller = #{controller,jdbcType=VARCHAR},jp_type = #{type,jdbcType=VARCHAR},jp_need_login = #{needLogin,jdbcType=BOOLEAN} ,jp_min_android_version =#{minAndroidAppVersion,jdbcType=INTEGER} ,jp_min_ios_version =#{minIOSAppVersion,jdbcType=INTEGER} ,jp_path =#{path,jdbcType=VARCHAR} ,jp_system =#{system,jdbcType=VARCHAR} where jp_id = #{id,jdbcType=BIGINT}</update>
    <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.common.JumpDetailV2">update
        yeshi_ec_action_jumpdetail_v2
        <set>
            <if test="name != null">jp_name=#{name,jdbcType=VARCHAR},</if>
            <if test="activity != null">jp_activity=#{activity,jdbcType=VARCHAR},</if>
            <if test="controller != null">jp_controller=#{controller,jdbcType=VARCHAR},</if>
            <if test="type != null">jp_type=#{type,jdbcType=VARCHAR},</if>
            <if test="needLogin != null">jp_need_login=#{needLogin,jdbcType=BOOLEAN},</if>
            <if test="minAndroidAppVersion !=null">jp_min_android_version =#{minAndroidAppVersion,jdbcType=INTEGER},
            </if>
            <if test="minIOSAppVersion !=null">jp_min_ios_version =#{minIOSAppVersion,jdbcType=INTEGER},</if>
            <if test="path !=null">jp_path =#{path,jdbcType=VARCHAR},</if>
            <if test="system !=null">jp_system =#{system,jdbcType=VARCHAR},</if>
        </set>
        where jp_id = #{id,jdbcType=BIGINT}
    </update>
    <select id="listByType" resultMap="BaseResultMap">select
        <include refid="Base_Column_List"/>
        from yeshi_ec_action_jumpdetail_v2 where jp_type = #{type,jdbcType=VARCHAR}
    </select>
    <select id="listJump" resultMap="BaseResultMap">select
        <include refid="Base_Column_List"/>
        from yeshi_ec_action_jumpdetail_v2
    </select>
    <delete id="deleteBatchByPrimaryKey" parameterType="java.util.List">delete from yeshi_ec_action_jumpdetail_v2 WHERE
        jp_id in
        <foreach collection="list" item="item" open="(" close=")" separator=",">#{item}</foreach>
    </delete>
 
    <sql id="listWheres">
 
        <if test="query.key!=null">
            AND jp_name like '%${query.key}%'
        </if>
 
        <if test="query.maxAndroidVersion!=null">
            AND #{query.maxAndroidVersion}>=jp_min_android_version
        </if>
 
        <if test="query.maxIOSVersion!=null">
            AND #{query.maxIOSVersion}>=jp_min_ios_version
        </if>
 
        <if test="query.type!=null">
            AND jp_type= #{query.type}
        </if>
 
        <if test="query.system!=null">
            AND jp_system= #{query.system}
        </if>
 
    </sql>
 
    <select id="list" resultMap="BaseResultMap">
        select <include refid="Base_Column_List"></include> from yeshi_ec_action_jumpdetail_v2 where 1=1
        <include refid="listWheres"></include>
        <if test="query.sortList!=null">
            <foreach collection="query.sortList" item="item" open=" order by " close=" " separator=",">
                #{item}
            </foreach>
        </if>
        limit #{query.start},#{query.count}
    </select>
 
    <select id="count" resultType="java.lang.Long">
        select count(*) from yeshi_ec_action_jumpdetail_v2 where 1=1
        <include refid="listWheres"></include>
    </select>
 
 
</mapper>