Commit 92e60c8e by jianshuqin

增加功能:同步OMS订单增加Skutype字段

parent 75ee8e27
...@@ -1357,7 +1357,6 @@ public class OrderSyncJob extends PointJob { ...@@ -1357,7 +1357,6 @@ public class OrderSyncJob extends PointJob {
dcBaseOmsSku.setBailunSku(bailunSku.getBailunSku()); dcBaseOmsSku.setBailunSku(bailunSku.getBailunSku());
if (bailunSku.getProSkuItemExtVO() != null) { if (bailunSku.getProSkuItemExtVO() != null) {
dcBaseOmsSku.setBailunGroupSku(bailunSku.getProSkuItemExtVO().getGroupSku()); dcBaseOmsSku.setBailunGroupSku(bailunSku.getProSkuItemExtVO().getGroupSku());
dcBaseOmsSku.setBailunToSkuType(bailunSku.getProSkuItemExtVO().getToSkumsType());
} }
if (dcBaseWarehouse != null) { if (dcBaseWarehouse != null) {
dcBaseOmsSku.setWarehouseCode(dcBaseWarehouse.getWarehouseCode()); dcBaseOmsSku.setWarehouseCode(dcBaseWarehouse.getWarehouseCode());
......
...@@ -449,4 +449,10 @@ public class SkuInfo { ...@@ -449,4 +449,10 @@ public class SkuInfo {
/// </summary> /// </summary>
@JSONField(name = "articleNumber") @JSONField(name = "articleNumber")
public String articleNumber; public String articleNumber;
/// <summary>
/// 商品来源
/// </summary>
@JSONField(name = "toSkumsType")
public Integer bailunToSkuType;
} }
...@@ -56,7 +56,7 @@ public class SkuCoroutineMSSyncJob extends PointJob { ...@@ -56,7 +56,7 @@ public class SkuCoroutineMSSyncJob extends PointJob {
response = client.newCall(request).execute(); response = client.newCall(request).execute();
resultStr = response.body().string(); resultStr = response.body().string();
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException("调用SKUMS系统接口失败", e); throw new RuntimeException("调用SKUMS系统接口dc_base_stock失败", e);
} finally { } finally {
if (response != null) { if (response != null) {
response.close(); response.close();
......
...@@ -378,15 +378,6 @@ public class DcBaseOmsSku { ...@@ -378,15 +378,6 @@ public class DcBaseOmsSku {
/** /**
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_sku.bailun_to_sku_type
*
* @mbg.generated
*/
private Integer bailunToSkuType;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_sku.bailun_sku_title_en * This field corresponds to the database column dc_base_oms_sku.bailun_sku_title_en
* *
* @mbg.generated * @mbg.generated
......
...@@ -674,6 +674,15 @@ public class DcBaseSku { ...@@ -674,6 +674,15 @@ public class DcBaseSku {
private String articleNumber; private String articleNumber;
/** /**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_sku.bailun_to_sku_type
*
* @mbg.generated
*/
private Integer bailunToSkuType;
/**
* 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
* *
...@@ -759,6 +768,7 @@ public class DcBaseSku { ...@@ -759,6 +768,7 @@ public class DcBaseSku {
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(", articleNumber=").append(articleNumber);
sb.append(", bailunToSkuType=").append(bailunToSkuType);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
...@@ -854,7 +864,9 @@ public class DcBaseSku { ...@@ -854,7 +864,9 @@ public class DcBaseSku {
&& (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())); && (this.getArticleNumber() == null ? other.getArticleNumber() == null : this.getArticleNumber().equals(other.getArticleNumber()))
&& (this.getBailunToSkuType() == null ? other.getBailunToSkuType() == null : this.getBailunToSkuType().equals(other.getBailunToSkuType()));
} }
/** /**
...@@ -941,6 +953,7 @@ public class DcBaseSku { ...@@ -941,6 +953,7 @@ public class DcBaseSku {
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()); result = prime * result + ((getArticleNumber() == null) ? 0 : getArticleNumber().hashCode());
result = prime * result + ((getBailunToSkuType() == null) ? 0 : getBailunToSkuType().hashCode());
return result; return result;
} }
} }
\ No newline at end of file
...@@ -524,9 +524,6 @@ ...@@ -524,9 +524,6 @@
<if test="bailunGroupSku != null"> <if test="bailunGroupSku != null">
bailun_group_sku, bailun_group_sku,
</if> </if>
<if test="bailunToSkuType != null">
bailun_to_sku_type,
</if>
<if test="bailunSkuTitleEn != null"> <if test="bailunSkuTitleEn != null">
bailun_sku_title_en, bailun_sku_title_en,
</if> </if>
...@@ -925,9 +922,6 @@ ...@@ -925,9 +922,6 @@
<if test="bailunGroupSku != null"> <if test="bailunGroupSku != null">
#{bailunGroupSku,jdbcType=VARCHAR}, #{bailunGroupSku,jdbcType=VARCHAR},
</if> </if>
<if test="bailunToSkuType != null">
#{bailunToSkuType,jdbcType=INTEGER},
</if>
<if test="bailunSkuTitleEn != null"> <if test="bailunSkuTitleEn != null">
#{bailunSkuTitleEn,jdbcType=VARCHAR}, #{bailunSkuTitleEn,jdbcType=VARCHAR},
</if> </if>
...@@ -1344,9 +1338,6 @@ ...@@ -1344,9 +1338,6 @@
<if test="record.bailunGroupSku != null"> <if test="record.bailunGroupSku != null">
bailun_group_sku = #{record.bailunGroupSku,jdbcType=VARCHAR}, bailun_group_sku = #{record.bailunGroupSku,jdbcType=VARCHAR},
</if> </if>
<if test="record.bailunToSkuType != null">
bailun_to_sku_type = #{record.bailunToSkuType,jdbcType=INTEGER},
</if>
<if test="record.bailunSkuTitleEn != null"> <if test="record.bailunSkuTitleEn != null">
bailun_sku_title_en = #{record.bailunSkuTitleEn,jdbcType=VARCHAR}, bailun_sku_title_en = #{record.bailunSkuTitleEn,jdbcType=VARCHAR},
</if> </if>
......
...@@ -505,6 +505,9 @@ ...@@ -505,6 +505,9 @@
<if test="articleNumber != null"> <if test="articleNumber != null">
article_number, article_number,
</if> </if>
<if test="bailunToSkuType != null">
bailun_to_sku_type,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -729,6 +732,9 @@ ...@@ -729,6 +732,9 @@
<if test="articleNumber != null"> <if test="articleNumber != null">
#{articleNumber,jdbcType=VARCHAR}, #{articleNumber,jdbcType=VARCHAR},
</if> </if>
<if test="bailunToSkuType != null">
#{bailunToSkuType,jdbcType=INTEGER},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample"
...@@ -971,6 +977,9 @@ ...@@ -971,6 +977,9 @@
<if test="record.articleNumber != null"> <if test="record.articleNumber != null">
article_number = #{record.articleNumber,jdbcType=VARCHAR}, article_number = #{record.articleNumber,jdbcType=VARCHAR},
</if> </if>
<if test="record.bailunToSkuType != null">
bailun_to_sku_type = #{record.bailunToSkuType,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"/>
......
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