Commit c341ffe4 by wutong

修复订单尾程费计算异常的问题

parent 0f0b4c7f
......@@ -313,7 +313,7 @@ public class OrderSyncJob extends PointJob {
BigDecimal skuCostFbaFeeRMB = dcBaseOmsSku.getCostFbaFee().multiply(dcBaseOmsOrder.getSellerOrderExchangeRate()).setScale(3, RoundingMode.HALF_EVEN);
//百伦处理费
BigDecimal skuCostHandleBailun = bailunSkuStructure.getSkuWeightRatio().multiply(dcBaseOmsOrder.getCostHandleBailun()).setScale(3, RoundingMode.HALF_EVEN);
//百伦LMS物流费-在CostTail(尾程费-真实费用)拿不到之前就用它
//百伦LMS物流费-在CostTail(尾程费-真实费用)拿不到之前就用它, 这是SKU总重量占比的费用
BigDecimal skuCostLogistics = bailunSkuStructure.getSkuWeightRatio().multiply(totalCostLogistics).setScale(3, RoundingMode.HALF_EVEN);
/*
* 将按比例摊分的费用算到单个SKU
......@@ -323,7 +323,7 @@ public class OrderSyncJob extends PointJob {
BigDecimal bailunSkuQuantityShippedDecimal = BigDecimal.valueOf(dcBaseOmsSku.getBailunSkuQuantityShipped());
BigDecimal rmbCost = BigDecimal.ZERO;
if (quantityOrderdDecimal.compareTo(BigDecimal.ZERO) == 1) {
dcBaseOmsSku.setCostLogistics(skuCostLogistics.multiply(bailunSkuQuantityShippedDecimal).divide(quantityOrderdDecimal, 3, RoundingMode.HALF_EVEN));
dcBaseOmsSku.setCostLogistics(bailunSkuQuantityShippedDecimal.compareTo(BigDecimal.ZERO) == 1? skuCostLogistics.divide(bailunSkuQuantityShippedDecimal, 3, RoundingMode.HALF_EVEN) : BigDecimal.ZERO);
dcBaseOmsSku.setAmountTotal(skuAmountTotal.divide(quantityOrderdDecimal, 3, RoundingMode.HALF_EVEN));
dcBaseOmsSku.setAmountProduct(skuAmountProduct.divide(quantityOrderdDecimal, 3, RoundingMode.HALF_EVEN));
dcBaseOmsSku.setAmountAdjustment(skuAmountAdjustment.divide(quantityOrderdDecimal, 3, RoundingMode.HALF_EVEN));
......
......@@ -121,5 +121,4 @@ public interface DcBaseSkuMapper {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsertSelective(DcBaseSku record);
}
\ 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" />
......@@ -45,6 +43,36 @@
<result column="suppliers_link" jdbcType="VARCHAR" property="suppliersLink" />
<result column="bailun_category_id" jdbcType="INTEGER" property="bailunCategoryId" />
<result column="bailun_category_name" jdbcType="VARCHAR" property="bailunCategoryName" />
<result column="color" jdbcType="VARCHAR" property="color" />
<result column="specifications" jdbcType="VARCHAR" property="specifications" />
<result column="create_name" jdbcType="VARCHAR" property="createName" />
<result column="update_name" jdbcType="VARCHAR" property="updateName" />
<result column="virtual_price" jdbcType="DECIMAL" property="virtualPrice" />
<result column="size_image" jdbcType="VARCHAR" property="sizeImage" />
<result column="sales_price" jdbcType="DECIMAL" property="salesPrice" />
<result column="enable" jdbcType="TINYINT" property="enable" />
<result column="inspection_hours" jdbcType="DECIMAL" property="inspectionHours" />
<result column="bargainer" jdbcType="VARCHAR" property="bargainer" />
<result column="customs_code" jdbcType="VARCHAR" property="customsCode" />
<result column="declare_title_en" jdbcType="VARCHAR" property="declareTitleEn" />
<result column="declare_title_cn" jdbcType="VARCHAR" property="declareTitleCn" />
<result column="pick_title_cn" jdbcType="VARCHAR" property="pickTitleCn" />
<result column="pick_title_en" jdbcType="VARCHAR" property="pickTitleEn" />
<result column="product_nature" jdbcType="VARCHAR" property="productNature" />
<result column="charger_specifications" jdbcType="VARCHAR" property="chargerSpecifications" />
<result column="packing_price" jdbcType="DECIMAL" property="packingPrice" />
<result column="packing_name" jdbcType="VARCHAR" property="packingName" />
<result column="packing_size" jdbcType="VARCHAR" property="packingSize" />
<result column="product_size" jdbcType="VARCHAR" property="productSize" />
<result column="packing_weight" jdbcType="DECIMAL" property="packingWeight" />
<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">
<!--
......@@ -117,12 +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
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">
<!--
......@@ -184,33 +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
)
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}
)
#{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">
<!--
......@@ -234,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>
......@@ -336,6 +380,96 @@
<if test="bailunCategoryName != null">
bailun_category_name,
</if>
<if test="color != null">
color,
</if>
<if test="specifications != null">
specifications,
</if>
<if test="createName != null">
create_name,
</if>
<if test="updateName != null">
update_name,
</if>
<if test="virtualPrice != null">
virtual_price,
</if>
<if test="sizeImage != null">
size_image,
</if>
<if test="salesPrice != null">
sales_price,
</if>
<if test="enable != null">
enable,
</if>
<if test="inspectionHours != null">
inspection_hours,
</if>
<if test="bargainer != null">
bargainer,
</if>
<if test="customsCode != null">
customs_code,
</if>
<if test="declareTitleEn != null">
declare_title_en,
</if>
<if test="declareTitleCn != null">
declare_title_cn,
</if>
<if test="pickTitleCn != null">
pick_title_cn,
</if>
<if test="pickTitleEn != null">
pick_title_en,
</if>
<if test="productNature != null">
product_nature,
</if>
<if test="chargerSpecifications != null">
charger_specifications,
</if>
<if test="packingPrice != null">
packing_price,
</if>
<if test="packingName != null">
packing_name,
</if>
<if test="packingSize != null">
packing_size,
</if>
<if test="productSize != null">
product_size,
</if>
<if test="packingWeight != null">
packing_weight,
</if>
<if test="unit != null">
unit,
</if>
<if test="pushStatus != null">
push_status,
</if>
<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">
......@@ -353,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>
......@@ -455,6 +583,96 @@
<if test="bailunCategoryName != null">
#{bailunCategoryName,jdbcType=VARCHAR},
</if>
<if test="color != null">
#{color,jdbcType=VARCHAR},
</if>
<if test="specifications != null">
#{specifications,jdbcType=VARCHAR},
</if>
<if test="createName != null">
#{createName,jdbcType=VARCHAR},
</if>
<if test="updateName != null">
#{updateName,jdbcType=VARCHAR},
</if>
<if test="virtualPrice != null">
#{virtualPrice,jdbcType=DECIMAL},
</if>
<if test="sizeImage != null">
#{sizeImage,jdbcType=VARCHAR},
</if>
<if test="salesPrice != null">
#{salesPrice,jdbcType=DECIMAL},
</if>
<if test="enable != null">
#{enable,jdbcType=TINYINT},
</if>
<if test="inspectionHours != null">
#{inspectionHours,jdbcType=DECIMAL},
</if>
<if test="bargainer != null">
#{bargainer,jdbcType=VARCHAR},
</if>
<if test="customsCode != null">
#{customsCode,jdbcType=VARCHAR},
</if>
<if test="declareTitleEn != null">
#{declareTitleEn,jdbcType=VARCHAR},
</if>
<if test="declareTitleCn != null">
#{declareTitleCn,jdbcType=VARCHAR},
</if>
<if test="pickTitleCn != null">
#{pickTitleCn,jdbcType=VARCHAR},
</if>
<if test="pickTitleEn != null">
#{pickTitleEn,jdbcType=VARCHAR},
</if>
<if test="productNature != null">
#{productNature,jdbcType=VARCHAR},
</if>
<if test="chargerSpecifications != null">
#{chargerSpecifications,jdbcType=VARCHAR},
</if>
<if test="packingPrice != null">
#{packingPrice,jdbcType=DECIMAL},
</if>
<if test="packingName != null">
#{packingName,jdbcType=VARCHAR},
</if>
<if test="packingSize != null">
#{packingSize,jdbcType=VARCHAR},
</if>
<if test="productSize != null">
#{productSize,jdbcType=VARCHAR},
</if>
<if test="packingWeight != null">
#{packingWeight,jdbcType=DECIMAL},
</if>
<if test="unit != null">
#{unit,jdbcType=VARCHAR},
</if>
<if test="pushStatus != null">
#{pushStatus,jdbcType=TINYINT},
</if>
<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">
......@@ -489,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>
......@@ -591,6 +803,96 @@
<if test="record.bailunCategoryName != null">
bailun_category_name = #{record.bailunCategoryName,jdbcType=VARCHAR},
</if>
<if test="record.color != null">
color = #{record.color,jdbcType=VARCHAR},
</if>
<if test="record.specifications != null">
specifications = #{record.specifications,jdbcType=VARCHAR},
</if>
<if test="record.createName != null">
create_name = #{record.createName,jdbcType=VARCHAR},
</if>
<if test="record.updateName != null">
update_name = #{record.updateName,jdbcType=VARCHAR},
</if>
<if test="record.virtualPrice != null">
virtual_price = #{record.virtualPrice,jdbcType=DECIMAL},
</if>
<if test="record.sizeImage != null">
size_image = #{record.sizeImage,jdbcType=VARCHAR},
</if>
<if test="record.salesPrice != null">
sales_price = #{record.salesPrice,jdbcType=DECIMAL},
</if>
<if test="record.enable != null">
enable = #{record.enable,jdbcType=TINYINT},
</if>
<if test="record.inspectionHours != null">
inspection_hours = #{record.inspectionHours,jdbcType=DECIMAL},
</if>
<if test="record.bargainer != null">
bargainer = #{record.bargainer,jdbcType=VARCHAR},
</if>
<if test="record.customsCode != null">
customs_code = #{record.customsCode,jdbcType=VARCHAR},
</if>
<if test="record.declareTitleEn != null">
declare_title_en = #{record.declareTitleEn,jdbcType=VARCHAR},
</if>
<if test="record.declareTitleCn != null">
declare_title_cn = #{record.declareTitleCn,jdbcType=VARCHAR},
</if>
<if test="record.pickTitleCn != null">
pick_title_cn = #{record.pickTitleCn,jdbcType=VARCHAR},
</if>
<if test="record.pickTitleEn != null">
pick_title_en = #{record.pickTitleEn,jdbcType=VARCHAR},
</if>
<if test="record.productNature != null">
product_nature = #{record.productNature,jdbcType=VARCHAR},
</if>
<if test="record.chargerSpecifications != null">
charger_specifications = #{record.chargerSpecifications,jdbcType=VARCHAR},
</if>
<if test="record.packingPrice != null">
packing_price = #{record.packingPrice,jdbcType=DECIMAL},
</if>
<if test="record.packingName != null">
packing_name = #{record.packingName,jdbcType=VARCHAR},
</if>
<if test="record.packingSize != null">
packing_size = #{record.packingSize,jdbcType=VARCHAR},
</if>
<if test="record.productSize != null">
product_size = #{record.productSize,jdbcType=VARCHAR},
</if>
<if test="record.packingWeight != null">
packing_weight = #{record.packingWeight,jdbcType=DECIMAL},
</if>
<if test="record.unit != null">
unit = #{record.unit,jdbcType=VARCHAR},
</if>
<if test="record.pushStatus != null">
push_status = #{record.pushStatus,jdbcType=TINYINT},
</if>
<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" />
......@@ -607,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},
......@@ -640,7 +940,37 @@
skums_id = #{record.skumsId,jdbcType=INTEGER},
suppliers_link = #{record.suppliersLink,jdbcType=VARCHAR},
bailun_category_id = #{record.bailunCategoryId,jdbcType=INTEGER},
bailun_category_name = #{record.bailunCategoryName,jdbcType=VARCHAR}
bailun_category_name = #{record.bailunCategoryName,jdbcType=VARCHAR},
color = #{record.color,jdbcType=VARCHAR},
specifications = #{record.specifications,jdbcType=VARCHAR},
create_name = #{record.createName,jdbcType=VARCHAR},
update_name = #{record.updateName,jdbcType=VARCHAR},
virtual_price = #{record.virtualPrice,jdbcType=DECIMAL},
size_image = #{record.sizeImage,jdbcType=VARCHAR},
sales_price = #{record.salesPrice,jdbcType=DECIMAL},
enable = #{record.enable,jdbcType=TINYINT},
inspection_hours = #{record.inspectionHours,jdbcType=DECIMAL},
bargainer = #{record.bargainer,jdbcType=VARCHAR},
customs_code = #{record.customsCode,jdbcType=VARCHAR},
declare_title_en = #{record.declareTitleEn,jdbcType=VARCHAR},
declare_title_cn = #{record.declareTitleCn,jdbcType=VARCHAR},
pick_title_cn = #{record.pickTitleCn,jdbcType=VARCHAR},
pick_title_en = #{record.pickTitleEn,jdbcType=VARCHAR},
product_nature = #{record.productNature,jdbcType=VARCHAR},
charger_specifications = #{record.chargerSpecifications,jdbcType=VARCHAR},
packing_price = #{record.packingPrice,jdbcType=DECIMAL},
packing_name = #{record.packingName,jdbcType=VARCHAR},
packing_size = #{record.packingSize,jdbcType=VARCHAR},
product_size = #{record.productSize,jdbcType=VARCHAR},
packing_weight = #{record.packingWeight,jdbcType=DECIMAL},
unit = #{record.unit,jdbcType=VARCHAR},
push_status = #{record.pushStatus,jdbcType=TINYINT},
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>
......@@ -664,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>
......@@ -766,6 +1090,96 @@
<if test="bailunCategoryName != null">
bailun_category_name = #{bailunCategoryName,jdbcType=VARCHAR},
</if>
<if test="color != null">
color = #{color,jdbcType=VARCHAR},
</if>
<if test="specifications != null">
specifications = #{specifications,jdbcType=VARCHAR},
</if>
<if test="createName != null">
create_name = #{createName,jdbcType=VARCHAR},
</if>
<if test="updateName != null">
update_name = #{updateName,jdbcType=VARCHAR},
</if>
<if test="virtualPrice != null">
virtual_price = #{virtualPrice,jdbcType=DECIMAL},
</if>
<if test="sizeImage != null">
size_image = #{sizeImage,jdbcType=VARCHAR},
</if>
<if test="salesPrice != null">
sales_price = #{salesPrice,jdbcType=DECIMAL},
</if>
<if test="enable != null">
enable = #{enable,jdbcType=TINYINT},
</if>
<if test="inspectionHours != null">
inspection_hours = #{inspectionHours,jdbcType=DECIMAL},
</if>
<if test="bargainer != null">
bargainer = #{bargainer,jdbcType=VARCHAR},
</if>
<if test="customsCode != null">
customs_code = #{customsCode,jdbcType=VARCHAR},
</if>
<if test="declareTitleEn != null">
declare_title_en = #{declareTitleEn,jdbcType=VARCHAR},
</if>
<if test="declareTitleCn != null">
declare_title_cn = #{declareTitleCn,jdbcType=VARCHAR},
</if>
<if test="pickTitleCn != null">
pick_title_cn = #{pickTitleCn,jdbcType=VARCHAR},
</if>
<if test="pickTitleEn != null">
pick_title_en = #{pickTitleEn,jdbcType=VARCHAR},
</if>
<if test="productNature != null">
product_nature = #{productNature,jdbcType=VARCHAR},
</if>
<if test="chargerSpecifications != null">
charger_specifications = #{chargerSpecifications,jdbcType=VARCHAR},
</if>
<if test="packingPrice != null">
packing_price = #{packingPrice,jdbcType=DECIMAL},
</if>
<if test="packingName != null">
packing_name = #{packingName,jdbcType=VARCHAR},
</if>
<if test="packingSize != null">
packing_size = #{packingSize,jdbcType=VARCHAR},
</if>
<if test="productSize != null">
product_size = #{productSize,jdbcType=VARCHAR},
</if>
<if test="packingWeight != null">
packing_weight = #{packingWeight,jdbcType=DECIMAL},
</if>
<if test="unit != null">
unit = #{unit,jdbcType=VARCHAR},
</if>
<if test="pushStatus != null">
push_status = #{pushStatus,jdbcType=TINYINT},
</if>
<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>
......@@ -779,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},
......@@ -812,7 +1224,37 @@
skums_id = #{skumsId,jdbcType=INTEGER},
suppliers_link = #{suppliersLink,jdbcType=VARCHAR},
bailun_category_id = #{bailunCategoryId,jdbcType=INTEGER},
bailun_category_name = #{bailunCategoryName,jdbcType=VARCHAR}
bailun_category_name = #{bailunCategoryName,jdbcType=VARCHAR},
color = #{color,jdbcType=VARCHAR},
specifications = #{specifications,jdbcType=VARCHAR},
create_name = #{createName,jdbcType=VARCHAR},
update_name = #{updateName,jdbcType=VARCHAR},
virtual_price = #{virtualPrice,jdbcType=DECIMAL},
size_image = #{sizeImage,jdbcType=VARCHAR},
sales_price = #{salesPrice,jdbcType=DECIMAL},
enable = #{enable,jdbcType=TINYINT},
inspection_hours = #{inspectionHours,jdbcType=DECIMAL},
bargainer = #{bargainer,jdbcType=VARCHAR},
customs_code = #{customsCode,jdbcType=VARCHAR},
declare_title_en = #{declareTitleEn,jdbcType=VARCHAR},
declare_title_cn = #{declareTitleCn,jdbcType=VARCHAR},
pick_title_cn = #{pickTitleCn,jdbcType=VARCHAR},
pick_title_en = #{pickTitleEn,jdbcType=VARCHAR},
product_nature = #{productNature,jdbcType=VARCHAR},
charger_specifications = #{chargerSpecifications,jdbcType=VARCHAR},
packing_price = #{packingPrice,jdbcType=DECIMAL},
packing_name = #{packingName,jdbcType=VARCHAR},
packing_size = #{packingSize,jdbcType=VARCHAR},
product_size = #{productSize,jdbcType=VARCHAR},
packing_weight = #{packingWeight,jdbcType=DECIMAL},
unit = #{unit,jdbcType=VARCHAR},
push_status = #{pushStatus,jdbcType=TINYINT},
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">
......@@ -838,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>
......@@ -940,6 +1376,96 @@
<if test="bailunCategoryName != null">
bailun_category_name,
</if>
<if test="color != null">
color,
</if>
<if test="specifications != null">
specifications,
</if>
<if test="createName != null">
create_name,
</if>
<if test="updateName != null">
update_name,
</if>
<if test="virtualPrice != null">
virtual_price,
</if>
<if test="sizeImage != null">
size_image,
</if>
<if test="salesPrice != null">
sales_price,
</if>
<if test="enable != null">
enable,
</if>
<if test="inspectionHours != null">
inspection_hours,
</if>
<if test="bargainer != null">
bargainer,
</if>
<if test="customsCode != null">
customs_code,
</if>
<if test="declareTitleEn != null">
declare_title_en,
</if>
<if test="declareTitleCn != null">
declare_title_cn,
</if>
<if test="pickTitleCn != null">
pick_title_cn,
</if>
<if test="pickTitleEn != null">
pick_title_en,
</if>
<if test="productNature != null">
product_nature,
</if>
<if test="chargerSpecifications != null">
charger_specifications,
</if>
<if test="packingPrice != null">
packing_price,
</if>
<if test="packingName != null">
packing_name,
</if>
<if test="packingSize != null">
packing_size,
</if>
<if test="productSize != null">
product_size,
</if>
<if test="packingWeight != null">
packing_weight,
</if>
<if test="unit != null">
unit,
</if>
<if test="pushStatus != null">
push_status,
</if>
<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=",">
......@@ -958,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>
......@@ -1060,6 +1580,96 @@
<if test="bailunCategoryName != null">
#{bailunCategoryName,jdbcType=VARCHAR},
</if>
<if test="color != null">
#{color,jdbcType=VARCHAR},
</if>
<if test="specifications != null">
#{specifications,jdbcType=VARCHAR},
</if>
<if test="createName != null">
#{createName,jdbcType=VARCHAR},
</if>
<if test="updateName != null">
#{updateName,jdbcType=VARCHAR},
</if>
<if test="virtualPrice != null">
#{virtualPrice,jdbcType=DECIMAL},
</if>
<if test="sizeImage != null">
#{sizeImage,jdbcType=VARCHAR},
</if>
<if test="salesPrice != null">
#{salesPrice,jdbcType=DECIMAL},
</if>
<if test="enable != null">
#{enable,jdbcType=TINYINT},
</if>
<if test="inspectionHours != null">
#{inspectionHours,jdbcType=DECIMAL},
</if>
<if test="bargainer != null">
#{bargainer,jdbcType=VARCHAR},
</if>
<if test="customsCode != null">
#{customsCode,jdbcType=VARCHAR},
</if>
<if test="declareTitleEn != null">
#{declareTitleEn,jdbcType=VARCHAR},
</if>
<if test="declareTitleCn != null">
#{declareTitleCn,jdbcType=VARCHAR},
</if>
<if test="pickTitleCn != null">
#{pickTitleCn,jdbcType=VARCHAR},
</if>
<if test="pickTitleEn != null">
#{pickTitleEn,jdbcType=VARCHAR},
</if>
<if test="productNature != null">
#{productNature,jdbcType=VARCHAR},
</if>
<if test="chargerSpecifications != null">
#{chargerSpecifications,jdbcType=VARCHAR},
</if>
<if test="packingPrice != null">
#{packingPrice,jdbcType=DECIMAL},
</if>
<if test="packingName != null">
#{packingName,jdbcType=VARCHAR},
</if>
<if test="packingSize != null">
#{packingSize,jdbcType=VARCHAR},
</if>
<if test="productSize != null">
#{productSize,jdbcType=VARCHAR},
</if>
<if test="packingWeight != null">
#{packingWeight,jdbcType=DECIMAL},
</if>
<if test="unit != null">
#{unit,jdbcType=VARCHAR},
</if>
<if test="pushStatus != null">
#{pushStatus,jdbcType=TINYINT},
</if>
<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=",">
......@@ -1078,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>
......@@ -1180,6 +1784,96 @@
<if test="bailunCategoryName != null">
bailun_category_name = #{bailunCategoryName,jdbcType=VARCHAR},
</if>
<if test="color != null">
color = #{color,jdbcType=VARCHAR},
</if>
<if test="specifications != null">
specifications = #{specifications,jdbcType=VARCHAR},
</if>
<if test="createName != null">
create_name = #{createName,jdbcType=VARCHAR},
</if>
<if test="updateName != null">
update_name = #{updateName,jdbcType=VARCHAR},
</if>
<if test="virtualPrice != null">
virtual_price = #{virtualPrice,jdbcType=DECIMAL},
</if>
<if test="sizeImage != null">
size_image = #{sizeImage,jdbcType=VARCHAR},
</if>
<if test="salesPrice != null">
sales_price = #{salesPrice,jdbcType=DECIMAL},
</if>
<if test="enable != null">
enable = #{enable,jdbcType=TINYINT},
</if>
<if test="inspectionHours != null">
inspection_hours = #{inspectionHours,jdbcType=DECIMAL},
</if>
<if test="bargainer != null">
bargainer = #{bargainer,jdbcType=VARCHAR},
</if>
<if test="customsCode != null">
customs_code = #{customsCode,jdbcType=VARCHAR},
</if>
<if test="declareTitleEn != null">
declare_title_en = #{declareTitleEn,jdbcType=VARCHAR},
</if>
<if test="declareTitleCn != null">
declare_title_cn = #{declareTitleCn,jdbcType=VARCHAR},
</if>
<if test="pickTitleCn != null">
pick_title_cn = #{pickTitleCn,jdbcType=VARCHAR},
</if>
<if test="pickTitleEn != null">
pick_title_en = #{pickTitleEn,jdbcType=VARCHAR},
</if>
<if test="productNature != null">
product_nature = #{productNature,jdbcType=VARCHAR},
</if>
<if test="chargerSpecifications != null">
charger_specifications = #{chargerSpecifications,jdbcType=VARCHAR},
</if>
<if test="packingPrice != null">
packing_price = #{packingPrice,jdbcType=DECIMAL},
</if>
<if test="packingName != null">
packing_name = #{packingName,jdbcType=VARCHAR},
</if>
<if test="packingSize != null">
packing_size = #{packingSize,jdbcType=VARCHAR},
</if>
<if test="productSize != null">
product_size = #{productSize,jdbcType=VARCHAR},
</if>
<if test="packingWeight != null">
packing_weight = #{packingWeight,jdbcType=DECIMAL},
</if>
<if test="unit != null">
unit = #{unit,jdbcType=VARCHAR},
</if>
<if test="pushStatus != null">
push_status = #{pushStatus,jdbcType=TINYINT},
</if>
<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">
......@@ -1189,35 +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)
(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}
)
#{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},
......@@ -1249,7 +1955,37 @@
skums_id = #{skumsId,jdbcType=INTEGER},
suppliers_link = #{suppliersLink,jdbcType=VARCHAR},
bailun_category_id = #{bailunCategoryId,jdbcType=INTEGER},
bailun_category_name = #{bailunCategoryName,jdbcType=VARCHAR}
bailun_category_name = #{bailunCategoryName,jdbcType=VARCHAR},
color = #{color,jdbcType=VARCHAR},
specifications = #{specifications,jdbcType=VARCHAR},
create_name = #{createName,jdbcType=VARCHAR},
update_name = #{updateName,jdbcType=VARCHAR},
virtual_price = #{virtualPrice,jdbcType=DECIMAL},
size_image = #{sizeImage,jdbcType=VARCHAR},
sales_price = #{salesPrice,jdbcType=DECIMAL},
enable = #{enable,jdbcType=TINYINT},
inspection_hours = #{inspectionHours,jdbcType=DECIMAL},
bargainer = #{bargainer,jdbcType=VARCHAR},
customs_code = #{customsCode,jdbcType=VARCHAR},
declare_title_en = #{declareTitleEn,jdbcType=VARCHAR},
declare_title_cn = #{declareTitleCn,jdbcType=VARCHAR},
pick_title_cn = #{pickTitleCn,jdbcType=VARCHAR},
pick_title_en = #{pickTitleEn,jdbcType=VARCHAR},
product_nature = #{productNature,jdbcType=VARCHAR},
charger_specifications = #{chargerSpecifications,jdbcType=VARCHAR},
packing_price = #{packingPrice,jdbcType=DECIMAL},
packing_name = #{packingName,jdbcType=VARCHAR},
packing_size = #{packingSize,jdbcType=VARCHAR},
product_size = #{productSize,jdbcType=VARCHAR},
packing_weight = #{packingWeight,jdbcType=DECIMAL},
unit = #{unit,jdbcType=VARCHAR},
push_status = #{pushStatus,jdbcType=TINYINT},
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">
<!--
......@@ -1268,5 +2004,4 @@
</if>
limit 1
</select>
</mapper>
\ No newline at end of file
......@@ -73,7 +73,7 @@ public class OmsOrderTest {
LinkedHashMap<String, String> map = new LinkedHashMap<>(4);
map.put("pageIndex", "1");
map.put("pageCount", "100");
map.put("OriginOrderNo", "257164872019");
map.put("OriginOrderNo", "102409853402432");
Request request = new Request.Builder()
.get()
.url(OkHttpUtil.attachHttpGetParams("http://oms.bailuntec.com/apiV2/bailunOrder/getBailunOrders", map))
......
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