Commit da01d842 by wutong

自动周转Mapper修改

parent bd3526b1
package com.bailuntec.mapper;
import com.bailuntec.domain.dto.TurnoverSkuDTO;
import com.bailuntec.domain.entity.DcBaseSku;
import com.bailuntec.domain.example.DcBaseSkuExample;
import org.apache.ibatis.annotations.Param;
......@@ -122,6 +121,4 @@ public interface DcBaseSkuMapper {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsertSelective(DcBaseSku record);
TurnoverSkuDTO getTurnoverSku(String bailunSku);
}
\ No newline at end of file
......@@ -11,8 +11,6 @@
<result column="sku_image" jdbcType="VARCHAR" property="skuImage" />
<result column="category_id" jdbcType="INTEGER" property="categoryId" />
<result column="category_name" jdbcType="VARCHAR" property="categoryName" />
<result column="warehouse_code" jdbcType="VARCHAR" property="warehouseCode" />
<result column="warehouse_name" jdbcType="VARCHAR" property="warehouseName" />
<result column="unit_price" jdbcType="DECIMAL" property="unitPrice" />
<result column="seller_id" jdbcType="INTEGER" property="sellerId" />
<result column="seller_name" jdbcType="VARCHAR" property="sellerName" />
......@@ -70,6 +68,11 @@
<result column="unit" jdbcType="VARCHAR" property="unit" />
<result column="push_status" jdbcType="TINYINT" property="pushStatus" />
<result column="transfer_delivery" jdbcType="INTEGER" property="transferDelivery" />
<result column="source" jdbcType="TINYINT" property="source" />
<result column="push_time" jdbcType="TIMESTAMP" property="pushTime" />
<result column="has_delete" jdbcType="BIT" property="hasDelete" />
<result column="develop_time" jdbcType="TIMESTAMP" property="developTime" />
<result column="company_id" jdbcType="INTEGER" property="companyId" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
......@@ -142,16 +145,16 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, bailun_sku, sku_image, category_id, category_name, warehouse_code, warehouse_name,
unit_price, seller_id, seller_name, length, width, height, weight, moq, sku_title_cn,
sku_title_en, create_time, update_time, gmt_create, gmt_modified, suppliers_id, suppliers_name,
supplier_delivery, currency, buyer_name, buyer_id, internal_moq, bussiness_id, bussiness_name,
status, type, product_code, bailun_inner_sku, product_inner_code, skums_id, suppliers_link,
bailun_category_id, bailun_category_name, color, specifications, create_name, update_name,
virtual_price, size_image, sales_price, enable, inspection_hours, bargainer, customs_code,
declare_title_en, declare_title_cn, pick_title_cn, pick_title_en, product_nature,
charger_specifications, packing_price, packing_name, packing_size, product_size,
packing_weight, unit, push_status, transfer_delivery
id, bailun_sku, sku_image, category_id, category_name, unit_price, seller_id, seller_name,
length, width, height, weight, moq, sku_title_cn, sku_title_en, create_time, update_time,
gmt_create, gmt_modified, suppliers_id, suppliers_name, supplier_delivery, currency,
buyer_name, buyer_id, internal_moq, bussiness_id, bussiness_name, status, type, product_code,
bailun_inner_sku, product_inner_code, skums_id, suppliers_link, bailun_category_id,
bailun_category_name, color, specifications, create_name, update_name, virtual_price,
size_image, sales_price, enable, inspection_hours, bargainer, customs_code, declare_title_en,
declare_title_cn, pick_title_cn, pick_title_en, product_nature, charger_specifications,
packing_price, packing_name, packing_size, product_size, packing_weight, unit, push_status,
transfer_delivery, source, push_time, has_delete, develop_time, company_id
</sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultMap="BaseResultMap">
<!--
......@@ -213,49 +216,51 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into dc_base_sku (id, bailun_sku, sku_image,
category_id, category_name, warehouse_code,
warehouse_name, unit_price, seller_id,
seller_name, length, width,
height, weight, moq,
sku_title_cn, sku_title_en, create_time,
update_time, gmt_create, gmt_modified,
suppliers_id, suppliers_name, supplier_delivery,
currency, buyer_name, buyer_id,
internal_moq, bussiness_id, bussiness_name,
status, type, product_code,
bailun_inner_sku, product_inner_code, skums_id,
suppliers_link, bailun_category_id, bailun_category_name,
color, specifications, create_name,
update_name, virtual_price, size_image,
sales_price, enable, inspection_hours,
bargainer, customs_code, declare_title_en,
declare_title_cn, pick_title_cn, pick_title_en,
product_nature, charger_specifications, packing_price,
packing_name, packing_size, product_size,
packing_weight, unit, push_status,
transfer_delivery)
category_id, category_name, unit_price,
seller_id, seller_name, length,
width, height, weight,
moq, sku_title_cn, sku_title_en,
create_time, update_time, gmt_create,
gmt_modified, suppliers_id, suppliers_name,
supplier_delivery, currency, buyer_name,
buyer_id, internal_moq, bussiness_id,
bussiness_name, status, type,
product_code, bailun_inner_sku, product_inner_code,
skums_id, suppliers_link, bailun_category_id,
bailun_category_name, color, specifications,
create_name, update_name, virtual_price,
size_image, sales_price, enable,
inspection_hours, bargainer, customs_code,
declare_title_en, declare_title_cn, pick_title_cn,
pick_title_en, product_nature, charger_specifications,
packing_price, packing_name, packing_size,
product_size, packing_weight, unit,
push_status, transfer_delivery, source,
push_time, has_delete, develop_time,
company_id)
values (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR},
#{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR},
#{warehouseName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL}, #{sellerId,jdbcType=INTEGER},
#{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL}, #{width,jdbcType=DECIMAL},
#{height,jdbcType=DECIMAL}, #{weight,jdbcType=DECIMAL}, #{moq,jdbcType=INTEGER},
#{skuTitleCn,jdbcType=VARCHAR}, #{skuTitleEn,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{suppliersId,jdbcType=INTEGER}, #{suppliersName,jdbcType=VARCHAR}, #{supplierDelivery,jdbcType=INTEGER},
#{currency,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR}, #{buyerId,jdbcType=INTEGER},
#{internalMoq,jdbcType=INTEGER}, #{bussinessId,jdbcType=INTEGER}, #{bussinessName,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT}, #{type,jdbcType=TINYINT}, #{productCode,jdbcType=VARCHAR},
#{bailunInnerSku,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR}, #{skumsId,jdbcType=INTEGER},
#{suppliersLink,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER}, #{bailunCategoryName,jdbcType=VARCHAR},
#{color,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR}, #{createName,jdbcType=VARCHAR},
#{updateName,jdbcType=VARCHAR}, #{virtualPrice,jdbcType=DECIMAL}, #{sizeImage,jdbcType=VARCHAR},
#{salesPrice,jdbcType=DECIMAL}, #{enable,jdbcType=TINYINT}, #{inspectionHours,jdbcType=DECIMAL},
#{bargainer,jdbcType=VARCHAR}, #{customsCode,jdbcType=VARCHAR}, #{declareTitleEn,jdbcType=VARCHAR},
#{declareTitleCn,jdbcType=VARCHAR}, #{pickTitleCn,jdbcType=VARCHAR}, #{pickTitleEn,jdbcType=VARCHAR},
#{productNature,jdbcType=VARCHAR}, #{chargerSpecifications,jdbcType=VARCHAR}, #{packingPrice,jdbcType=DECIMAL},
#{packingName,jdbcType=VARCHAR}, #{packingSize,jdbcType=VARCHAR}, #{productSize,jdbcType=VARCHAR},
#{packingWeight,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR}, #{pushStatus,jdbcType=TINYINT},
#{transferDelivery,jdbcType=INTEGER})
#{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL},
#{sellerId,jdbcType=INTEGER}, #{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL},
#{width,jdbcType=DECIMAL}, #{height,jdbcType=DECIMAL}, #{weight,jdbcType=DECIMAL},
#{moq,jdbcType=INTEGER}, #{skuTitleCn,jdbcType=VARCHAR}, #{skuTitleEn,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP},
#{gmtModified,jdbcType=TIMESTAMP}, #{suppliersId,jdbcType=INTEGER}, #{suppliersName,jdbcType=VARCHAR},
#{supplierDelivery,jdbcType=INTEGER}, #{currency,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR},
#{buyerId,jdbcType=INTEGER}, #{internalMoq,jdbcType=INTEGER}, #{bussinessId,jdbcType=INTEGER},
#{bussinessName,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{type,jdbcType=TINYINT},
#{productCode,jdbcType=VARCHAR}, #{bailunInnerSku,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR},
#{skumsId,jdbcType=INTEGER}, #{suppliersLink,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER},
#{bailunCategoryName,jdbcType=VARCHAR}, #{color,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR},
#{createName,jdbcType=VARCHAR}, #{updateName,jdbcType=VARCHAR}, #{virtualPrice,jdbcType=DECIMAL},
#{sizeImage,jdbcType=VARCHAR}, #{salesPrice,jdbcType=DECIMAL}, #{enable,jdbcType=TINYINT},
#{inspectionHours,jdbcType=DECIMAL}, #{bargainer,jdbcType=VARCHAR}, #{customsCode,jdbcType=VARCHAR},
#{declareTitleEn,jdbcType=VARCHAR}, #{declareTitleCn,jdbcType=VARCHAR}, #{pickTitleCn,jdbcType=VARCHAR},
#{pickTitleEn,jdbcType=VARCHAR}, #{productNature,jdbcType=VARCHAR}, #{chargerSpecifications,jdbcType=VARCHAR},
#{packingPrice,jdbcType=DECIMAL}, #{packingName,jdbcType=VARCHAR}, #{packingSize,jdbcType=VARCHAR},
#{productSize,jdbcType=VARCHAR}, #{packingWeight,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR},
#{pushStatus,jdbcType=TINYINT}, #{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT},
#{pushTime,jdbcType=TIMESTAMP}, #{hasDelete,jdbcType=BIT}, #{developTime,jdbcType=TIMESTAMP},
#{companyId,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseSku">
<!--
......@@ -279,12 +284,6 @@
<if test="categoryName != null">
category_name,
</if>
<if test="warehouseCode != null">
warehouse_code,
</if>
<if test="warehouseName != null">
warehouse_name,
</if>
<if test="unitPrice != null">
unit_price,
</if>
......@@ -456,6 +455,21 @@
<if test="transferDelivery != null">
transfer_delivery,
</if>
<if test="source != null">
source,
</if>
<if test="pushTime != null">
push_time,
</if>
<if test="hasDelete != null">
has_delete,
</if>
<if test="developTime != null">
develop_time,
</if>
<if test="companyId != null">
company_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -473,12 +487,6 @@
<if test="categoryName != null">
#{categoryName,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
#{warehouseName,jdbcType=VARCHAR},
</if>
<if test="unitPrice != null">
#{unitPrice,jdbcType=DECIMAL},
</if>
......@@ -650,6 +658,21 @@
<if test="transferDelivery != null">
#{transferDelivery,jdbcType=INTEGER},
</if>
<if test="source != null">
#{source,jdbcType=TINYINT},
</if>
<if test="pushTime != null">
#{pushTime,jdbcType=TIMESTAMP},
</if>
<if test="hasDelete != null">
#{hasDelete,jdbcType=BIT},
</if>
<if test="developTime != null">
#{developTime,jdbcType=TIMESTAMP},
</if>
<if test="companyId != null">
#{companyId,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultType="java.lang.Long">
......@@ -684,12 +707,6 @@
<if test="record.categoryName != null">
category_name = #{record.categoryName,jdbcType=VARCHAR},
</if>
<if test="record.warehouseCode != null">
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
</if>
<if test="record.warehouseName != null">
warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
</if>
<if test="record.unitPrice != null">
unit_price = #{record.unitPrice,jdbcType=DECIMAL},
</if>
......@@ -861,6 +878,21 @@
<if test="record.transferDelivery != null">
transfer_delivery = #{record.transferDelivery,jdbcType=INTEGER},
</if>
<if test="record.source != null">
source = #{record.source,jdbcType=TINYINT},
</if>
<if test="record.pushTime != null">
push_time = #{record.pushTime,jdbcType=TIMESTAMP},
</if>
<if test="record.hasDelete != null">
has_delete = #{record.hasDelete,jdbcType=BIT},
</if>
<if test="record.developTime != null">
develop_time = #{record.developTime,jdbcType=TIMESTAMP},
</if>
<if test="record.companyId != null">
company_id = #{record.companyId,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -877,8 +909,6 @@
sku_image = #{record.skuImage,jdbcType=VARCHAR},
category_id = #{record.categoryId,jdbcType=INTEGER},
category_name = #{record.categoryName,jdbcType=VARCHAR},
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
unit_price = #{record.unitPrice,jdbcType=DECIMAL},
seller_id = #{record.sellerId,jdbcType=INTEGER},
seller_name = #{record.sellerName,jdbcType=VARCHAR},
......@@ -935,7 +965,12 @@
packing_weight = #{record.packingWeight,jdbcType=DECIMAL},
unit = #{record.unit,jdbcType=VARCHAR},
push_status = #{record.pushStatus,jdbcType=TINYINT},
transfer_delivery = #{record.transferDelivery,jdbcType=INTEGER}
transfer_delivery = #{record.transferDelivery,jdbcType=INTEGER},
source = #{record.source,jdbcType=TINYINT},
push_time = #{record.pushTime,jdbcType=TIMESTAMP},
has_delete = #{record.hasDelete,jdbcType=BIT},
develop_time = #{record.developTime,jdbcType=TIMESTAMP},
company_id = #{record.companyId,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
......@@ -959,12 +994,6 @@
<if test="categoryName != null">
category_name = #{categoryName,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
</if>
<if test="unitPrice != null">
unit_price = #{unitPrice,jdbcType=DECIMAL},
</if>
......@@ -1136,6 +1165,21 @@
<if test="transferDelivery != null">
transfer_delivery = #{transferDelivery,jdbcType=INTEGER},
</if>
<if test="source != null">
source = #{source,jdbcType=TINYINT},
</if>
<if test="pushTime != null">
push_time = #{pushTime,jdbcType=TIMESTAMP},
</if>
<if test="hasDelete != null">
has_delete = #{hasDelete,jdbcType=BIT},
</if>
<if test="developTime != null">
develop_time = #{developTime,jdbcType=TIMESTAMP},
</if>
<if test="companyId != null">
company_id = #{companyId,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -1149,8 +1193,6 @@
sku_image = #{skuImage,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=INTEGER},
category_name = #{categoryName,jdbcType=VARCHAR},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
unit_price = #{unitPrice,jdbcType=DECIMAL},
seller_id = #{sellerId,jdbcType=INTEGER},
seller_name = #{sellerName,jdbcType=VARCHAR},
......@@ -1207,7 +1249,12 @@
packing_weight = #{packingWeight,jdbcType=DECIMAL},
unit = #{unit,jdbcType=VARCHAR},
push_status = #{pushStatus,jdbcType=TINYINT},
transfer_delivery = #{transferDelivery,jdbcType=INTEGER}
transfer_delivery = #{transferDelivery,jdbcType=INTEGER},
source = #{source,jdbcType=TINYINT},
push_time = #{pushTime,jdbcType=TIMESTAMP},
has_delete = #{hasDelete,jdbcType=BIT},
develop_time = #{developTime,jdbcType=TIMESTAMP},
company_id = #{companyId,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseSku">
......@@ -1233,12 +1280,6 @@
<if test="categoryName != null">
category_name,
</if>
<if test="warehouseCode != null">
warehouse_code,
</if>
<if test="warehouseName != null">
warehouse_name,
</if>
<if test="unitPrice != null">
unit_price,
</if>
......@@ -1410,6 +1451,21 @@
<if test="transferDelivery != null">
transfer_delivery,
</if>
<if test="source != null">
source,
</if>
<if test="pushTime != null">
push_time,
</if>
<if test="hasDelete != null">
has_delete,
</if>
<if test="developTime != null">
develop_time,
</if>
<if test="companyId != null">
company_id,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -1428,12 +1484,6 @@
<if test="categoryName != null">
#{categoryName,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
#{warehouseName,jdbcType=VARCHAR},
</if>
<if test="unitPrice != null">
#{unitPrice,jdbcType=DECIMAL},
</if>
......@@ -1605,6 +1655,21 @@
<if test="transferDelivery != null">
#{transferDelivery,jdbcType=INTEGER},
</if>
<if test="source != null">
#{source,jdbcType=TINYINT},
</if>
<if test="pushTime != null">
#{pushTime,jdbcType=TIMESTAMP},
</if>
<if test="hasDelete != null">
#{hasDelete,jdbcType=BIT},
</if>
<if test="developTime != null">
#{developTime,jdbcType=TIMESTAMP},
</if>
<if test="companyId != null">
#{companyId,jdbcType=INTEGER},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
......@@ -1623,12 +1688,6 @@
<if test="categoryName != null">
category_name = #{categoryName,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
</if>
<if test="unitPrice != null">
unit_price = #{unitPrice,jdbcType=DECIMAL},
</if>
......@@ -1800,6 +1859,21 @@
<if test="transferDelivery != null">
transfer_delivery = #{transferDelivery,jdbcType=INTEGER},
</if>
<if test="source != null">
source = #{source,jdbcType=TINYINT},
</if>
<if test="pushTime != null">
push_time = #{pushTime,jdbcType=TIMESTAMP},
</if>
<if test="hasDelete != null">
has_delete = #{hasDelete,jdbcType=BIT},
</if>
<if test="developTime != null">
develop_time = #{developTime,jdbcType=TIMESTAMP},
</if>
<if test="companyId != null">
company_id = #{companyId,jdbcType=INTEGER},
</if>
</trim>
</insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseSku">
......@@ -1809,47 +1883,47 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
insert into dc_base_sku
(id, bailun_sku, sku_image, category_id, category_name, warehouse_code, warehouse_name,
unit_price, seller_id, seller_name, length, width, height, weight, moq, sku_title_cn,
sku_title_en, create_time, update_time, gmt_create, gmt_modified, suppliers_id,
suppliers_name, supplier_delivery, currency, buyer_name, buyer_id, internal_moq,
bussiness_id, bussiness_name, status, type, product_code, bailun_inner_sku, product_inner_code,
skums_id, suppliers_link, bailun_category_id, bailun_category_name, color, specifications,
create_name, update_name, virtual_price, size_image, sales_price, enable, inspection_hours,
bargainer, customs_code, declare_title_en, declare_title_cn, pick_title_cn, pick_title_en,
product_nature, charger_specifications, packing_price, packing_name, packing_size,
product_size, packing_weight, unit, push_status, transfer_delivery)
(id, bailun_sku, sku_image, category_id, category_name, unit_price, seller_id, seller_name,
length, width, height, weight, moq, sku_title_cn, sku_title_en, create_time, update_time,
gmt_create, gmt_modified, suppliers_id, suppliers_name, supplier_delivery, currency,
buyer_name, buyer_id, internal_moq, bussiness_id, bussiness_name, status, type,
product_code, bailun_inner_sku, product_inner_code, skums_id, suppliers_link, bailun_category_id,
bailun_category_name, color, specifications, create_name, update_name, virtual_price,
size_image, sales_price, enable, inspection_hours, bargainer, customs_code, declare_title_en,
declare_title_cn, pick_title_cn, pick_title_en, product_nature, charger_specifications,
packing_price, packing_name, packing_size, product_size, packing_weight, unit,
push_status, transfer_delivery, source, push_time, has_delete, develop_time, company_id
)
values
(#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR},
#{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR},
#{warehouseName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL}, #{sellerId,jdbcType=INTEGER},
#{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL}, #{width,jdbcType=DECIMAL},
#{height,jdbcType=DECIMAL}, #{weight,jdbcType=DECIMAL}, #{moq,jdbcType=INTEGER},
#{skuTitleCn,jdbcType=VARCHAR}, #{skuTitleEn,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{suppliersId,jdbcType=INTEGER}, #{suppliersName,jdbcType=VARCHAR}, #{supplierDelivery,jdbcType=INTEGER},
#{currency,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR}, #{buyerId,jdbcType=INTEGER},
#{internalMoq,jdbcType=INTEGER}, #{bussinessId,jdbcType=INTEGER}, #{bussinessName,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT}, #{type,jdbcType=TINYINT}, #{productCode,jdbcType=VARCHAR},
#{bailunInnerSku,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR}, #{skumsId,jdbcType=INTEGER},
#{suppliersLink,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER}, #{bailunCategoryName,jdbcType=VARCHAR},
#{color,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR}, #{createName,jdbcType=VARCHAR},
#{updateName,jdbcType=VARCHAR}, #{virtualPrice,jdbcType=DECIMAL}, #{sizeImage,jdbcType=VARCHAR},
#{salesPrice,jdbcType=DECIMAL}, #{enable,jdbcType=TINYINT}, #{inspectionHours,jdbcType=DECIMAL},
#{bargainer,jdbcType=VARCHAR}, #{customsCode,jdbcType=VARCHAR}, #{declareTitleEn,jdbcType=VARCHAR},
#{declareTitleCn,jdbcType=VARCHAR}, #{pickTitleCn,jdbcType=VARCHAR}, #{pickTitleEn,jdbcType=VARCHAR},
#{productNature,jdbcType=VARCHAR}, #{chargerSpecifications,jdbcType=VARCHAR}, #{packingPrice,jdbcType=DECIMAL},
#{packingName,jdbcType=VARCHAR}, #{packingSize,jdbcType=VARCHAR}, #{productSize,jdbcType=VARCHAR},
#{packingWeight,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR}, #{pushStatus,jdbcType=TINYINT},
#{transferDelivery,jdbcType=INTEGER})
#{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL},
#{sellerId,jdbcType=INTEGER}, #{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL},
#{width,jdbcType=DECIMAL}, #{height,jdbcType=DECIMAL}, #{weight,jdbcType=DECIMAL},
#{moq,jdbcType=INTEGER}, #{skuTitleCn,jdbcType=VARCHAR}, #{skuTitleEn,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP},
#{gmtModified,jdbcType=TIMESTAMP}, #{suppliersId,jdbcType=INTEGER}, #{suppliersName,jdbcType=VARCHAR},
#{supplierDelivery,jdbcType=INTEGER}, #{currency,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR},
#{buyerId,jdbcType=INTEGER}, #{internalMoq,jdbcType=INTEGER}, #{bussinessId,jdbcType=INTEGER},
#{bussinessName,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{type,jdbcType=TINYINT},
#{productCode,jdbcType=VARCHAR}, #{bailunInnerSku,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR},
#{skumsId,jdbcType=INTEGER}, #{suppliersLink,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER},
#{bailunCategoryName,jdbcType=VARCHAR}, #{color,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR},
#{createName,jdbcType=VARCHAR}, #{updateName,jdbcType=VARCHAR}, #{virtualPrice,jdbcType=DECIMAL},
#{sizeImage,jdbcType=VARCHAR}, #{salesPrice,jdbcType=DECIMAL}, #{enable,jdbcType=TINYINT},
#{inspectionHours,jdbcType=DECIMAL}, #{bargainer,jdbcType=VARCHAR}, #{customsCode,jdbcType=VARCHAR},
#{declareTitleEn,jdbcType=VARCHAR}, #{declareTitleCn,jdbcType=VARCHAR}, #{pickTitleCn,jdbcType=VARCHAR},
#{pickTitleEn,jdbcType=VARCHAR}, #{productNature,jdbcType=VARCHAR}, #{chargerSpecifications,jdbcType=VARCHAR},
#{packingPrice,jdbcType=DECIMAL}, #{packingName,jdbcType=VARCHAR}, #{packingSize,jdbcType=VARCHAR},
#{productSize,jdbcType=VARCHAR}, #{packingWeight,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR},
#{pushStatus,jdbcType=TINYINT}, #{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT},
#{pushTime,jdbcType=TIMESTAMP}, #{hasDelete,jdbcType=BIT}, #{developTime,jdbcType=TIMESTAMP},
#{companyId,jdbcType=INTEGER})
on duplicate key update
id = #{id,jdbcType=INTEGER},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
sku_image = #{skuImage,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=INTEGER},
category_name = #{categoryName,jdbcType=VARCHAR},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
unit_price = #{unitPrice,jdbcType=DECIMAL},
seller_id = #{sellerId,jdbcType=INTEGER},
seller_name = #{sellerName,jdbcType=VARCHAR},
......@@ -1860,10 +1934,10 @@
moq = #{moq,jdbcType=INTEGER},
sku_title_cn = #{skuTitleCn,jdbcType=VARCHAR},
sku_title_en = #{skuTitleEn,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
suppliers_id = #{suppliersId,jdbcType=INTEGER},
suppliers_name = #{suppliersName,jdbcType=VARCHAR},
supplier_delivery = #{supplierDelivery,jdbcType=INTEGER},
......@@ -1906,7 +1980,12 @@
packing_weight = #{packingWeight,jdbcType=DECIMAL},
unit = #{unit,jdbcType=VARCHAR},
push_status = #{pushStatus,jdbcType=TINYINT},
transfer_delivery = #{transferDelivery,jdbcType=INTEGER}
transfer_delivery = #{transferDelivery,jdbcType=INTEGER},
source = #{source,jdbcType=TINYINT},
push_time = #{pushTime,jdbcType=TIMESTAMP},
has_delete = #{hasDelete,jdbcType=BIT},
develop_time = #{developTime,jdbcType=TIMESTAMP},
company_id = #{companyId,jdbcType=INTEGER}
</insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultMap="BaseResultMap">
<!--
......@@ -1925,8 +2004,4 @@
</if>
limit 1
</select>
<select id="getTurnoverSku" resultType="turnoverSkuDTO">
SELECT sku_title_cn as sku_title , supplier_delivery,bailun_category_id , bailun_category_name,moq,transfer_delivery,suppliers_id FROM dc_base_sku WHERE bailun_sku=#{bailunSku};
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment