admin
2020-06-08 457f4881a89c03984c7b46ed10e8919d3294976c
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?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.vipshop.VipShopOrderMapper">
    <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.vipshop.VipShopOrder">
        <id column="vo_id" property="id" jdbcType="BIGINT" />
        <result column="vo_order_sn" property="orderSn" jdbcType="VARCHAR" />
        <result column="vo_order_status" property="status" jdbcType="INTEGER" />
        <result column="vo_new_customer" property="newCustomer"
            jdbcType="INTEGER" />
        <result column="vo_channel_tag" property="channelTag" jdbcType="VARCHAR" />
        <result column="vo_order_time" property="orderTime" jdbcType="BIGINT" />
        <result column="vo_sign_time" property="signTime" jdbcType="BIGINT" />
        <result column="vo_settled_time" property="settledTime"
            jdbcType="BIGINT" />
        <result column="vo_last_update_time" property="lastUpdateTime"
            jdbcType="BIGINT" />
        <result column="vo_settled" property="settled" jdbcType="INTEGER" />
        <result column="vo_self_buy" property="selfBuy" jdbcType="INTEGER" />
        <result column="vo_order_sub_status_name" property="orderSubStatusName"
            jdbcType="VARCHAR" />
        <result column="vo_commission" property="commission" jdbcType="DECIMAL" />
        <result column="vo_after_sale_change_commission" property="afterSaleChangeCommission"
            jdbcType="VARCHAR" />
        <result column="vo_after_sale_change_goods_count" property="afterSaleChangeGoodsCount"
            jdbcType="INTEGER" />
        <result column="vo_commission_enter_time" property="commissionEnterTime"
            jdbcType="BIGINT" />
        <result column="vo_order_source" property="orderSource"
            jdbcType="VARCHAR" />
        <result column="vo_pid" property="pid" jdbcType="VARCHAR" />
        <result column="vo_is_prepay" property="isPrepay" jdbcType="INTEGER" />
        <result column="vo_b2c_user_id" property="b2cUserId" jdbcType="BIGINT" />
        <result column="vo_create_time" property="createTime" jdbcType="TIMESTAMP" />
        <result column="vo_update_time" property="updateTime" jdbcType="TIMESTAMP" />
    </resultMap>
    <sql id="Base_Column_List">vo_id,vo_order_sn,vo_order_status,vo_new_customer,vo_channel_tag,vo_order_time,vo_sign_time,vo_settled_time,vo_last_update_time,vo_settled,vo_self_buy,vo_order_sub_status_name,vo_commission,vo_after_sale_change_commission,vo_after_sale_change_goods_count,vo_commission_enter_time,vo_order_source,vo_pid,vo_is_prepay,vo_b2c_user_id,vo_create_time,vo_update_time
    </sql>
    <select id="selectByPrimaryKey" resultMap="BaseResultMap"
        parameterType="java.lang.Long">
        select
        <include refid="Base_Column_List" />
        from yeshi_ec_vipshop_order where vo_id = #{id,jdbcType=BIGINT}
    </select>
    
    
    <select id="selectByOrderSn" resultMap="BaseResultMap"
        parameterType="java.lang.String">
        select
        <include refid="Base_Column_List" />
        from yeshi_ec_vipshop_order where vo_order_sn = #{0}
    </select>
    
    
    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
        yeshi_ec_vipshop_order where vo_id = #{id,jdbcType=BIGINT}</delete>
    <insert id="insert" parameterType="com.yeshi.fanli.entity.vipshop.VipShopOrder"
        useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_vipshop_order
        (vo_id,vo_order_sn,vo_order_status,vo_new_customer,vo_channel_tag,vo_order_time,vo_sign_time,vo_settled_time,vo_last_update_time,vo_settled,vo_self_buy,vo_order_sub_status_name,vo_commission,vo_after_sale_change_commission,vo_after_sale_change_goods_count,vo_commission_enter_time,vo_order_source,vo_pid,vo_is_prepay,vo_b2c_user_id,vo_create_time,vo_update_time)
        values
        (#{id,jdbcType=BIGINT},#{orderSn,jdbcType=VARCHAR},#{status,jdbcType=INTEGER},#{newCustomer,jdbcType=INTEGER},#{channelTag,jdbcType=VARCHAR},#{orderTime,jdbcType=BIGINT},#{signTime,jdbcType=BIGINT},#{settledTime,jdbcType=BIGINT},#{lastUpdateTime,jdbcType=BIGINT},#{settled,jdbcType=INTEGER},#{selfBuy,jdbcType=INTEGER},#{orderSubStatusName,jdbcType=VARCHAR},#{commission,jdbcType=DECIMAL},#{afterSaleChangeCommission,jdbcType=VARCHAR},#{afterSaleChangeGoodsCount,jdbcType=INTEGER},#{commissionEnterTime,jdbcType=BIGINT},#{orderSource,jdbcType=VARCHAR},#{pid,jdbcType=VARCHAR},#{isPrepay,jdbcType=INTEGER},#{b2cUserId,jdbcType=BIGINT},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})
    </insert>
    <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.vipshop.VipShopOrder"
        useGeneratedKeys="true" keyProperty="id">
        insert into yeshi_ec_vipshop_order
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">vo_id,</if>
            <if test="orderSn != null">vo_order_sn,</if>
            <if test="status != null">vo_order_status,</if>
            <if test="newCustomer != null">vo_new_customer,</if>
            <if test="channelTag != null">vo_channel_tag,</if>
            <if test="orderTime != null">vo_order_time,</if>
            <if test="signTime != null">vo_sign_time,</if>
            <if test="settledTime != null">vo_settled_time,</if>
            <if test="lastUpdateTime != null">vo_last_update_time,</if>
            <if test="settled != null">vo_settled,</if>
            <if test="selfBuy != null">vo_self_buy,</if>
            <if test="orderSubStatusName != null">vo_order_sub_status_name,</if>
            <if test="commission != null">vo_commission,</if>
            <if test="afterSaleChangeCommission != null">vo_after_sale_change_commission,</if>
            <if test="afterSaleChangeGoodsCount != null">vo_after_sale_change_goods_count,</if>
            <if test="commissionEnterTime != null">vo_commission_enter_time,</if>
            <if test="orderSource != null">vo_order_source,</if>
            <if test="pid != null">vo_pid,</if>
            <if test="isPrepay != null">vo_is_prepay,</if>
            <if test="b2cUserId != null">vo_b2c_user_id,</if>
            <if test="createTime != null">vo_create_time,</if>
            <if test="updateTime != null">vo_update_time,</if>
        </trim>
        values
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id,jdbcType=BIGINT},</if>
            <if test="orderSn != null">#{orderSn,jdbcType=VARCHAR},</if>
            <if test="status != null">#{status,jdbcType=INTEGER},</if>
            <if test="newCustomer != null">#{newCustomer,jdbcType=INTEGER},</if>
            <if test="channelTag != null">#{channelTag,jdbcType=VARCHAR},</if>
            <if test="orderTime != null">#{orderTime,jdbcType=BIGINT},</if>
            <if test="signTime != null">#{signTime,jdbcType=BIGINT},</if>
            <if test="settledTime != null">#{settledTime,jdbcType=BIGINT},</if>
            <if test="lastUpdateTime != null">#{lastUpdateTime,jdbcType=BIGINT},</if>
            <if test="settled != null">#{settled,jdbcType=INTEGER},</if>
            <if test="selfBuy != null">#{selfBuy,jdbcType=INTEGER},</if>
            <if test="orderSubStatusName != null">#{orderSubStatusName,jdbcType=VARCHAR},</if>
            <if test="commission != null">#{commission,jdbcType=DECIMAL},</if>
            <if test="afterSaleChangeCommission != null">#{afterSaleChangeCommission,jdbcType=VARCHAR},</if>
            <if test="afterSaleChangeGoodsCount != null">#{afterSaleChangeGoodsCount,jdbcType=INTEGER},</if>
            <if test="commissionEnterTime != null">#{commissionEnterTime,jdbcType=BIGINT},</if>
            <if test="orderSource != null">#{orderSource,jdbcType=VARCHAR},</if>
            <if test="pid != null">#{pid,jdbcType=VARCHAR},</if>
            <if test="isPrepay != null">#{isPrepay,jdbcType=INTEGER},</if>
            <if test="b2cUserId != null">#{b2cUserId,jdbcType=BIGINT},</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.vipshop.VipShopOrder">update
        yeshi_ec_vipshop_order set vo_order_sn =
        #{orderSn,jdbcType=VARCHAR},vo_order_status =
        #{status,jdbcType=INTEGER},vo_new_customer =
        #{newCustomer,jdbcType=INTEGER},vo_channel_tag =
        #{channelTag,jdbcType=VARCHAR},vo_order_time =
        #{orderTime,jdbcType=BIGINT},vo_sign_time =
        #{signTime,jdbcType=BIGINT},vo_settled_time =
        #{settledTime,jdbcType=BIGINT},vo_last_update_time =
        #{lastUpdateTime,jdbcType=BIGINT},vo_settled =
        #{settled,jdbcType=INTEGER},vo_self_buy =
        #{selfBuy,jdbcType=INTEGER},vo_order_sub_status_name =
        #{orderSubStatusName,jdbcType=VARCHAR},vo_commission =
        #{commission,jdbcType=DECIMAL},vo_after_sale_change_commission =
        #{afterSaleChangeCommission,jdbcType=VARCHAR},vo_after_sale_change_goods_count
        =
        #{afterSaleChangeGoodsCount,jdbcType=INTEGER},vo_commission_enter_time
        = #{commissionEnterTime,jdbcType=BIGINT},vo_order_source =
        #{orderSource,jdbcType=VARCHAR},vo_pid =
        #{pid,jdbcType=VARCHAR},vo_is_prepay =
        #{isPrepay,jdbcType=INTEGER},vo_b2c_user_id =
        #{b2cUserId,jdbcType=BIGINT},vo_create_time =
        #{createTime,jdbcType=TIMESTAMP},vo_update_time =
        #{updateTime,jdbcType=TIMESTAMP} where vo_id = #{id,jdbcType=BIGINT}
    </update>
    <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.vipshop.VipShopOrder">
        update yeshi_ec_vipshop_order
        <set>
            <if test="orderSn != null">vo_order_sn=#{orderSn,jdbcType=VARCHAR},</if>
            <if test="status != null">vo_order_status=#{status,jdbcType=INTEGER},</if>
            <if test="newCustomer != null">vo_new_customer=#{newCustomer,jdbcType=INTEGER},</if>
            <if test="channelTag != null">vo_channel_tag=#{channelTag,jdbcType=VARCHAR},</if>
            <if test="orderTime != null">vo_order_time=#{orderTime,jdbcType=BIGINT},</if>
            <if test="signTime != null">vo_sign_time=#{signTime,jdbcType=BIGINT},</if>
            <if test="settledTime != null">vo_settled_time=#{settledTime,jdbcType=BIGINT},</if>
            <if test="lastUpdateTime != null">vo_last_update_time=#{lastUpdateTime,jdbcType=BIGINT},
            </if>
            <if test="settled != null">vo_settled=#{settled,jdbcType=INTEGER},</if>
            <if test="selfBuy != null">vo_self_buy=#{selfBuy,jdbcType=INTEGER},</if>
            <if test="orderSubStatusName != null">vo_order_sub_status_name=#{orderSubStatusName,jdbcType=VARCHAR},
            </if>
            <if test="commission != null">vo_commission=#{commission,jdbcType=DECIMAL},</if>
            <if test="afterSaleChangeCommission != null">vo_after_sale_change_commission=#{afterSaleChangeCommission,jdbcType=VARCHAR},
            </if>
            <if test="afterSaleChangeGoodsCount != null">vo_after_sale_change_goods_count=#{afterSaleChangeGoodsCount,jdbcType=INTEGER},
            </if>
            <if test="commissionEnterTime != null">vo_commission_enter_time=#{commissionEnterTime,jdbcType=BIGINT},
            </if>
            <if test="orderSource != null">vo_order_source=#{orderSource,jdbcType=VARCHAR},</if>
            <if test="pid != null">vo_pid=#{pid,jdbcType=VARCHAR},</if>
            <if test="isPrepay != null">vo_is_prepay=#{isPrepay,jdbcType=INTEGER},</if>
            <if test="b2cUserId != null">vo_b2c_user_id=#{b2cUserId,jdbcType=BIGINT},</if>
            <if test="createTime != null">vo_create_time=#{createTime,jdbcType=TIMESTAMP},</if>
            <if test="updateTime != null">vo_update_time=#{updateTime,jdbcType=TIMESTAMP},</if>
        </set>
        where vo_id = #{id,jdbcType=BIGINT}
    </update>
</mapper>