<?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>
|