admin
2020-06-10 271ae63c20fcbe28d29c47f1881138ff6551a2a1
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<?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.suning.SuningOrderInfoMapper">
    <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.suning.SuningOrderInfo">
        <id column="so_id" property="id" jdbcType="BIGINT" />
        <result column="so_order_code" property="orderCode" jdbcType="VARCHAR" />
        <result column="so_pay_time" property="payTime" jdbcType="VARCHAR" />
        <result column="so_order_submit_time" property="orderSubmitTime"
            jdbcType="VARCHAR" />
        <result column="so_order_line_number" property="orderLineNumber"
            jdbcType="VARCHAR" />
        <result column="so_order_line_status_desc" property="orderLineStatusDesc"
            jdbcType="VARCHAR" />
        <result column="so_line_status_change_time" property="orderLineStatusChangeTime"
            jdbcType="VARCHAR" />
        <result column="so_order_line_origin" property="orderLineOrigin"
            jdbcType="VARCHAR" />
        <result column="so_product_name" property="productName"
            jdbcType="VARCHAR" />
        <result column="so_sale_num" property="saleNum" jdbcType="VARCHAR" />
        <result column="so_pay_amount" property="payAmount" jdbcType="VARCHAR" />
        <result column="so_order_line_flag" property="orderLineFlag"
            jdbcType="VARCHAR" />
        <result column="so_child_account_id" property="childAccountId"
            jdbcType="VARCHAR" />
        <result column="so_sell_name" property="sellName" jdbcType="VARCHAR" />
        <result column="so_seller_code" property="sellerCode" jdbcType="VARCHAR" />
        <result column="so_goods_num" property="goodsNum" jdbcType="VARCHAR" />
        <result column="so_commission_ratio" property="commissionRatio"
            jdbcType="VARCHAR" />
        <result column="so_pre_pay_commission" property="prePayCommission"
            jdbcType="VARCHAR" />
        <result column="so_product_first_catalog" property="productFirstCatalog"
            jdbcType="VARCHAR" />
        <result column="so_product_second_catalog" property="productSecondCatalog"
            jdbcType="VARCHAR" />
        <result column="so_product_third_catalog" property="productThirdCatalog"
            jdbcType="VARCHAR" />
        <result column="so_order_type" property="orderType" jdbcType="VARCHAR" />
        <result column="so_position_id" property="positionId" jdbcType="VARCHAR" />
        <result column="so_goods_group_catalog" property="goodsGroupCatalog"
            jdbcType="VARCHAR" />
        <result column="so_sale_type" property="saleType" jdbcType="VARCHAR" />
        <result column="so_picture_url" property="pictureUrl" jdbcType="VARCHAR" />
        <result column="so_promotion" property="promotion" jdbcType="INTEGER" />
        <result column="so_violation" property="violation" jdbcType="INTEGER" />
        <result column="so_return_commission" property="returnCommission"
            jdbcType="INTEGER" />
        <result column="so_create_time" property="createTime" jdbcType="TIMESTAMP" />
        <result column="so_update_time" property="updateTime" jdbcType="TIMESTAMP" />
    </resultMap>
    <sql id="Base_Column_List">so_id,so_order_code,so_pay_time,so_order_submit_time,so_order_line_number,so_order_line_status_desc,so_line_status_change_time,so_order_line_origin,so_product_name,so_sale_num,so_pay_amount,so_order_line_flag,so_child_account_id,so_sell_name,so_seller_code,so_goods_num,so_commission_ratio,so_pre_pay_commission,so_product_first_catalog,so_product_second_catalog,so_product_third_catalog,so_order_type,so_position_id,so_goods_group_catalog,so_sale_type,so_picture_url,so_promotion,so_violation,so_return_commission,so_create_time,so_update_time
    </sql>
    <select id="selectByPrimaryKey" resultMap="BaseResultMap"
        parameterType="java.lang.Long">
        select
        <include refid="Base_Column_List" />
        from yeshi_ec_suning_order where so_id = #{id,jdbcType=BIGINT}
    </select>
 
    <select id="selectByOrderLineNum" resultMap="BaseResultMap"
        parameterType="java.lang.String">
        select
        <include refid="Base_Column_List" />
        from yeshi_ec_suning_order where so_order_line_number = #{0}
    </select>
 
    <select id="listByOrderCode" resultMap="BaseResultMap"
        parameterType="java.lang.String">
        select
        <include refid="Base_Column_List" />
        from yeshi_ec_suning_order where so_order_code = #{0}
    </select>
 
 
    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
        yeshi_ec_suning_order where so_id = #{id,jdbcType=BIGINT}
    </delete>
    <insert id="insert" parameterType="com.yeshi.fanli.entity.suning.SuningOrderInfo"
        useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_suning_order
        (so_id,so_order_code,so_pay_time,so_order_submit_time,so_order_line_number,so_order_line_status_desc,so_line_status_change_time,so_order_line_origin,so_product_name,so_sale_num,so_pay_amount,so_order_line_flag,so_child_account_id,so_sell_name,so_seller_code,so_goods_num,so_commission_ratio,so_pre_pay_commission,so_product_first_catalog,so_product_second_catalog,so_product_third_catalog,so_order_type,so_position_id,so_goods_group_catalog,so_sale_type,so_picture_url,so_promotion,so_violation,so_return_commission,so_create_time,so_update_time)
        values
        (#{id,jdbcType=BIGINT},#{orderCode,jdbcType=VARCHAR},#{payTime,jdbcType=VARCHAR},#{orderSubmitTime,jdbcType=VARCHAR},#{orderLineNumber,jdbcType=VARCHAR},#{orderLineStatusDesc,jdbcType=VARCHAR},#{orderLineStatusChangeTime,jdbcType=VARCHAR},#{orderLineOrigin,jdbcType=VARCHAR},#{productName,jdbcType=VARCHAR},#{saleNum,jdbcType=VARCHAR},#{payAmount,jdbcType=VARCHAR},#{orderLineFlag,jdbcType=VARCHAR},#{childAccountId,jdbcType=VARCHAR},#{sellName,jdbcType=VARCHAR},#{sellerCode,jdbcType=VARCHAR},#{goodsNum,jdbcType=VARCHAR},#{commissionRatio,jdbcType=VARCHAR},#{prePayCommission,jdbcType=VARCHAR},#{productFirstCatalog,jdbcType=VARCHAR},#{productSecondCatalog,jdbcType=VARCHAR},#{productThirdCatalog,jdbcType=VARCHAR},#{orderType,jdbcType=VARCHAR},#{positionId,jdbcType=VARCHAR},#{goodsGroupCatalog,jdbcType=VARCHAR},#{saleType,jdbcType=VARCHAR},#{pictureUrl,jdbcType=VARCHAR},#{promotion,jdbcType=INTEGER},#{violation,jdbcType=INTEGER},#{returnCommission,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})
    </insert>
    <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.suning.SuningOrderInfo"
        useGeneratedKeys="true" keyProperty="id">
        insert into yeshi_ec_suning_order
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">so_id,</if>
            <if test="orderCode != null">so_order_code,</if>
            <if test="payTime != null">so_pay_time,</if>
            <if test="orderSubmitTime != null">so_order_submit_time,</if>
            <if test="orderLineNumber != null">so_order_line_number,</if>
            <if test="orderLineStatusDesc != null">so_order_line_status_desc,</if>
            <if test="orderLineStatusChangeTime != null">so_line_status_change_time,</if>
            <if test="orderLineOrigin != null">so_order_line_origin,</if>
            <if test="productName != null">so_product_name,</if>
            <if test="saleNum != null">so_sale_num,</if>
            <if test="payAmount != null">so_pay_amount,</if>
            <if test="orderLineFlag != null">so_order_line_flag,</if>
            <if test="childAccountId != null">so_child_account_id,</if>
            <if test="sellName != null">so_sell_name,</if>
            <if test="sellerCode != null">so_seller_code,</if>
            <if test="goodsNum != null">so_goods_num,</if>
            <if test="commissionRatio != null">so_commission_ratio,</if>
            <if test="prePayCommission != null">so_pre_pay_commission,</if>
            <if test="productFirstCatalog != null">so_product_first_catalog,</if>
            <if test="productSecondCatalog != null">so_product_second_catalog,</if>
            <if test="productThirdCatalog != null">so_product_third_catalog,</if>
            <if test="orderType != null">so_order_type,</if>
            <if test="positionId != null">so_position_id,</if>
            <if test="goodsGroupCatalog != null">so_goods_group_catalog,</if>
            <if test="saleType != null">so_sale_type,</if>
            <if test="pictureUrl != null">so_picture_url,</if>
            <if test="promotion != null">so_promotion,</if>
            <if test="violation != null">so_violation,</if>
            <if test="returnCommission != null">so_return_commission,</if>
            <if test="createTime != null">so_create_time,</if>
            <if test="updateTime != null">so_update_time,</if>
        </trim>
        values
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id,jdbcType=BIGINT},</if>
            <if test="orderCode != null">#{orderCode,jdbcType=VARCHAR},</if>
            <if test="payTime != null">#{payTime,jdbcType=VARCHAR},</if>
            <if test="orderSubmitTime != null">#{orderSubmitTime,jdbcType=VARCHAR},</if>
            <if test="orderLineNumber != null">#{orderLineNumber,jdbcType=VARCHAR},</if>
            <if test="orderLineStatusDesc != null">#{orderLineStatusDesc,jdbcType=VARCHAR},</if>
            <if test="orderLineStatusChangeTime != null">#{orderLineStatusChangeTime,jdbcType=VARCHAR},</if>
            <if test="orderLineOrigin != null">#{orderLineOrigin,jdbcType=VARCHAR},</if>
            <if test="productName != null">#{productName,jdbcType=VARCHAR},</if>
            <if test="saleNum != null">#{saleNum,jdbcType=VARCHAR},</if>
            <if test="payAmount != null">#{payAmount,jdbcType=VARCHAR},</if>
            <if test="orderLineFlag != null">#{orderLineFlag,jdbcType=VARCHAR},</if>
            <if test="childAccountId != null">#{childAccountId,jdbcType=VARCHAR},</if>
            <if test="sellName != null">#{sellName,jdbcType=VARCHAR},</if>
            <if test="sellerCode != null">#{sellerCode,jdbcType=VARCHAR},</if>
            <if test="goodsNum != null">#{goodsNum,jdbcType=VARCHAR},</if>
            <if test="commissionRatio != null">#{commissionRatio,jdbcType=VARCHAR},</if>
            <if test="prePayCommission != null">#{prePayCommission,jdbcType=VARCHAR},</if>
            <if test="productFirstCatalog != null">#{productFirstCatalog,jdbcType=VARCHAR},</if>
            <if test="productSecondCatalog != null">#{productSecondCatalog,jdbcType=VARCHAR},</if>
            <if test="productThirdCatalog != null">#{productThirdCatalog,jdbcType=VARCHAR},</if>
            <if test="orderType != null">#{orderType,jdbcType=VARCHAR},</if>
            <if test="positionId != null">#{positionId,jdbcType=VARCHAR},</if>
            <if test="goodsGroupCatalog != null">#{goodsGroupCatalog,jdbcType=VARCHAR},</if>
            <if test="saleType != null">#{saleType,jdbcType=VARCHAR},</if>
            <if test="pictureUrl != null">#{pictureUrl,jdbcType=VARCHAR},</if>
            <if test="promotion != null">#{promotion,jdbcType=INTEGER},</if>
            <if test="violation != null">#{violation,jdbcType=INTEGER},</if>
            <if test="returnCommission != null">#{returnCommission,jdbcType=INTEGER},</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.suning.SuningOrderInfo">update
        yeshi_ec_suning_order set so_order_code =
        #{orderCode,jdbcType=VARCHAR},so_pay_time =
        #{payTime,jdbcType=VARCHAR},so_order_submit_time =
        #{orderSubmitTime,jdbcType=VARCHAR},so_order_line_number =
        #{orderLineNumber,jdbcType=VARCHAR},so_order_line_status_desc =
        #{orderLineStatusDesc,jdbcType=VARCHAR},so_line_status_change_time =
        #{orderLineStatusChangeTime,jdbcType=VARCHAR},so_order_line_origin =
        #{orderLineOrigin,jdbcType=VARCHAR},so_product_name =
        #{productName,jdbcType=VARCHAR},so_sale_num =
        #{saleNum,jdbcType=VARCHAR},so_pay_amount =
        #{payAmount,jdbcType=VARCHAR},so_order_line_flag =
        #{orderLineFlag,jdbcType=VARCHAR},so_child_account_id =
        #{childAccountId,jdbcType=VARCHAR},so_sell_name =
        #{sellName,jdbcType=VARCHAR},so_seller_code =
        #{sellerCode,jdbcType=VARCHAR},so_goods_num =
        #{goodsNum,jdbcType=VARCHAR},so_commission_ratio =
        #{commissionRatio,jdbcType=VARCHAR},so_pre_pay_commission =
        #{prePayCommission,jdbcType=VARCHAR},so_product_first_catalog =
        #{productFirstCatalog,jdbcType=VARCHAR},so_product_second_catalog =
        #{productSecondCatalog,jdbcType=VARCHAR},so_product_third_catalog =
        #{productThirdCatalog,jdbcType=VARCHAR},so_order_type =
        #{orderType,jdbcType=VARCHAR},so_position_id =
        #{positionId,jdbcType=VARCHAR},so_goods_group_catalog =
        #{goodsGroupCatalog,jdbcType=VARCHAR},so_sale_type =
        #{saleType,jdbcType=VARCHAR},so_picture_url =
        #{pictureUrl,jdbcType=VARCHAR},so_promotion =
        #{promotion,jdbcType=INTEGER},so_violation =
        #{violation,jdbcType=INTEGER},so_return_commission =
        #{returnCommission,jdbcType=INTEGER},so_create_time =
        #{createTime,jdbcType=TIMESTAMP},so_update_time =
        #{updateTime,jdbcType=TIMESTAMP} where so_id = #{id,jdbcType=BIGINT}
    </update>
    <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.suning.SuningOrderInfo">
        update yeshi_ec_suning_order
        <set>
            <if test="orderCode != null">so_order_code=#{orderCode,jdbcType=VARCHAR},</if>
            <if test="payTime != null">so_pay_time=#{payTime,jdbcType=VARCHAR},</if>
            <if test="orderSubmitTime != null">so_order_submit_time=#{orderSubmitTime,jdbcType=VARCHAR},
            </if>
            <if test="orderLineNumber != null">so_order_line_number=#{orderLineNumber,jdbcType=VARCHAR},
            </if>
            <if test="orderLineStatusDesc != null">so_order_line_status_desc=#{orderLineStatusDesc,jdbcType=VARCHAR},
            </if>
            <if test="orderLineStatusChangeTime != null">so_line_status_change_time=#{orderLineStatusChangeTime,jdbcType=VARCHAR},
            </if>
            <if test="orderLineOrigin != null">so_order_line_origin=#{orderLineOrigin,jdbcType=VARCHAR},
            </if>
            <if test="productName != null">so_product_name=#{productName,jdbcType=VARCHAR},</if>
            <if test="saleNum != null">so_sale_num=#{saleNum,jdbcType=VARCHAR},</if>
            <if test="payAmount != null">so_pay_amount=#{payAmount,jdbcType=VARCHAR},</if>
            <if test="orderLineFlag != null">so_order_line_flag=#{orderLineFlag,jdbcType=VARCHAR},
            </if>
            <if test="childAccountId != null">so_child_account_id=#{childAccountId,jdbcType=VARCHAR},
            </if>
            <if test="sellName != null">so_sell_name=#{sellName,jdbcType=VARCHAR},</if>
            <if test="sellerCode != null">so_seller_code=#{sellerCode,jdbcType=VARCHAR},</if>
            <if test="goodsNum != null">so_goods_num=#{goodsNum,jdbcType=VARCHAR},</if>
            <if test="commissionRatio != null">so_commission_ratio=#{commissionRatio,jdbcType=VARCHAR},
            </if>
            <if test="prePayCommission != null">so_pre_pay_commission=#{prePayCommission,jdbcType=VARCHAR},
            </if>
            <if test="productFirstCatalog != null">so_product_first_catalog=#{productFirstCatalog,jdbcType=VARCHAR},
            </if>
            <if test="productSecondCatalog != null">so_product_second_catalog=#{productSecondCatalog,jdbcType=VARCHAR},
            </if>
            <if test="productThirdCatalog != null">so_product_third_catalog=#{productThirdCatalog,jdbcType=VARCHAR},
            </if>
            <if test="orderType != null">so_order_type=#{orderType,jdbcType=VARCHAR},</if>
            <if test="positionId != null">so_position_id=#{positionId,jdbcType=VARCHAR},</if>
            <if test="goodsGroupCatalog != null">so_goods_group_catalog=#{goodsGroupCatalog,jdbcType=VARCHAR},
            </if>
            <if test="saleType != null">so_sale_type=#{saleType,jdbcType=VARCHAR},</if>
            <if test="pictureUrl != null">so_picture_url=#{pictureUrl,jdbcType=VARCHAR},</if>
            <if test="promotion != null">so_promotion=#{promotion,jdbcType=INTEGER},</if>
            <if test="violation != null">so_violation=#{violation,jdbcType=INTEGER},</if>
            <if test="returnCommission != null">so_return_commission=#{returnCommission,jdbcType=INTEGER},
            </if>
            <if test="createTime != null">so_create_time=#{createTime,jdbcType=TIMESTAMP},</if>
            <if test="updateTime != null">so_update_time=#{updateTime,jdbcType=TIMESTAMP},</if>
        </set>
        where so_id = #{id,jdbcType=BIGINT}
    </update>
</mapper>