Commit 0f6eb94a by jianshuqin

增加功能:dc_base_sku增加article_number字段

parent b1f820f7
...@@ -1052,7 +1052,7 @@ public class OrderSyncJob extends PointJob { ...@@ -1052,7 +1052,7 @@ public class OrderSyncJob extends PointJob {
if(pickingVariancesList != null && pickingVariancesList.size() > 0){ if(pickingVariancesList != null && pickingVariancesList.size() > 0){
PickingVariances pickingVariances = pickingVariancesList.stream().filter(l -> pickingOrder.getPickOrderId().equals(l.getPickOrderId()) && l.getBillCost() != null && l.getBillCost().compareTo(BigDecimal.ZERO) != 0).findFirst().orElse(null); PickingVariances pickingVariances = pickingVariancesList.stream().filter(l -> pickingOrder.getPickOrderId().equals(l.getPickOrderId()) && l.getBillCost() != null && l.getBillCost().compareTo(BigDecimal.ZERO) != 0).findFirst().orElse(null);
if(pickingVariances != null){ if(pickingVariances != null){
shipping = pickingVariances.getBillCost(); shipping = pickingVariances.getBillCost().multiply(weightRatio).setScale(5, RoundingMode.HALF_EVEN);
} }
} }
BigDecimal opf = wmsFeeDetailDtos.getOpf() == null ? BigDecimal.ZERO : wmsFeeDetailDtos.getOpf().multiply(weightRatio).setScale(5, RoundingMode.HALF_EVEN); BigDecimal opf = wmsFeeDetailDtos.getOpf() == null ? BigDecimal.ZERO : wmsFeeDetailDtos.getOpf().multiply(weightRatio).setScale(5, RoundingMode.HALF_EVEN);
......
...@@ -443,4 +443,10 @@ public class SkuInfo { ...@@ -443,4 +443,10 @@ public class SkuInfo {
@JSONField(name = "productTags") @JSONField(name = "productTags")
private List<GmtProductTag> tags; private List<GmtProductTag> tags;
/// <summary>
/// 供应商货号
/// </summary>
@JSONField(name = "articleNumber")
public String articleNumber;
} }
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#EVENT_RDB_STORAGE_PASSWORD=123456 #EVENT_RDB_STORAGE_PASSWORD=123456
#ZOOKEEPER_SERVER=127.0.0.1:2181 #ZOOKEEPER_SERVER=127.0.0.1:2181
EVENT_RDB_STORAGE_DRIVER=com.mysql.jdbc.Driver EVENT_RDB_STORAGE_DRIVER=com.mysql.jdbc.Driver
EVENT_RDB_STORAGE_URL=jdbc:mysql://10.0.8.15:3306/bailun_datacenter?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8 EVENT_RDB_STORAGE_URL=jdbc:mysql://10.0.8.113:3306/bailun_datacenter?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&useSSL=false
EVENT_RDB_STORAGE_USERNAME=root EVENT_RDB_STORAGE_USERNAME=root
EVENT_RDB_STORAGE_PASSWORD=#7kfnymAM$Y9-Ntf EVENT_RDB_STORAGE_PASSWORD=#7kfnymAM$Y9-Ntf
ZOOKEEPER_SERVER=172.31.255.120:2181 ZOOKEEPER_SERVER=172.31.255.120:2181
......
...@@ -665,6 +665,15 @@ public class DcBaseSku { ...@@ -665,6 +665,15 @@ public class DcBaseSku {
private String tags; private String tags;
/** /**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_sku.articleNumber
*
* @mbg.generated
*/
private String articleNumber;
/**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_sku * This method corresponds to the database table dc_base_sku
* *
...@@ -749,6 +758,7 @@ public class DcBaseSku { ...@@ -749,6 +758,7 @@ public class DcBaseSku {
sb.append(", productType=").append(productType); sb.append(", productType=").append(productType);
sb.append(", productTypeDesc=").append(productTypeDesc); sb.append(", productTypeDesc=").append(productTypeDesc);
sb.append(", tags=").append(tags); sb.append(", tags=").append(tags);
sb.append(", articleNumber=").append(articleNumber);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
...@@ -843,7 +853,8 @@ public class DcBaseSku { ...@@ -843,7 +853,8 @@ public class DcBaseSku {
&& (this.getBrand() == null ? other.getBrand() == null : this.getBrand().equals(other.getBrand())) && (this.getBrand() == null ? other.getBrand() == null : this.getBrand().equals(other.getBrand()))
&& (this.getProductType() == null ? other.getProductType() == null : this.getProductType().equals(other.getProductType())) && (this.getProductType() == null ? other.getProductType() == null : this.getProductType().equals(other.getProductType()))
&& (this.getProductTypeDesc() == null ? other.getProductTypeDesc() == null : this.getProductTypeDesc().equals(other.getProductTypeDesc())) && (this.getProductTypeDesc() == null ? other.getProductTypeDesc() == null : this.getProductTypeDesc().equals(other.getProductTypeDesc()))
&& (this.getTags() == null ? other.getTags() == null : this.getTags().equals(other.getTags())); && (this.getTags() == null ? other.getTags() == null : this.getTags().equals(other.getTags()))
&& (this.getArticleNumber() == null ? other.getArticleNumber() == null : this.getArticleNumber().equals(other.getArticleNumber()));
} }
/** /**
...@@ -929,6 +940,7 @@ public class DcBaseSku { ...@@ -929,6 +940,7 @@ public class DcBaseSku {
result = prime * result + ((getProductType() == null) ? 0 : getProductType().hashCode()); result = prime * result + ((getProductType() == null) ? 0 : getProductType().hashCode());
result = prime * result + ((getProductTypeDesc() == null) ? 0 : getProductTypeDesc().hashCode()); result = prime * result + ((getProductTypeDesc() == null) ? 0 : getProductTypeDesc().hashCode());
result = prime * result + ((getTags() == null) ? 0 : getTags().hashCode()); result = prime * result + ((getTags() == null) ? 0 : getTags().hashCode());
result = prime * result + ((getArticleNumber() == null) ? 0 : getArticleNumber().hashCode());
return result; return result;
} }
} }
\ No newline at end of file
...@@ -502,6 +502,9 @@ ...@@ -502,6 +502,9 @@
<if test="tags != null"> <if test="tags != null">
tags, tags,
</if> </if>
<if test="articleNumber != null">
article_number,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -723,6 +726,9 @@ ...@@ -723,6 +726,9 @@
<if test="tags != null"> <if test="tags != null">
#{tags,jdbcType=VARCHAR}, #{tags,jdbcType=VARCHAR},
</if> </if>
<if test="articleNumber != null">
#{articleNumber,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample"
...@@ -962,6 +968,9 @@ ...@@ -962,6 +968,9 @@
<if test="record.tags != null"> <if test="record.tags != null">
tags = #{record.tags,jdbcType=VARCHAR}, tags = #{record.tags,jdbcType=VARCHAR},
</if> </if>
<if test="record.articleNumber != null">
article_number = #{record.articleNumber,jdbcType=VARCHAR},
</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"/>
......
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