Commit 472c77d2 by wutong

修改计算头程费Mapper

parent 495baf49
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
<result column="sku_image" jdbcType="VARCHAR" property="skuImage" /> <result column="sku_image" jdbcType="VARCHAR" property="skuImage" />
<result column="category_id" jdbcType="INTEGER" property="categoryId" /> <result column="category_id" jdbcType="INTEGER" property="categoryId" />
<result column="category_name" jdbcType="VARCHAR" property="categoryName" /> <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="unit_price" jdbcType="DECIMAL" property="unitPrice" />
<result column="seller_id" jdbcType="INTEGER" property="sellerId" /> <result column="seller_id" jdbcType="INTEGER" property="sellerId" />
<result column="seller_name" jdbcType="VARCHAR" property="sellerName" /> <result column="seller_name" jdbcType="VARCHAR" property="sellerName" />
...@@ -71,6 +69,10 @@ ...@@ -71,6 +69,10 @@
<result column="push_status" jdbcType="TINYINT" property="pushStatus" /> <result column="push_status" jdbcType="TINYINT" property="pushStatus" />
<result column="transfer_delivery" jdbcType="INTEGER" property="transferDelivery" /> <result column="transfer_delivery" jdbcType="INTEGER" property="transferDelivery" />
<result column="source" jdbcType="TINYINT" property="source" /> <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> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
...@@ -143,16 +145,16 @@ ...@@ -143,16 +145,16 @@
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
id, bailun_sku, sku_image, category_id, category_name, warehouse_code, warehouse_name, id, bailun_sku, sku_image, category_id, category_name, unit_price, seller_id, seller_name,
unit_price, seller_id, seller_name, length, width, height, weight, moq, sku_title_cn, length, width, height, weight, moq, sku_title_cn, sku_title_en, create_time, update_time,
sku_title_en, create_time, update_time, gmt_create, gmt_modified, suppliers_id, suppliers_name, gmt_create, gmt_modified, suppliers_id, suppliers_name, supplier_delivery, currency,
supplier_delivery, currency, buyer_name, buyer_id, internal_moq, bussiness_id, bussiness_name, buyer_name, buyer_id, internal_moq, bussiness_id, bussiness_name, status, type, product_code,
status, type, product_code, bailun_inner_sku, product_inner_code, skums_id, suppliers_link, bailun_inner_sku, product_inner_code, skums_id, suppliers_link, bailun_category_id,
bailun_category_id, bailun_category_name, color, specifications, create_name, update_name, bailun_category_name, color, specifications, create_name, update_name, virtual_price,
virtual_price, size_image, sales_price, enable, inspection_hours, bargainer, customs_code, size_image, sales_price, enable, inspection_hours, bargainer, customs_code, declare_title_en,
declare_title_en, declare_title_cn, pick_title_cn, pick_title_en, product_nature, declare_title_cn, pick_title_cn, pick_title_en, product_nature, charger_specifications,
charger_specifications, packing_price, packing_name, packing_size, product_size, packing_price, packing_name, packing_size, product_size, packing_weight, unit, push_status,
packing_weight, unit, push_status, transfer_delivery, source transfer_delivery, source, push_time, has_delete, develop_time, company_id
</sql> </sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultMap="BaseResultMap">
<!-- <!--
...@@ -214,49 +216,51 @@ ...@@ -214,49 +216,51 @@
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
insert into dc_base_sku (id, bailun_sku, sku_image, insert into dc_base_sku (id, bailun_sku, sku_image,
category_id, category_name, warehouse_code, category_id, category_name, unit_price,
warehouse_name, unit_price, seller_id, seller_id, seller_name, length,
seller_name, length, width, width, height, weight,
height, weight, moq, moq, sku_title_cn, sku_title_en,
sku_title_cn, sku_title_en, create_time, create_time, update_time, gmt_create,
update_time, gmt_create, gmt_modified, gmt_modified, suppliers_id, suppliers_name,
suppliers_id, suppliers_name, supplier_delivery, supplier_delivery, currency, buyer_name,
currency, buyer_name, buyer_id, buyer_id, internal_moq, bussiness_id,
internal_moq, bussiness_id, bussiness_name, bussiness_name, status, type,
status, type, product_code, product_code, bailun_inner_sku, product_inner_code,
bailun_inner_sku, product_inner_code, skums_id, skums_id, suppliers_link, bailun_category_id,
suppliers_link, bailun_category_id, bailun_category_name, bailun_category_name, color, specifications,
color, specifications, create_name, create_name, update_name, virtual_price,
update_name, virtual_price, size_image, size_image, sales_price, enable,
sales_price, enable, inspection_hours, inspection_hours, bargainer, customs_code,
bargainer, customs_code, declare_title_en, declare_title_en, declare_title_cn, pick_title_cn,
declare_title_cn, pick_title_cn, pick_title_en, pick_title_en, product_nature, charger_specifications,
product_nature, charger_specifications, packing_price, packing_price, packing_name, packing_size,
packing_name, packing_size, product_size, product_size, packing_weight, unit,
packing_weight, unit, push_status, push_status, transfer_delivery, source,
transfer_delivery, source) push_time, has_delete, develop_time,
company_id)
values (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR}, values (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR},
#{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR}, #{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL},
#{warehouseName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL}, #{sellerId,jdbcType=INTEGER}, #{sellerId,jdbcType=INTEGER}, #{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL},
#{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL}, #{width,jdbcType=DECIMAL}, #{width,jdbcType=DECIMAL}, #{height,jdbcType=DECIMAL}, #{weight,jdbcType=DECIMAL},
#{height,jdbcType=DECIMAL}, #{weight,jdbcType=DECIMAL}, #{moq,jdbcType=INTEGER}, #{moq,jdbcType=INTEGER}, #{skuTitleCn,jdbcType=VARCHAR}, #{skuTitleEn,jdbcType=VARCHAR},
#{skuTitleCn,jdbcType=VARCHAR}, #{skuTitleEn,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{suppliersId,jdbcType=INTEGER}, #{suppliersName,jdbcType=VARCHAR},
#{suppliersId,jdbcType=INTEGER}, #{suppliersName,jdbcType=VARCHAR}, #{supplierDelivery,jdbcType=INTEGER}, #{supplierDelivery,jdbcType=INTEGER}, #{currency,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR},
#{currency,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR}, #{buyerId,jdbcType=INTEGER}, #{buyerId,jdbcType=INTEGER}, #{internalMoq,jdbcType=INTEGER}, #{bussinessId,jdbcType=INTEGER},
#{internalMoq,jdbcType=INTEGER}, #{bussinessId,jdbcType=INTEGER}, #{bussinessName,jdbcType=VARCHAR}, #{bussinessName,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{type,jdbcType=TINYINT},
#{status,jdbcType=TINYINT}, #{type,jdbcType=TINYINT}, #{productCode,jdbcType=VARCHAR}, #{productCode,jdbcType=VARCHAR}, #{bailunInnerSku,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR},
#{bailunInnerSku,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR}, #{skumsId,jdbcType=INTEGER}, #{skumsId,jdbcType=INTEGER}, #{suppliersLink,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER},
#{suppliersLink,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER}, #{bailunCategoryName,jdbcType=VARCHAR}, #{bailunCategoryName,jdbcType=VARCHAR}, #{color,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR},
#{color,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR}, #{createName,jdbcType=VARCHAR}, #{createName,jdbcType=VARCHAR}, #{updateName,jdbcType=VARCHAR}, #{virtualPrice,jdbcType=DECIMAL},
#{updateName,jdbcType=VARCHAR}, #{virtualPrice,jdbcType=DECIMAL}, #{sizeImage,jdbcType=VARCHAR}, #{sizeImage,jdbcType=VARCHAR}, #{salesPrice,jdbcType=DECIMAL}, #{enable,jdbcType=TINYINT},
#{salesPrice,jdbcType=DECIMAL}, #{enable,jdbcType=TINYINT}, #{inspectionHours,jdbcType=DECIMAL}, #{inspectionHours,jdbcType=DECIMAL}, #{bargainer,jdbcType=VARCHAR}, #{customsCode,jdbcType=VARCHAR},
#{bargainer,jdbcType=VARCHAR}, #{customsCode,jdbcType=VARCHAR}, #{declareTitleEn,jdbcType=VARCHAR}, #{declareTitleEn,jdbcType=VARCHAR}, #{declareTitleCn,jdbcType=VARCHAR}, #{pickTitleCn,jdbcType=VARCHAR},
#{declareTitleCn,jdbcType=VARCHAR}, #{pickTitleCn,jdbcType=VARCHAR}, #{pickTitleEn,jdbcType=VARCHAR}, #{pickTitleEn,jdbcType=VARCHAR}, #{productNature,jdbcType=VARCHAR}, #{chargerSpecifications,jdbcType=VARCHAR},
#{productNature,jdbcType=VARCHAR}, #{chargerSpecifications,jdbcType=VARCHAR}, #{packingPrice,jdbcType=DECIMAL}, #{packingPrice,jdbcType=DECIMAL}, #{packingName,jdbcType=VARCHAR}, #{packingSize,jdbcType=VARCHAR},
#{packingName,jdbcType=VARCHAR}, #{packingSize,jdbcType=VARCHAR}, #{productSize,jdbcType=VARCHAR}, #{productSize,jdbcType=VARCHAR}, #{packingWeight,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR},
#{packingWeight,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR}, #{pushStatus,jdbcType=TINYINT}, #{pushStatus,jdbcType=TINYINT}, #{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT},
#{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT}) #{pushTime,jdbcType=TIMESTAMP}, #{hasDelete,jdbcType=BIT}, #{developTime,jdbcType=TIMESTAMP},
#{companyId,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseSku"> <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseSku">
<!-- <!--
...@@ -280,12 +284,6 @@ ...@@ -280,12 +284,6 @@
<if test="categoryName != null"> <if test="categoryName != null">
category_name, category_name,
</if> </if>
<if test="warehouseCode != null">
warehouse_code,
</if>
<if test="warehouseName != null">
warehouse_name,
</if>
<if test="unitPrice != null"> <if test="unitPrice != null">
unit_price, unit_price,
</if> </if>
...@@ -460,6 +458,18 @@ ...@@ -460,6 +458,18 @@
<if test="source != null"> <if test="source != null">
source, source,
</if> </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>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -477,12 +487,6 @@ ...@@ -477,12 +487,6 @@
<if test="categoryName != null"> <if test="categoryName != null">
#{categoryName,jdbcType=VARCHAR}, #{categoryName,jdbcType=VARCHAR},
</if> </if>
<if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
#{warehouseName,jdbcType=VARCHAR},
</if>
<if test="unitPrice != null"> <if test="unitPrice != null">
#{unitPrice,jdbcType=DECIMAL}, #{unitPrice,jdbcType=DECIMAL},
</if> </if>
...@@ -657,6 +661,18 @@ ...@@ -657,6 +661,18 @@
<if test="source != null"> <if test="source != null">
#{source,jdbcType=TINYINT}, #{source,jdbcType=TINYINT},
</if> </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> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultType="java.lang.Long">
...@@ -691,12 +707,6 @@ ...@@ -691,12 +707,6 @@
<if test="record.categoryName != null"> <if test="record.categoryName != null">
category_name = #{record.categoryName,jdbcType=VARCHAR}, category_name = #{record.categoryName,jdbcType=VARCHAR},
</if> </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"> <if test="record.unitPrice != null">
unit_price = #{record.unitPrice,jdbcType=DECIMAL}, unit_price = #{record.unitPrice,jdbcType=DECIMAL},
</if> </if>
...@@ -871,6 +881,18 @@ ...@@ -871,6 +881,18 @@
<if test="record.source != null"> <if test="record.source != null">
source = #{record.source,jdbcType=TINYINT}, source = #{record.source,jdbcType=TINYINT},
</if> </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> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
...@@ -887,8 +909,6 @@ ...@@ -887,8 +909,6 @@
sku_image = #{record.skuImage,jdbcType=VARCHAR}, sku_image = #{record.skuImage,jdbcType=VARCHAR},
category_id = #{record.categoryId,jdbcType=INTEGER}, category_id = #{record.categoryId,jdbcType=INTEGER},
category_name = #{record.categoryName,jdbcType=VARCHAR}, category_name = #{record.categoryName,jdbcType=VARCHAR},
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
unit_price = #{record.unitPrice,jdbcType=DECIMAL}, unit_price = #{record.unitPrice,jdbcType=DECIMAL},
seller_id = #{record.sellerId,jdbcType=INTEGER}, seller_id = #{record.sellerId,jdbcType=INTEGER},
seller_name = #{record.sellerName,jdbcType=VARCHAR}, seller_name = #{record.sellerName,jdbcType=VARCHAR},
...@@ -946,7 +966,11 @@ ...@@ -946,7 +966,11 @@
unit = #{record.unit,jdbcType=VARCHAR}, unit = #{record.unit,jdbcType=VARCHAR},
push_status = #{record.pushStatus,jdbcType=TINYINT}, push_status = #{record.pushStatus,jdbcType=TINYINT},
transfer_delivery = #{record.transferDelivery,jdbcType=INTEGER}, transfer_delivery = #{record.transferDelivery,jdbcType=INTEGER},
source = #{record.source,jdbcType=TINYINT} 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"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -970,12 +994,6 @@ ...@@ -970,12 +994,6 @@
<if test="categoryName != null"> <if test="categoryName != null">
category_name = #{categoryName,jdbcType=VARCHAR}, category_name = #{categoryName,jdbcType=VARCHAR},
</if> </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"> <if test="unitPrice != null">
unit_price = #{unitPrice,jdbcType=DECIMAL}, unit_price = #{unitPrice,jdbcType=DECIMAL},
</if> </if>
...@@ -1150,6 +1168,18 @@ ...@@ -1150,6 +1168,18 @@
<if test="source != null"> <if test="source != null">
source = #{source,jdbcType=TINYINT}, source = #{source,jdbcType=TINYINT},
</if> </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> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -1163,8 +1193,6 @@ ...@@ -1163,8 +1193,6 @@
sku_image = #{skuImage,jdbcType=VARCHAR}, sku_image = #{skuImage,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=INTEGER}, category_id = #{categoryId,jdbcType=INTEGER},
category_name = #{categoryName,jdbcType=VARCHAR}, category_name = #{categoryName,jdbcType=VARCHAR},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
unit_price = #{unitPrice,jdbcType=DECIMAL}, unit_price = #{unitPrice,jdbcType=DECIMAL},
seller_id = #{sellerId,jdbcType=INTEGER}, seller_id = #{sellerId,jdbcType=INTEGER},
seller_name = #{sellerName,jdbcType=VARCHAR}, seller_name = #{sellerName,jdbcType=VARCHAR},
...@@ -1222,7 +1250,11 @@ ...@@ -1222,7 +1250,11 @@
unit = #{unit,jdbcType=VARCHAR}, unit = #{unit,jdbcType=VARCHAR},
push_status = #{pushStatus,jdbcType=TINYINT}, push_status = #{pushStatus,jdbcType=TINYINT},
transfer_delivery = #{transferDelivery,jdbcType=INTEGER}, transfer_delivery = #{transferDelivery,jdbcType=INTEGER},
source = #{source,jdbcType=TINYINT} 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} where id = #{id,jdbcType=INTEGER}
</update> </update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseSku"> <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseSku">
...@@ -1248,12 +1280,6 @@ ...@@ -1248,12 +1280,6 @@
<if test="categoryName != null"> <if test="categoryName != null">
category_name, category_name,
</if> </if>
<if test="warehouseCode != null">
warehouse_code,
</if>
<if test="warehouseName != null">
warehouse_name,
</if>
<if test="unitPrice != null"> <if test="unitPrice != null">
unit_price, unit_price,
</if> </if>
...@@ -1428,6 +1454,18 @@ ...@@ -1428,6 +1454,18 @@
<if test="source != null"> <if test="source != null">
source, source,
</if> </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>
values values
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -1446,12 +1484,6 @@ ...@@ -1446,12 +1484,6 @@
<if test="categoryName != null"> <if test="categoryName != null">
#{categoryName,jdbcType=VARCHAR}, #{categoryName,jdbcType=VARCHAR},
</if> </if>
<if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
#{warehouseName,jdbcType=VARCHAR},
</if>
<if test="unitPrice != null"> <if test="unitPrice != null">
#{unitPrice,jdbcType=DECIMAL}, #{unitPrice,jdbcType=DECIMAL},
</if> </if>
...@@ -1626,6 +1658,18 @@ ...@@ -1626,6 +1658,18 @@
<if test="source != null"> <if test="source != null">
#{source,jdbcType=TINYINT}, #{source,jdbcType=TINYINT},
</if> </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> </trim>
on duplicate key update on duplicate key update
<trim suffixOverrides=","> <trim suffixOverrides=",">
...@@ -1644,12 +1688,6 @@ ...@@ -1644,12 +1688,6 @@
<if test="categoryName != null"> <if test="categoryName != null">
category_name = #{categoryName,jdbcType=VARCHAR}, category_name = #{categoryName,jdbcType=VARCHAR},
</if> </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"> <if test="unitPrice != null">
unit_price = #{unitPrice,jdbcType=DECIMAL}, unit_price = #{unitPrice,jdbcType=DECIMAL},
</if> </if>
...@@ -1824,6 +1862,18 @@ ...@@ -1824,6 +1862,18 @@
<if test="source != null"> <if test="source != null">
source = #{source,jdbcType=TINYINT}, source = #{source,jdbcType=TINYINT},
</if> </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> </trim>
</insert> </insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseSku"> <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseSku">
...@@ -1833,47 +1883,47 @@ ...@@ -1833,47 +1883,47 @@
@project https://github.com/itfsw/mybatis-generator-plugin @project https://github.com/itfsw/mybatis-generator-plugin
--> -->
insert into dc_base_sku insert into dc_base_sku
(id, bailun_sku, sku_image, category_id, category_name, warehouse_code, warehouse_name, (id, bailun_sku, sku_image, category_id, category_name, unit_price, seller_id, seller_name,
unit_price, seller_id, seller_name, length, width, height, weight, moq, sku_title_cn, length, width, height, weight, moq, sku_title_cn, sku_title_en, create_time, update_time,
sku_title_en, create_time, update_time, gmt_create, gmt_modified, suppliers_id, gmt_create, gmt_modified, suppliers_id, suppliers_name, supplier_delivery, currency,
suppliers_name, supplier_delivery, currency, buyer_name, buyer_id, internal_moq, buyer_name, buyer_id, internal_moq, bussiness_id, bussiness_name, status, type,
bussiness_id, bussiness_name, status, type, product_code, bailun_inner_sku, product_inner_code, product_code, bailun_inner_sku, product_inner_code, skums_id, suppliers_link, bailun_category_id,
skums_id, suppliers_link, bailun_category_id, bailun_category_name, color, specifications, bailun_category_name, color, specifications, create_name, update_name, virtual_price,
create_name, update_name, virtual_price, size_image, sales_price, enable, inspection_hours, size_image, sales_price, enable, inspection_hours, bargainer, customs_code, declare_title_en,
bargainer, customs_code, declare_title_en, declare_title_cn, pick_title_cn, pick_title_en, declare_title_cn, pick_title_cn, pick_title_en, product_nature, charger_specifications,
product_nature, charger_specifications, packing_price, packing_name, packing_size, packing_price, packing_name, packing_size, product_size, packing_weight, unit,
product_size, packing_weight, unit, push_status, transfer_delivery, source) push_status, transfer_delivery, source, push_time, has_delete, develop_time, company_id
)
values values
(#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR}, (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR},
#{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR}, #{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL},
#{warehouseName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL}, #{sellerId,jdbcType=INTEGER}, #{sellerId,jdbcType=INTEGER}, #{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL},
#{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL}, #{width,jdbcType=DECIMAL}, #{width,jdbcType=DECIMAL}, #{height,jdbcType=DECIMAL}, #{weight,jdbcType=DECIMAL},
#{height,jdbcType=DECIMAL}, #{weight,jdbcType=DECIMAL}, #{moq,jdbcType=INTEGER}, #{moq,jdbcType=INTEGER}, #{skuTitleCn,jdbcType=VARCHAR}, #{skuTitleEn,jdbcType=VARCHAR},
#{skuTitleCn,jdbcType=VARCHAR}, #{skuTitleEn,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{suppliersId,jdbcType=INTEGER}, #{suppliersName,jdbcType=VARCHAR},
#{suppliersId,jdbcType=INTEGER}, #{suppliersName,jdbcType=VARCHAR}, #{supplierDelivery,jdbcType=INTEGER}, #{supplierDelivery,jdbcType=INTEGER}, #{currency,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR},
#{currency,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR}, #{buyerId,jdbcType=INTEGER}, #{buyerId,jdbcType=INTEGER}, #{internalMoq,jdbcType=INTEGER}, #{bussinessId,jdbcType=INTEGER},
#{internalMoq,jdbcType=INTEGER}, #{bussinessId,jdbcType=INTEGER}, #{bussinessName,jdbcType=VARCHAR}, #{bussinessName,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{type,jdbcType=TINYINT},
#{status,jdbcType=TINYINT}, #{type,jdbcType=TINYINT}, #{productCode,jdbcType=VARCHAR}, #{productCode,jdbcType=VARCHAR}, #{bailunInnerSku,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR},
#{bailunInnerSku,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR}, #{skumsId,jdbcType=INTEGER}, #{skumsId,jdbcType=INTEGER}, #{suppliersLink,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER},
#{suppliersLink,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER}, #{bailunCategoryName,jdbcType=VARCHAR}, #{bailunCategoryName,jdbcType=VARCHAR}, #{color,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR},
#{color,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR}, #{createName,jdbcType=VARCHAR}, #{createName,jdbcType=VARCHAR}, #{updateName,jdbcType=VARCHAR}, #{virtualPrice,jdbcType=DECIMAL},
#{updateName,jdbcType=VARCHAR}, #{virtualPrice,jdbcType=DECIMAL}, #{sizeImage,jdbcType=VARCHAR}, #{sizeImage,jdbcType=VARCHAR}, #{salesPrice,jdbcType=DECIMAL}, #{enable,jdbcType=TINYINT},
#{salesPrice,jdbcType=DECIMAL}, #{enable,jdbcType=TINYINT}, #{inspectionHours,jdbcType=DECIMAL}, #{inspectionHours,jdbcType=DECIMAL}, #{bargainer,jdbcType=VARCHAR}, #{customsCode,jdbcType=VARCHAR},
#{bargainer,jdbcType=VARCHAR}, #{customsCode,jdbcType=VARCHAR}, #{declareTitleEn,jdbcType=VARCHAR}, #{declareTitleEn,jdbcType=VARCHAR}, #{declareTitleCn,jdbcType=VARCHAR}, #{pickTitleCn,jdbcType=VARCHAR},
#{declareTitleCn,jdbcType=VARCHAR}, #{pickTitleCn,jdbcType=VARCHAR}, #{pickTitleEn,jdbcType=VARCHAR}, #{pickTitleEn,jdbcType=VARCHAR}, #{productNature,jdbcType=VARCHAR}, #{chargerSpecifications,jdbcType=VARCHAR},
#{productNature,jdbcType=VARCHAR}, #{chargerSpecifications,jdbcType=VARCHAR}, #{packingPrice,jdbcType=DECIMAL}, #{packingPrice,jdbcType=DECIMAL}, #{packingName,jdbcType=VARCHAR}, #{packingSize,jdbcType=VARCHAR},
#{packingName,jdbcType=VARCHAR}, #{packingSize,jdbcType=VARCHAR}, #{productSize,jdbcType=VARCHAR}, #{productSize,jdbcType=VARCHAR}, #{packingWeight,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR},
#{packingWeight,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR}, #{pushStatus,jdbcType=TINYINT}, #{pushStatus,jdbcType=TINYINT}, #{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT},
#{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT}) #{pushTime,jdbcType=TIMESTAMP}, #{hasDelete,jdbcType=BIT}, #{developTime,jdbcType=TIMESTAMP},
#{companyId,jdbcType=INTEGER})
on duplicate key update on duplicate key update
id = #{id,jdbcType=INTEGER}, id = #{id,jdbcType=INTEGER},
bailun_sku = #{bailunSku,jdbcType=VARCHAR}, bailun_sku = #{bailunSku,jdbcType=VARCHAR},
sku_image = #{skuImage,jdbcType=VARCHAR}, sku_image = #{skuImage,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=INTEGER}, category_id = #{categoryId,jdbcType=INTEGER},
category_name = #{categoryName,jdbcType=VARCHAR}, category_name = #{categoryName,jdbcType=VARCHAR},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
unit_price = #{unitPrice,jdbcType=DECIMAL}, unit_price = #{unitPrice,jdbcType=DECIMAL},
seller_id = #{sellerId,jdbcType=INTEGER}, seller_id = #{sellerId,jdbcType=INTEGER},
seller_name = #{sellerName,jdbcType=VARCHAR}, seller_name = #{sellerName,jdbcType=VARCHAR},
...@@ -1884,10 +1934,10 @@ ...@@ -1884,10 +1934,10 @@
moq = #{moq,jdbcType=INTEGER}, moq = #{moq,jdbcType=INTEGER},
sku_title_cn = #{skuTitleCn,jdbcType=VARCHAR}, sku_title_cn = #{skuTitleCn,jdbcType=VARCHAR},
sku_title_en = #{skuTitleEn,jdbcType=VARCHAR}, sku_title_en = #{skuTitleEn,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}, gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
suppliers_id = #{suppliersId,jdbcType=INTEGER}, suppliers_id = #{suppliersId,jdbcType=INTEGER},
suppliers_name = #{suppliersName,jdbcType=VARCHAR}, suppliers_name = #{suppliersName,jdbcType=VARCHAR},
supplier_delivery = #{supplierDelivery,jdbcType=INTEGER}, supplier_delivery = #{supplierDelivery,jdbcType=INTEGER},
...@@ -1931,7 +1981,11 @@ ...@@ -1931,7 +1981,11 @@
unit = #{unit,jdbcType=VARCHAR}, unit = #{unit,jdbcType=VARCHAR},
push_status = #{pushStatus,jdbcType=TINYINT}, push_status = #{pushStatus,jdbcType=TINYINT},
transfer_delivery = #{transferDelivery,jdbcType=INTEGER}, transfer_delivery = #{transferDelivery,jdbcType=INTEGER},
source = #{source,jdbcType=TINYINT} 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> </insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultMap="BaseResultMap"> <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultMap="BaseResultMap">
<!-- <!--
......
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