Commit da01d842 by wutong

自动周转Mapper修改

parent bd3526b1
package com.bailuntec.mapper; package com.bailuntec.mapper;
import com.bailuntec.domain.dto.TurnoverSkuDTO;
import com.bailuntec.domain.entity.DcBaseSku; import com.bailuntec.domain.entity.DcBaseSku;
import com.bailuntec.domain.example.DcBaseSkuExample; import com.bailuntec.domain.example.DcBaseSkuExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -122,6 +121,4 @@ public interface DcBaseSkuMapper { ...@@ -122,6 +121,4 @@ public interface DcBaseSkuMapper {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
int upsertSelective(DcBaseSku record); int upsertSelective(DcBaseSku record);
TurnoverSkuDTO getTurnoverSku(String bailunSku);
} }
\ No newline at end of file
...@@ -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" />
...@@ -70,6 +68,11 @@ ...@@ -70,6 +68,11 @@
<result column="unit" jdbcType="VARCHAR" property="unit" /> <result column="unit" jdbcType="VARCHAR" property="unit" />
<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="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">
<!-- <!--
...@@ -142,16 +145,16 @@ ...@@ -142,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 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">
<!-- <!--
...@@ -213,49 +216,51 @@ ...@@ -213,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) 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}) #{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">
<!-- <!--
...@@ -279,12 +284,6 @@ ...@@ -279,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>
...@@ -456,6 +455,21 @@ ...@@ -456,6 +455,21 @@
<if test="transferDelivery != null"> <if test="transferDelivery != null">
transfer_delivery, transfer_delivery,
</if> </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>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -473,12 +487,6 @@ ...@@ -473,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>
...@@ -650,6 +658,21 @@ ...@@ -650,6 +658,21 @@
<if test="transferDelivery != null"> <if test="transferDelivery != null">
#{transferDelivery,jdbcType=INTEGER}, #{transferDelivery,jdbcType=INTEGER},
</if> </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> </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">
...@@ -684,12 +707,6 @@ ...@@ -684,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>
...@@ -861,6 +878,21 @@ ...@@ -861,6 +878,21 @@
<if test="record.transferDelivery != null"> <if test="record.transferDelivery != null">
transfer_delivery = #{record.transferDelivery,jdbcType=INTEGER}, transfer_delivery = #{record.transferDelivery,jdbcType=INTEGER},
</if> </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> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
...@@ -877,8 +909,6 @@ ...@@ -877,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},
...@@ -935,7 +965,12 @@ ...@@ -935,7 +965,12 @@
packing_weight = #{record.packingWeight,jdbcType=DECIMAL}, packing_weight = #{record.packingWeight,jdbcType=DECIMAL},
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},
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>
...@@ -959,12 +994,6 @@ ...@@ -959,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>
...@@ -1136,6 +1165,21 @@ ...@@ -1136,6 +1165,21 @@
<if test="transferDelivery != null"> <if test="transferDelivery != null">
transfer_delivery = #{transferDelivery,jdbcType=INTEGER}, transfer_delivery = #{transferDelivery,jdbcType=INTEGER},
</if> </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> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -1149,8 +1193,6 @@ ...@@ -1149,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},
...@@ -1207,7 +1249,12 @@ ...@@ -1207,7 +1249,12 @@
packing_weight = #{packingWeight,jdbcType=DECIMAL}, packing_weight = #{packingWeight,jdbcType=DECIMAL},
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},
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">
...@@ -1233,12 +1280,6 @@ ...@@ -1233,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>
...@@ -1410,6 +1451,21 @@ ...@@ -1410,6 +1451,21 @@
<if test="transferDelivery != null"> <if test="transferDelivery != null">
transfer_delivery, transfer_delivery,
</if> </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>
values values
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -1428,12 +1484,6 @@ ...@@ -1428,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>
...@@ -1605,6 +1655,21 @@ ...@@ -1605,6 +1655,21 @@
<if test="transferDelivery != null"> <if test="transferDelivery != null">
#{transferDelivery,jdbcType=INTEGER}, #{transferDelivery,jdbcType=INTEGER},
</if> </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> </trim>
on duplicate key update on duplicate key update
<trim suffixOverrides=","> <trim suffixOverrides=",">
...@@ -1623,12 +1688,6 @@ ...@@ -1623,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>
...@@ -1800,6 +1859,21 @@ ...@@ -1800,6 +1859,21 @@
<if test="transferDelivery != null"> <if test="transferDelivery != null">
transfer_delivery = #{transferDelivery,jdbcType=INTEGER}, transfer_delivery = #{transferDelivery,jdbcType=INTEGER},
</if> </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> </trim>
</insert> </insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseSku"> <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseSku">
...@@ -1809,47 +1883,47 @@ ...@@ -1809,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) 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}) #{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},
...@@ -1860,10 +1934,10 @@ ...@@ -1860,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},
...@@ -1906,7 +1980,12 @@ ...@@ -1906,7 +1980,12 @@
packing_weight = #{packingWeight,jdbcType=DECIMAL}, packing_weight = #{packingWeight,jdbcType=DECIMAL},
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},
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">
<!-- <!--
...@@ -1925,8 +2004,4 @@ ...@@ -1925,8 +2004,4 @@
</if> </if>
limit 1 limit 1
</select> </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> </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