Commit 41f4d3aa by huluobin

# 更新

parent bfca6f95
......@@ -143,4 +143,7 @@ public class TransferStreamPOJO {
@JSONField(name="isException")
private Boolean isexception;
@JSONField(name="purchaseCode")
private String purchaseCode;
}
package com.bailuntec.domain.entity;
import lombok.Data;
import java.time.LocalDateTime;
import lombok.Data;
@Data
public class DcBaseTransferPlan {
......@@ -141,8 +140,6 @@ public class DcBaseTransferPlan {
*/
private String sourceWarehouseCode;
private Boolean isexception;
/**
*
* This field was generated by MyBatis Generator.
......@@ -153,6 +150,24 @@ public class DcBaseTransferPlan {
private String transportType;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_transfer_plan.purchase_id
*
* @mbg.generated
*/
private String purchaseId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_transfer_plan.purchase_code
*
* @mbg.generated
*/
private String purchaseCode;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_transfer_plan
*
......@@ -180,6 +195,8 @@ public class DcBaseTransferPlan {
sb.append(", companyId=").append(companyId);
sb.append(", sourceWarehouseCode=").append(sourceWarehouseCode);
sb.append(", transportType=").append(transportType);
sb.append(", purchaseId=").append(purchaseId);
sb.append(", purchaseCode=").append(purchaseCode);
sb.append("]");
return sb.toString();
}
......@@ -217,7 +234,9 @@ public class DcBaseTransferPlan {
&& (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
&& (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
&& (this.getSourceWarehouseCode() == null ? other.getSourceWarehouseCode() == null : this.getSourceWarehouseCode().equals(other.getSourceWarehouseCode()))
&& (this.getTransportType() == null ? other.getTransportType() == null : this.getTransportType().equals(other.getTransportType()));
&& (this.getTransportType() == null ? other.getTransportType() == null : this.getTransportType().equals(other.getTransportType()))
&& (this.getPurchaseId() == null ? other.getPurchaseId() == null : this.getPurchaseId().equals(other.getPurchaseId()))
&& (this.getPurchaseCode() == null ? other.getPurchaseCode() == null : this.getPurchaseCode().equals(other.getPurchaseCode()));
}
/**
......@@ -246,6 +265,8 @@ public class DcBaseTransferPlan {
result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
result = prime * result + ((getSourceWarehouseCode() == null) ? 0 : getSourceWarehouseCode().hashCode());
result = prime * result + ((getTransportType() == null) ? 0 : getTransportType().hashCode());
result = prime * result + ((getPurchaseId() == null) ? 0 : getPurchaseId().hashCode());
result = prime * result + ((getPurchaseCode() == null) ? 0 : getPurchaseCode().hashCode());
return result;
}
}
\ No newline at end of file
......@@ -1409,6 +1409,146 @@ public class DcBaseTransferPlanExample {
addCriterion("transport_type not between", value1, value2, "transportType");
return (Criteria) this;
}
public Criteria andPurchaseIdIsNull() {
addCriterion("purchase_id is null");
return (Criteria) this;
}
public Criteria andPurchaseIdIsNotNull() {
addCriterion("purchase_id is not null");
return (Criteria) this;
}
public Criteria andPurchaseIdEqualTo(String value) {
addCriterion("purchase_id =", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdNotEqualTo(String value) {
addCriterion("purchase_id <>", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdGreaterThan(String value) {
addCriterion("purchase_id >", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdGreaterThanOrEqualTo(String value) {
addCriterion("purchase_id >=", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdLessThan(String value) {
addCriterion("purchase_id <", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdLessThanOrEqualTo(String value) {
addCriterion("purchase_id <=", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdLike(String value) {
addCriterion("purchase_id like", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdNotLike(String value) {
addCriterion("purchase_id not like", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdIn(List<String> values) {
addCriterion("purchase_id in", values, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdNotIn(List<String> values) {
addCriterion("purchase_id not in", values, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdBetween(String value1, String value2) {
addCriterion("purchase_id between", value1, value2, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdNotBetween(String value1, String value2) {
addCriterion("purchase_id not between", value1, value2, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseCodeIsNull() {
addCriterion("purchase_code is null");
return (Criteria) this;
}
public Criteria andPurchaseCodeIsNotNull() {
addCriterion("purchase_code is not null");
return (Criteria) this;
}
public Criteria andPurchaseCodeEqualTo(String value) {
addCriterion("purchase_code =", value, "purchaseCode");
return (Criteria) this;
}
public Criteria andPurchaseCodeNotEqualTo(String value) {
addCriterion("purchase_code <>", value, "purchaseCode");
return (Criteria) this;
}
public Criteria andPurchaseCodeGreaterThan(String value) {
addCriterion("purchase_code >", value, "purchaseCode");
return (Criteria) this;
}
public Criteria andPurchaseCodeGreaterThanOrEqualTo(String value) {
addCriterion("purchase_code >=", value, "purchaseCode");
return (Criteria) this;
}
public Criteria andPurchaseCodeLessThan(String value) {
addCriterion("purchase_code <", value, "purchaseCode");
return (Criteria) this;
}
public Criteria andPurchaseCodeLessThanOrEqualTo(String value) {
addCriterion("purchase_code <=", value, "purchaseCode");
return (Criteria) this;
}
public Criteria andPurchaseCodeLike(String value) {
addCriterion("purchase_code like", value, "purchaseCode");
return (Criteria) this;
}
public Criteria andPurchaseCodeNotLike(String value) {
addCriterion("purchase_code not like", value, "purchaseCode");
return (Criteria) this;
}
public Criteria andPurchaseCodeIn(List<String> values) {
addCriterion("purchase_code in", values, "purchaseCode");
return (Criteria) this;
}
public Criteria andPurchaseCodeNotIn(List<String> values) {
addCriterion("purchase_code not in", values, "purchaseCode");
return (Criteria) this;
}
public Criteria andPurchaseCodeBetween(String value1, String value2) {
addCriterion("purchase_code between", value1, value2, "purchaseCode");
return (Criteria) this;
}
public Criteria andPurchaseCodeNotBetween(String value1, String value2) {
addCriterion("purchase_code not between", value1, value2, "purchaseCode");
return (Criteria) this;
}
}
/**
......@@ -1640,6 +1780,6 @@ public class DcBaseTransferPlanExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
void example(DcBaseTransferPlanExample example);
void example(com.bailuntec.domain.example.DcBaseTransferPlanExample example);
}
}
\ No newline at end of file
......@@ -2,9 +2,8 @@ package com.bailuntec.mapper;
import com.bailuntec.domain.entity.DcBaseTransferPlan;
import com.bailuntec.domain.example.DcBaseTransferPlanExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface DcBaseTransferPlanMapper {
/**
......
......@@ -22,6 +22,8 @@
<result column="company_id" jdbcType="INTEGER" property="companyId" />
<result column="source_warehouse_code" jdbcType="VARCHAR" property="sourceWarehouseCode" />
<result column="transport_type" jdbcType="VARCHAR" property="transportType" />
<result column="purchase_id" jdbcType="VARCHAR" property="purchaseId" />
<result column="purchase_code" jdbcType="VARCHAR" property="purchaseCode" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
......@@ -96,7 +98,7 @@
-->
id, gmt_create, gmt_modified, bailun_sku, transfer_plan_order_id, warehouse_code,
warehouse_name, status, update_time, count, sku_title, transfer_key, deleted, company_id,
source_warehouse_code, transport_type
source_warehouse_code, transport_type, purchase_id, purchase_code
</sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseTransferPlanExample" resultMap="BaseResultMap">
<!--
......@@ -162,13 +164,15 @@
warehouse_name, status, update_time,
count, sku_title, transfer_key,
deleted, company_id, source_warehouse_code,
transport_type)
transport_type, purchase_id, purchase_code
)
values (#{id,jdbcType=INTEGER}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{bailunSku,jdbcType=VARCHAR}, #{transferPlanOrderId,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR},
#{warehouseName,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{count,jdbcType=INTEGER}, #{skuTitle,jdbcType=VARCHAR}, #{transferKey,jdbcType=INTEGER},
#{deleted,jdbcType=BIT}, #{companyId,jdbcType=INTEGER}, #{sourceWarehouseCode,jdbcType=VARCHAR},
#{transportType,jdbcType=VARCHAR})
#{transportType,jdbcType=VARCHAR}, #{purchaseId,jdbcType=VARCHAR}, #{purchaseCode,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseTransferPlan">
<!--
......@@ -225,8 +229,11 @@
<if test="transportType != null">
transport_type,
</if>
<if test="isexception != null">
isexception,
<if test="purchaseId != null">
purchase_id,
</if>
<if test="purchaseCode != null">
purchase_code,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
......@@ -278,8 +285,11 @@
<if test="transportType != null">
#{transportType,jdbcType=VARCHAR},
</if>
<if test="isexception != null">
#{isexception,jdbcType=BIT},
<if test="purchaseId != null">
#{purchaseId,jdbcType=VARCHAR},
</if>
<if test="purchaseCode != null">
#{purchaseCode,jdbcType=VARCHAR},
</if>
</trim>
</insert>
......@@ -348,8 +358,11 @@
<if test="record.transportType != null">
transport_type = #{record.transportType,jdbcType=VARCHAR},
</if>
<if test="record.isexception != null">
isexception = #{record.isexception,jdbcType=BIT},
<if test="record.purchaseId != null">
purchase_id = #{record.purchaseId,jdbcType=VARCHAR},
</if>
<if test="record.purchaseCode != null">
purchase_code = #{record.purchaseCode,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
......@@ -377,7 +390,9 @@
deleted = #{record.deleted,jdbcType=BIT},
company_id = #{record.companyId,jdbcType=INTEGER},
source_warehouse_code = #{record.sourceWarehouseCode,jdbcType=VARCHAR},
transport_type = #{record.transportType,jdbcType=VARCHAR}
transport_type = #{record.transportType,jdbcType=VARCHAR},
purchase_id = #{record.purchaseId,jdbcType=VARCHAR},
purchase_code = #{record.purchaseCode,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
......@@ -434,6 +449,12 @@
<if test="transportType != null">
transport_type = #{transportType,jdbcType=VARCHAR},
</if>
<if test="purchaseId != null">
purchase_id = #{purchaseId,jdbcType=VARCHAR},
</if>
<if test="purchaseCode != null">
purchase_code = #{purchaseCode,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -457,7 +478,9 @@
deleted = #{deleted,jdbcType=BIT},
company_id = #{companyId,jdbcType=INTEGER},
source_warehouse_code = #{sourceWarehouseCode,jdbcType=VARCHAR},
transport_type = #{transportType,jdbcType=VARCHAR}
transport_type = #{transportType,jdbcType=VARCHAR},
purchase_id = #{purchaseId,jdbcType=VARCHAR},
purchase_code = #{purchaseCode,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseTransferPlan">
......@@ -516,6 +539,12 @@
<if test="transportType != null">
transport_type,
</if>
<if test="purchaseId != null">
purchase_id,
</if>
<if test="purchaseCode != null">
purchase_code,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -567,6 +596,12 @@
<if test="transportType != null">
#{transportType,jdbcType=VARCHAR},
</if>
<if test="purchaseId != null">
#{purchaseId,jdbcType=VARCHAR},
</if>
<if test="purchaseCode != null">
#{purchaseCode,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
......@@ -618,6 +653,12 @@
<if test="transportType != null">
transport_type = #{transportType,jdbcType=VARCHAR},
</if>
<if test="purchaseId != null">
purchase_id = #{purchaseId,jdbcType=VARCHAR},
</if>
<if test="purchaseCode != null">
purchase_code = #{purchaseCode,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseTransferPlan">
......@@ -629,14 +670,15 @@
insert into dc_base_transfer_plan
(id, gmt_create, gmt_modified, bailun_sku, transfer_plan_order_id, warehouse_code,
warehouse_name, status, update_time, count, sku_title, transfer_key, deleted, company_id,
source_warehouse_code, transport_type)
source_warehouse_code, transport_type, purchase_id, purchase_code)
values
(#{id,jdbcType=INTEGER}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{bailunSku,jdbcType=VARCHAR}, #{transferPlanOrderId,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR},
#{warehouseName,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{count,jdbcType=INTEGER}, #{skuTitle,jdbcType=VARCHAR}, #{transferKey,jdbcType=INTEGER},
#{deleted,jdbcType=BIT}, #{companyId,jdbcType=INTEGER}, #{sourceWarehouseCode,jdbcType=VARCHAR},
#{transportType,jdbcType=VARCHAR})
#{transportType,jdbcType=VARCHAR}, #{purchaseId,jdbcType=VARCHAR}, #{purchaseCode,jdbcType=VARCHAR}
)
on duplicate key update
id = #{id,jdbcType=INTEGER},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
......@@ -653,7 +695,9 @@
deleted = #{deleted,jdbcType=BIT},
company_id = #{companyId,jdbcType=INTEGER},
source_warehouse_code = #{sourceWarehouseCode,jdbcType=VARCHAR},
transport_type = #{transportType,jdbcType=VARCHAR}
transport_type = #{transportType,jdbcType=VARCHAR},
purchase_id = #{purchaseId,jdbcType=VARCHAR},
purchase_code = #{purchaseCode,jdbcType=VARCHAR}
</insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseTransferPlanExample" resultMap="BaseResultMap">
<!--
......
table-name=dc_auto_turnover
table-name=dc_base_transfer_plan
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