Commit 6a86ae03 by yinyong

亚马逊费用拆分新增sku数量

parent 9c730b32
......@@ -4,6 +4,7 @@ import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
@Data
public class DcBaseFinanceAmazonItem {
......@@ -100,6 +101,15 @@ public class DcBaseFinanceAmazonItem {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_amazon_item.sku_count
*
* @mbg.generated
*/
private Integer skuCount;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_amazon_item.sku_ratio
*
* @mbg.generated
......@@ -170,6 +180,24 @@ public class DcBaseFinanceAmazonItem {
private BigDecimal exchangeRateUsd;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_amazon_item.bj_create
*
* @mbg.generated
*/
private LocalDateTime bjCreate;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_amazon_item.bj_modified
*
* @mbg.generated
*/
private LocalDateTime bjModified;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_amazon_item
*
......@@ -191,6 +219,7 @@ public class DcBaseFinanceAmazonItem {
sb.append(", site=").append(site);
sb.append(", cost=").append(cost);
sb.append(", skuCost=").append(skuCost);
sb.append(", skuCount=").append(skuCount);
sb.append(", skuRatio=").append(skuRatio);
sb.append(", reportDate=").append(reportDate);
sb.append(", asin=").append(asin);
......@@ -199,6 +228,8 @@ public class DcBaseFinanceAmazonItem {
sb.append(", companyId=").append(companyId);
sb.append(", exchangeRate=").append(exchangeRate);
sb.append(", exchangeRateUsd=").append(exchangeRateUsd);
sb.append(", bjCreate=").append(bjCreate);
sb.append(", bjModified=").append(bjModified);
sb.append("]");
return sb.toString();
}
......@@ -231,6 +262,7 @@ public class DcBaseFinanceAmazonItem {
&& (this.getSite() == null ? other.getSite() == null : this.getSite().equals(other.getSite()))
&& (this.getCost() == null ? other.getCost() == null : this.getCost().equals(other.getCost()))
&& (this.getSkuCost() == null ? other.getSkuCost() == null : this.getSkuCost().equals(other.getSkuCost()))
&& (this.getSkuCount() == null ? other.getSkuCount() == null : this.getSkuCount().equals(other.getSkuCount()))
&& (this.getSkuRatio() == null ? other.getSkuRatio() == null : this.getSkuRatio().equals(other.getSkuRatio()))
&& (this.getReportDate() == null ? other.getReportDate() == null : this.getReportDate().equals(other.getReportDate()))
&& (this.getAsin() == null ? other.getAsin() == null : this.getAsin().equals(other.getAsin()))
......@@ -238,7 +270,9 @@ public class DcBaseFinanceAmazonItem {
&& (this.getAccountId() == null ? other.getAccountId() == null : this.getAccountId().equals(other.getAccountId()))
&& (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
&& (this.getExchangeRate() == null ? other.getExchangeRate() == null : this.getExchangeRate().equals(other.getExchangeRate()))
&& (this.getExchangeRateUsd() == null ? other.getExchangeRateUsd() == null : this.getExchangeRateUsd().equals(other.getExchangeRateUsd()));
&& (this.getExchangeRateUsd() == null ? other.getExchangeRateUsd() == null : this.getExchangeRateUsd().equals(other.getExchangeRateUsd()))
&& (this.getBjCreate() == null ? other.getBjCreate() == null : this.getBjCreate().equals(other.getBjCreate()))
&& (this.getBjModified() == null ? other.getBjModified() == null : this.getBjModified().equals(other.getBjModified()));
}
/**
......@@ -261,6 +295,7 @@ public class DcBaseFinanceAmazonItem {
result = prime * result + ((getSite() == null) ? 0 : getSite().hashCode());
result = prime * result + ((getCost() == null) ? 0 : getCost().hashCode());
result = prime * result + ((getSkuCost() == null) ? 0 : getSkuCost().hashCode());
result = prime * result + ((getSkuCount() == null) ? 0 : getSkuCount().hashCode());
result = prime * result + ((getSkuRatio() == null) ? 0 : getSkuRatio().hashCode());
result = prime * result + ((getReportDate() == null) ? 0 : getReportDate().hashCode());
result = prime * result + ((getAsin() == null) ? 0 : getAsin().hashCode());
......@@ -269,6 +304,8 @@ public class DcBaseFinanceAmazonItem {
result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
result = prime * result + ((getExchangeRate() == null) ? 0 : getExchangeRate().hashCode());
result = prime * result + ((getExchangeRateUsd() == null) ? 0 : getExchangeRateUsd().hashCode());
result = prime * result + ((getBjCreate() == null) ? 0 : getBjCreate().hashCode());
result = prime * result + ((getBjModified() == null) ? 0 : getBjModified().hashCode());
return result;
}
}
\ No newline at end of file
......@@ -2,6 +2,7 @@ package com.bailuntec.domain.example;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
......@@ -1031,6 +1032,66 @@ public class DcBaseFinanceAmazonItemExample {
return (Criteria) this;
}
public Criteria andSkuCountIsNull() {
addCriterion("sku_count is null");
return (Criteria) this;
}
public Criteria andSkuCountIsNotNull() {
addCriterion("sku_count is not null");
return (Criteria) this;
}
public Criteria andSkuCountEqualTo(Integer value) {
addCriterion("sku_count =", value, "skuCount");
return (Criteria) this;
}
public Criteria andSkuCountNotEqualTo(Integer value) {
addCriterion("sku_count <>", value, "skuCount");
return (Criteria) this;
}
public Criteria andSkuCountGreaterThan(Integer value) {
addCriterion("sku_count >", value, "skuCount");
return (Criteria) this;
}
public Criteria andSkuCountGreaterThanOrEqualTo(Integer value) {
addCriterion("sku_count >=", value, "skuCount");
return (Criteria) this;
}
public Criteria andSkuCountLessThan(Integer value) {
addCriterion("sku_count <", value, "skuCount");
return (Criteria) this;
}
public Criteria andSkuCountLessThanOrEqualTo(Integer value) {
addCriterion("sku_count <=", value, "skuCount");
return (Criteria) this;
}
public Criteria andSkuCountIn(List<Integer> values) {
addCriterion("sku_count in", values, "skuCount");
return (Criteria) this;
}
public Criteria andSkuCountNotIn(List<Integer> values) {
addCriterion("sku_count not in", values, "skuCount");
return (Criteria) this;
}
public Criteria andSkuCountBetween(Integer value1, Integer value2) {
addCriterion("sku_count between", value1, value2, "skuCount");
return (Criteria) this;
}
public Criteria andSkuCountNotBetween(Integer value1, Integer value2) {
addCriterion("sku_count not between", value1, value2, "skuCount");
return (Criteria) this;
}
public Criteria andSkuRatioIsNull() {
addCriterion("sku_ratio is null");
return (Criteria) this;
......@@ -1530,6 +1591,126 @@ public class DcBaseFinanceAmazonItemExample {
addCriterion("exchange_rate_usd not between", value1, value2, "exchangeRateUsd");
return (Criteria) this;
}
public Criteria andBjCreateIsNull() {
addCriterion("bj_create is null");
return (Criteria) this;
}
public Criteria andBjCreateIsNotNull() {
addCriterion("bj_create is not null");
return (Criteria) this;
}
public Criteria andBjCreateEqualTo(LocalDateTime value) {
addCriterion("bj_create =", value, "bjCreate");
return (Criteria) this;
}
public Criteria andBjCreateNotEqualTo(LocalDateTime value) {
addCriterion("bj_create <>", value, "bjCreate");
return (Criteria) this;
}
public Criteria andBjCreateGreaterThan(LocalDateTime value) {
addCriterion("bj_create >", value, "bjCreate");
return (Criteria) this;
}
public Criteria andBjCreateGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("bj_create >=", value, "bjCreate");
return (Criteria) this;
}
public Criteria andBjCreateLessThan(LocalDateTime value) {
addCriterion("bj_create <", value, "bjCreate");
return (Criteria) this;
}
public Criteria andBjCreateLessThanOrEqualTo(LocalDateTime value) {
addCriterion("bj_create <=", value, "bjCreate");
return (Criteria) this;
}
public Criteria andBjCreateIn(List<LocalDateTime> values) {
addCriterion("bj_create in", values, "bjCreate");
return (Criteria) this;
}
public Criteria andBjCreateNotIn(List<LocalDateTime> values) {
addCriterion("bj_create not in", values, "bjCreate");
return (Criteria) this;
}
public Criteria andBjCreateBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("bj_create between", value1, value2, "bjCreate");
return (Criteria) this;
}
public Criteria andBjCreateNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("bj_create not between", value1, value2, "bjCreate");
return (Criteria) this;
}
public Criteria andBjModifiedIsNull() {
addCriterion("bj_modified is null");
return (Criteria) this;
}
public Criteria andBjModifiedIsNotNull() {
addCriterion("bj_modified is not null");
return (Criteria) this;
}
public Criteria andBjModifiedEqualTo(LocalDateTime value) {
addCriterion("bj_modified =", value, "bjModified");
return (Criteria) this;
}
public Criteria andBjModifiedNotEqualTo(LocalDateTime value) {
addCriterion("bj_modified <>", value, "bjModified");
return (Criteria) this;
}
public Criteria andBjModifiedGreaterThan(LocalDateTime value) {
addCriterion("bj_modified >", value, "bjModified");
return (Criteria) this;
}
public Criteria andBjModifiedGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("bj_modified >=", value, "bjModified");
return (Criteria) this;
}
public Criteria andBjModifiedLessThan(LocalDateTime value) {
addCriterion("bj_modified <", value, "bjModified");
return (Criteria) this;
}
public Criteria andBjModifiedLessThanOrEqualTo(LocalDateTime value) {
addCriterion("bj_modified <=", value, "bjModified");
return (Criteria) this;
}
public Criteria andBjModifiedIn(List<LocalDateTime> values) {
addCriterion("bj_modified in", values, "bjModified");
return (Criteria) this;
}
public Criteria andBjModifiedNotIn(List<LocalDateTime> values) {
addCriterion("bj_modified not in", values, "bjModified");
return (Criteria) this;
}
public Criteria andBjModifiedBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("bj_modified between", value1, value2, "bjModified");
return (Criteria) this;
}
public Criteria andBjModifiedNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("bj_modified not between", value1, value2, "bjModified");
return (Criteria) this;
}
}
/**
......
......@@ -16,6 +16,7 @@
<result column="site" jdbcType="VARCHAR" property="site" />
<result column="cost" jdbcType="DECIMAL" property="cost" />
<result column="sku_cost" jdbcType="DECIMAL" property="skuCost" />
<result column="sku_count" jdbcType="INTEGER" property="skuCount" />
<result column="sku_ratio" jdbcType="DECIMAL" property="skuRatio" />
<result column="report_date" jdbcType="DATE" property="reportDate" />
<result column="asin" jdbcType="VARCHAR" property="asin" />
......@@ -24,6 +25,8 @@
<result column="company_id" jdbcType="INTEGER" property="companyId" />
<result column="exchange_rate" jdbcType="DECIMAL" property="exchangeRate" />
<result column="exchange_rate_usd" jdbcType="DECIMAL" property="exchangeRateUsd" />
<result column="bj_create" jdbcType="TIMESTAMP" property="bjCreate" />
<result column="bj_modified" jdbcType="TIMESTAMP" property="bjModified" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
......@@ -97,7 +100,8 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, amazon_id, campaign_id, ad_group_id, sku, item_id, bailun_sku, site, cost, sku_cost,
sku_ratio, report_date, asin, currency, account_id, company_id, exchange_rate, exchange_rate_usd
sku_count, sku_ratio, report_date, asin, currency, account_id, company_id, exchange_rate,
exchange_rate_usd, bj_create, bj_modified
</sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceAmazonItemExample" resultMap="BaseResultMap">
<!--
......@@ -161,16 +165,18 @@
insert into dc_base_finance_amazon_item (id, amazon_id, campaign_id,
ad_group_id, sku, item_id,
bailun_sku, site, cost,
sku_cost, sku_ratio, report_date,
asin, currency, account_id,
company_id, exchange_rate, exchange_rate_usd
sku_cost, sku_count, sku_ratio,
report_date, asin, currency,
account_id, company_id, exchange_rate,
exchange_rate_usd, bj_create, bj_modified
)
values (#{id,jdbcType=INTEGER}, #{amazonId,jdbcType=INTEGER}, #{campaignId,jdbcType=VARCHAR},
#{adGroupId,jdbcType=VARCHAR}, #{sku,jdbcType=VARCHAR}, #{itemId,jdbcType=VARCHAR},
#{bailunSku,jdbcType=VARCHAR}, #{site,jdbcType=VARCHAR}, #{cost,jdbcType=DECIMAL},
#{skuCost,jdbcType=DECIMAL}, #{skuRatio,jdbcType=DECIMAL}, #{reportDate,jdbcType=DATE},
#{asin,jdbcType=VARCHAR}, #{currency,jdbcType=VARCHAR}, #{accountId,jdbcType=INTEGER},
#{companyId,jdbcType=INTEGER}, #{exchangeRate,jdbcType=DECIMAL}, #{exchangeRateUsd,jdbcType=DECIMAL}
#{skuCost,jdbcType=DECIMAL}, #{skuCount,jdbcType=INTEGER}, #{skuRatio,jdbcType=DECIMAL},
#{reportDate,jdbcType=DATE}, #{asin,jdbcType=VARCHAR}, #{currency,jdbcType=VARCHAR},
#{accountId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{exchangeRate,jdbcType=DECIMAL},
#{exchangeRateUsd,jdbcType=DECIMAL}, #{bjCreate,jdbcType=TIMESTAMP}, #{bjModified,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazonItem">
......@@ -210,6 +216,9 @@
<if test="skuCost != null">
sku_cost,
</if>
<if test="skuCount != null">
sku_count,
</if>
<if test="skuRatio != null">
sku_ratio,
</if>
......@@ -234,6 +243,12 @@
<if test="exchangeRateUsd != null">
exchange_rate_usd,
</if>
<if test="bjCreate != null">
bj_create,
</if>
<if test="bjModified != null">
bj_modified,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -266,6 +281,9 @@
<if test="skuCost != null">
#{skuCost,jdbcType=DECIMAL},
</if>
<if test="skuCount != null">
#{skuCount,jdbcType=INTEGER},
</if>
<if test="skuRatio != null">
#{skuRatio,jdbcType=DECIMAL},
</if>
......@@ -290,6 +308,12 @@
<if test="exchangeRateUsd != null">
#{exchangeRateUsd,jdbcType=DECIMAL},
</if>
<if test="bjCreate != null">
#{bjCreate,jdbcType=TIMESTAMP},
</if>
<if test="bjModified != null">
#{bjModified,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceAmazonItemExample" resultType="java.lang.Long">
......@@ -339,6 +363,9 @@
<if test="record.skuCost != null">
sku_cost = #{record.skuCost,jdbcType=DECIMAL},
</if>
<if test="record.skuCount != null">
sku_count = #{record.skuCount,jdbcType=INTEGER},
</if>
<if test="record.skuRatio != null">
sku_ratio = #{record.skuRatio,jdbcType=DECIMAL},
</if>
......@@ -363,6 +390,12 @@
<if test="record.exchangeRateUsd != null">
exchange_rate_usd = #{record.exchangeRateUsd,jdbcType=DECIMAL},
</if>
<if test="record.bjCreate != null">
bj_create = #{record.bjCreate,jdbcType=TIMESTAMP},
</if>
<if test="record.bjModified != null">
bj_modified = #{record.bjModified,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -384,6 +417,7 @@
site = #{record.site,jdbcType=VARCHAR},
cost = #{record.cost,jdbcType=DECIMAL},
sku_cost = #{record.skuCost,jdbcType=DECIMAL},
sku_count = #{record.skuCount,jdbcType=INTEGER},
sku_ratio = #{record.skuRatio,jdbcType=DECIMAL},
report_date = #{record.reportDate,jdbcType=DATE},
asin = #{record.asin,jdbcType=VARCHAR},
......@@ -391,7 +425,9 @@
account_id = #{record.accountId,jdbcType=INTEGER},
company_id = #{record.companyId,jdbcType=INTEGER},
exchange_rate = #{record.exchangeRate,jdbcType=DECIMAL},
exchange_rate_usd = #{record.exchangeRateUsd,jdbcType=DECIMAL}
exchange_rate_usd = #{record.exchangeRateUsd,jdbcType=DECIMAL},
bj_create = #{record.bjCreate,jdbcType=TIMESTAMP},
bj_modified = #{record.bjModified,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
......@@ -430,6 +466,9 @@
<if test="skuCost != null">
sku_cost = #{skuCost,jdbcType=DECIMAL},
</if>
<if test="skuCount != null">
sku_count = #{skuCount,jdbcType=INTEGER},
</if>
<if test="skuRatio != null">
sku_ratio = #{skuRatio,jdbcType=DECIMAL},
</if>
......@@ -454,6 +493,12 @@
<if test="exchangeRateUsd != null">
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
</if>
<if test="bjCreate != null">
bj_create = #{bjCreate,jdbcType=TIMESTAMP},
</if>
<if test="bjModified != null">
bj_modified = #{bjModified,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -472,6 +517,7 @@
site = #{site,jdbcType=VARCHAR},
cost = #{cost,jdbcType=DECIMAL},
sku_cost = #{skuCost,jdbcType=DECIMAL},
sku_count = #{skuCount,jdbcType=INTEGER},
sku_ratio = #{skuRatio,jdbcType=DECIMAL},
report_date = #{reportDate,jdbcType=DATE},
asin = #{asin,jdbcType=VARCHAR},
......@@ -479,7 +525,9 @@
account_id = #{accountId,jdbcType=INTEGER},
company_id = #{companyId,jdbcType=INTEGER},
exchange_rate = #{exchangeRate,jdbcType=DECIMAL},
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL}
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
bj_create = #{bjCreate,jdbcType=TIMESTAMP},
bj_modified = #{bjModified,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazonItem">
......@@ -520,6 +568,9 @@
<if test="skuCost != null">
sku_cost,
</if>
<if test="skuCount != null">
sku_count,
</if>
<if test="skuRatio != null">
sku_ratio,
</if>
......@@ -544,6 +595,12 @@
<if test="exchangeRateUsd != null">
exchange_rate_usd,
</if>
<if test="bjCreate != null">
bj_create,
</if>
<if test="bjModified != null">
bj_modified,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -577,6 +634,9 @@
<if test="skuCost != null">
#{skuCost,jdbcType=DECIMAL},
</if>
<if test="skuCount != null">
#{skuCount,jdbcType=INTEGER},
</if>
<if test="skuRatio != null">
#{skuRatio,jdbcType=DECIMAL},
</if>
......@@ -601,6 +661,12 @@
<if test="exchangeRateUsd != null">
#{exchangeRateUsd,jdbcType=DECIMAL},
</if>
<if test="bjCreate != null">
#{bjCreate,jdbcType=TIMESTAMP},
</if>
<if test="bjModified != null">
#{bjModified,jdbcType=TIMESTAMP},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
......@@ -634,6 +700,9 @@
<if test="skuCost != null">
sku_cost = #{skuCost,jdbcType=DECIMAL},
</if>
<if test="skuCount != null">
sku_count = #{skuCount,jdbcType=INTEGER},
</if>
<if test="skuRatio != null">
sku_ratio = #{skuRatio,jdbcType=DECIMAL},
</if>
......@@ -658,6 +727,12 @@
<if test="exchangeRateUsd != null">
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
</if>
<if test="bjCreate != null">
bj_create = #{bjCreate,jdbcType=TIMESTAMP},
</if>
<if test="bjModified != null">
bj_modified = #{bjModified,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazonItem">
......@@ -668,15 +743,16 @@
-->
insert into dc_base_finance_amazon_item
(id, amazon_id, campaign_id, ad_group_id, sku, item_id, bailun_sku, site, cost, sku_cost,
sku_ratio, report_date, asin, currency, account_id, company_id, exchange_rate,
exchange_rate_usd)
sku_count, sku_ratio, report_date, asin, currency, account_id, company_id, exchange_rate,
exchange_rate_usd, bj_create, bj_modified)
values
(#{id,jdbcType=INTEGER}, #{amazonId,jdbcType=INTEGER}, #{campaignId,jdbcType=VARCHAR},
#{adGroupId,jdbcType=VARCHAR}, #{sku,jdbcType=VARCHAR}, #{itemId,jdbcType=VARCHAR},
#{bailunSku,jdbcType=VARCHAR}, #{site,jdbcType=VARCHAR}, #{cost,jdbcType=DECIMAL},
#{skuCost,jdbcType=DECIMAL}, #{skuRatio,jdbcType=DECIMAL}, #{reportDate,jdbcType=DATE},
#{asin,jdbcType=VARCHAR}, #{currency,jdbcType=VARCHAR}, #{accountId,jdbcType=INTEGER},
#{companyId,jdbcType=INTEGER}, #{exchangeRate,jdbcType=DECIMAL}, #{exchangeRateUsd,jdbcType=DECIMAL}
#{skuCost,jdbcType=DECIMAL}, #{skuCount,jdbcType=INTEGER}, #{skuRatio,jdbcType=DECIMAL},
#{reportDate,jdbcType=DATE}, #{asin,jdbcType=VARCHAR}, #{currency,jdbcType=VARCHAR},
#{accountId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{exchangeRate,jdbcType=DECIMAL},
#{exchangeRateUsd,jdbcType=DECIMAL}, #{bjCreate,jdbcType=TIMESTAMP}, #{bjModified,jdbcType=TIMESTAMP}
)
on duplicate key update
id = #{id,jdbcType=INTEGER},
......@@ -689,6 +765,7 @@
site = #{site,jdbcType=VARCHAR},
cost = #{cost,jdbcType=DECIMAL},
sku_cost = #{skuCost,jdbcType=DECIMAL},
sku_count = #{skuCount,jdbcType=INTEGER},
sku_ratio = #{skuRatio,jdbcType=DECIMAL},
report_date = #{reportDate,jdbcType=DATE},
asin = #{asin,jdbcType=VARCHAR},
......@@ -696,7 +773,9 @@
account_id = #{accountId,jdbcType=INTEGER},
company_id = #{companyId,jdbcType=INTEGER},
exchange_rate = #{exchangeRate,jdbcType=DECIMAL},
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL}
exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
bj_create = #{bjCreate,jdbcType=TIMESTAMP},
bj_modified = #{bjModified,jdbcType=TIMESTAMP}
</insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceAmazonItemExample" resultMap="BaseResultMap">
<!--
......
......@@ -70,6 +70,7 @@ public class CalculateAmazonItemJob extends PointJob {
dcBaseFinanceAmazonItem.setItemId(dcBaseSkuMappingItemDto.getItemId());
dcBaseFinanceAmazonItem.setReportDate(dcBaseFinanceAmazonItemDto.getReportDate());
dcBaseFinanceAmazonItem.setSkuCost(dcBaseFinanceAmazonItemDto.getCost().multiply(unitPriceRadio));
dcBaseFinanceAmazonItem.setSkuCount(dcBaseSkuMappingItemDto.getCount());
dcBaseFinanceAmazonItem.setSite(dcBaseFinanceAmazonItemDto.getSiteEn());
if(dcBaseFinanceAmazonItem.getBailunSku() == null) {
dcBaseFinanceAmazonItem.setBailunSku("无");
......
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