Commit d1461497 by yinyong

PAYPAL新增type类型

parent 4c63ea51
...@@ -257,6 +257,16 @@ public class DcBaseFinancePaypal { ...@@ -257,6 +257,16 @@ public class DcBaseFinancePaypal {
private String sourceJson; private String sourceJson;
/** /**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_finance_paypal.type
*
* @mbg.generated
*/
@JSONField(name = "Type")
private String type;
/**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_finance_paypal * This method corresponds to the database table dc_base_finance_paypal
* *
...@@ -295,6 +305,7 @@ public class DcBaseFinancePaypal { ...@@ -295,6 +305,7 @@ public class DcBaseFinancePaypal {
sb.append(", currency=").append(currency); sb.append(", currency=").append(currency);
sb.append(", currencyId=").append(currencyId); sb.append(", currencyId=").append(currencyId);
sb.append(", otherToCnyExchangeRate=").append(otherToCnyExchangeRate); sb.append(", otherToCnyExchangeRate=").append(otherToCnyExchangeRate);
sb.append(", type=").append(type);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
...@@ -343,7 +354,8 @@ public class DcBaseFinancePaypal { ...@@ -343,7 +354,8 @@ public class DcBaseFinancePaypal {
&& (this.getPayerId() == null ? other.getPayerId() == null : this.getPayerId().equals(other.getPayerId())) && (this.getPayerId() == null ? other.getPayerId() == null : this.getPayerId().equals(other.getPayerId()))
&& (this.getCurrency() == null ? other.getCurrency() == null : this.getCurrency().equals(other.getCurrency())) && (this.getCurrency() == null ? other.getCurrency() == null : this.getCurrency().equals(other.getCurrency()))
&& (this.getCurrencyId() == null ? other.getCurrencyId() == null : this.getCurrencyId().equals(other.getCurrencyId())) && (this.getCurrencyId() == null ? other.getCurrencyId() == null : this.getCurrencyId().equals(other.getCurrencyId()))
&& (this.getOtherToCnyExchangeRate() == null ? other.getOtherToCnyExchangeRate() == null : this.getOtherToCnyExchangeRate().equals(other.getOtherToCnyExchangeRate())); && (this.getOtherToCnyExchangeRate() == null ? other.getOtherToCnyExchangeRate() == null : this.getOtherToCnyExchangeRate().equals(other.getOtherToCnyExchangeRate()))
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()));
} }
/** /**
...@@ -383,6 +395,7 @@ public class DcBaseFinancePaypal { ...@@ -383,6 +395,7 @@ public class DcBaseFinancePaypal {
result = prime * result + ((getCurrency() == null) ? 0 : getCurrency().hashCode()); result = prime * result + ((getCurrency() == null) ? 0 : getCurrency().hashCode());
result = prime * result + ((getCurrencyId() == null) ? 0 : getCurrencyId().hashCode()); result = prime * result + ((getCurrencyId() == null) ? 0 : getCurrencyId().hashCode());
result = prime * result + ((getOtherToCnyExchangeRate() == null) ? 0 : getOtherToCnyExchangeRate().hashCode()); result = prime * result + ((getOtherToCnyExchangeRate() == null) ? 0 : getOtherToCnyExchangeRate().hashCode());
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
return result; return result;
} }
} }
\ No newline at end of file
...@@ -2140,6 +2140,76 @@ public class DcBaseFinancePaypalExample { ...@@ -2140,6 +2140,76 @@ public class DcBaseFinancePaypalExample {
addCriterion("other_to_cny_exchange_rate not between", value1, value2, "otherToCnyExchangeRate"); addCriterion("other_to_cny_exchange_rate not between", value1, value2, "otherToCnyExchangeRate");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(String value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(String value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(String value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(String value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(String value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(String value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLike(String value) {
addCriterion("type like", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotLike(String value) {
addCriterion("type not like", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<String> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<String> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(String value1, String value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(String value1, String value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
} }
/** /**
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
<result column="currency" jdbcType="VARCHAR" property="currency" /> <result column="currency" jdbcType="VARCHAR" property="currency" />
<result column="currency_id" jdbcType="INTEGER" property="currencyId" /> <result column="currency_id" jdbcType="INTEGER" property="currencyId" />
<result column="other_to_cny_exchange_rate" jdbcType="DECIMAL" property="otherToCnyExchangeRate" /> <result column="other_to_cny_exchange_rate" jdbcType="DECIMAL" property="otherToCnyExchangeRate" />
<result column="type" jdbcType="VARCHAR" property="type" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
...@@ -109,7 +110,7 @@ ...@@ -109,7 +110,7 @@
payment_date, gross_amount, fee_amount, settle_amount, tax_amount, exchange_rate, payment_date, gross_amount, fee_amount, settle_amount, tax_amount, exchange_rate,
payment_status, pending_reason, reason_code, create_time, saas_company_id, gmt_create_time, payment_status, pending_reason, reason_code, create_time, saas_company_id, gmt_create_time,
gmt_modify_time, business, receiver, receiver_id, payer, payer_id, currency, currency_id, gmt_modify_time, business, receiver, receiver_id, payer, payer_id, currency, currency_id,
other_to_cny_exchange_rate other_to_cny_exchange_rate, type
</sql> </sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseFinancePaypalExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseFinancePaypalExample" resultMap="BaseResultMap">
<!-- <!--
...@@ -178,8 +179,8 @@ ...@@ -178,8 +179,8 @@
create_time, saas_company_id, gmt_create_time, create_time, saas_company_id, gmt_create_time,
gmt_modify_time, business, receiver, gmt_modify_time, business, receiver,
receiver_id, payer, payer_id, receiver_id, payer, payer_id,
currency, currency_id, other_to_cny_exchange_rate currency, currency_id, other_to_cny_exchange_rate,
) type)
values (#{id,jdbcType=INTEGER}, #{transactionId,jdbcType=VARCHAR}, #{parentTransactionId,jdbcType=VARCHAR}, values (#{id,jdbcType=INTEGER}, #{transactionId,jdbcType=VARCHAR}, #{parentTransactionId,jdbcType=VARCHAR},
#{receiptId,jdbcType=VARCHAR}, #{transactionType,jdbcType=VARCHAR}, #{paymentType,jdbcType=VARCHAR}, #{receiptId,jdbcType=VARCHAR}, #{transactionType,jdbcType=VARCHAR}, #{paymentType,jdbcType=VARCHAR},
#{paymentDate,jdbcType=TIMESTAMP}, #{grossAmount,jdbcType=DECIMAL}, #{feeAmount,jdbcType=DECIMAL}, #{paymentDate,jdbcType=TIMESTAMP}, #{grossAmount,jdbcType=DECIMAL}, #{feeAmount,jdbcType=DECIMAL},
...@@ -188,8 +189,8 @@ ...@@ -188,8 +189,8 @@
#{createTime,jdbcType=TIMESTAMP}, #{saasCompanyId,jdbcType=INTEGER}, #{gmtCreateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{saasCompanyId,jdbcType=INTEGER}, #{gmtCreateTime,jdbcType=TIMESTAMP},
#{gmtModifyTime,jdbcType=TIMESTAMP}, #{business,jdbcType=VARCHAR}, #{receiver,jdbcType=VARCHAR}, #{gmtModifyTime,jdbcType=TIMESTAMP}, #{business,jdbcType=VARCHAR}, #{receiver,jdbcType=VARCHAR},
#{receiverId,jdbcType=VARCHAR}, #{payer,jdbcType=VARCHAR}, #{payerId,jdbcType=VARCHAR}, #{receiverId,jdbcType=VARCHAR}, #{payer,jdbcType=VARCHAR}, #{payerId,jdbcType=VARCHAR},
#{currency,jdbcType=VARCHAR}, #{currencyId,jdbcType=INTEGER}, #{otherToCnyExchangeRate,jdbcType=DECIMAL} #{currency,jdbcType=VARCHAR}, #{currencyId,jdbcType=INTEGER}, #{otherToCnyExchangeRate,jdbcType=DECIMAL},
) #{type,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinancePaypal"> <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinancePaypal">
<!-- <!--
...@@ -279,6 +280,9 @@ ...@@ -279,6 +280,9 @@
<if test="otherToCnyExchangeRate != null"> <if test="otherToCnyExchangeRate != null">
other_to_cny_exchange_rate, other_to_cny_exchange_rate,
</if> </if>
<if test="type != null">
type,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -362,6 +366,9 @@ ...@@ -362,6 +366,9 @@
<if test="otherToCnyExchangeRate != null"> <if test="otherToCnyExchangeRate != null">
#{otherToCnyExchangeRate,jdbcType=DECIMAL}, #{otherToCnyExchangeRate,jdbcType=DECIMAL},
</if> </if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseFinancePaypalExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseFinancePaypalExample" resultType="java.lang.Long">
...@@ -462,6 +469,9 @@ ...@@ -462,6 +469,9 @@
<if test="record.otherToCnyExchangeRate != null"> <if test="record.otherToCnyExchangeRate != null">
other_to_cny_exchange_rate = #{record.otherToCnyExchangeRate,jdbcType=DECIMAL}, other_to_cny_exchange_rate = #{record.otherToCnyExchangeRate,jdbcType=DECIMAL},
</if> </if>
<if test="record.type != null">
type = #{record.type,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" />
...@@ -499,7 +509,8 @@ ...@@ -499,7 +509,8 @@
payer_id = #{record.payerId,jdbcType=VARCHAR}, payer_id = #{record.payerId,jdbcType=VARCHAR},
currency = #{record.currency,jdbcType=VARCHAR}, currency = #{record.currency,jdbcType=VARCHAR},
currency_id = #{record.currencyId,jdbcType=INTEGER}, currency_id = #{record.currencyId,jdbcType=INTEGER},
other_to_cny_exchange_rate = #{record.otherToCnyExchangeRate,jdbcType=DECIMAL} other_to_cny_exchange_rate = #{record.otherToCnyExchangeRate,jdbcType=DECIMAL},
type = #{record.type,jdbcType=VARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -589,6 +600,9 @@ ...@@ -589,6 +600,9 @@
<if test="otherToCnyExchangeRate != null"> <if test="otherToCnyExchangeRate != null">
other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL}, other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL},
</if> </if>
<if test="type != null">
type = #{type,jdbcType=VARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -623,7 +637,8 @@ ...@@ -623,7 +637,8 @@
payer_id = #{payerId,jdbcType=VARCHAR}, payer_id = #{payerId,jdbcType=VARCHAR},
currency = #{currency,jdbcType=VARCHAR}, currency = #{currency,jdbcType=VARCHAR},
currency_id = #{currencyId,jdbcType=INTEGER}, currency_id = #{currencyId,jdbcType=INTEGER},
other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL} other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL},
type = #{type,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinancePaypal"> <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinancePaypal">
...@@ -715,6 +730,9 @@ ...@@ -715,6 +730,9 @@
<if test="otherToCnyExchangeRate != null"> <if test="otherToCnyExchangeRate != null">
other_to_cny_exchange_rate, other_to_cny_exchange_rate,
</if> </if>
<if test="type != null">
type,
</if>
</trim> </trim>
values values
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -799,6 +817,9 @@ ...@@ -799,6 +817,9 @@
<if test="otherToCnyExchangeRate != null"> <if test="otherToCnyExchangeRate != null">
#{otherToCnyExchangeRate,jdbcType=DECIMAL}, #{otherToCnyExchangeRate,jdbcType=DECIMAL},
</if> </if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
</trim> </trim>
on duplicate key update on duplicate key update
<trim suffixOverrides=","> <trim suffixOverrides=",">
...@@ -883,6 +904,9 @@ ...@@ -883,6 +904,9 @@
<if test="otherToCnyExchangeRate != null"> <if test="otherToCnyExchangeRate != null">
other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL}, other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL},
</if> </if>
<if test="type != null">
type = #{type,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseFinancePaypal"> <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseFinancePaypal">
...@@ -896,7 +920,7 @@ ...@@ -896,7 +920,7 @@
payment_date, gross_amount, fee_amount, settle_amount, tax_amount, exchange_rate, payment_date, gross_amount, fee_amount, settle_amount, tax_amount, exchange_rate,
payment_status, pending_reason, reason_code, create_time, saas_company_id, gmt_create_time, payment_status, pending_reason, reason_code, create_time, saas_company_id, gmt_create_time,
gmt_modify_time, business, receiver, receiver_id, payer, payer_id, currency, currency_id, gmt_modify_time, business, receiver, receiver_id, payer, payer_id, currency, currency_id,
other_to_cny_exchange_rate) other_to_cny_exchange_rate, type)
values values
(#{id,jdbcType=INTEGER}, #{transactionId,jdbcType=VARCHAR}, #{parentTransactionId,jdbcType=VARCHAR}, (#{id,jdbcType=INTEGER}, #{transactionId,jdbcType=VARCHAR}, #{parentTransactionId,jdbcType=VARCHAR},
#{receiptId,jdbcType=VARCHAR}, #{transactionType,jdbcType=VARCHAR}, #{paymentType,jdbcType=VARCHAR}, #{receiptId,jdbcType=VARCHAR}, #{transactionType,jdbcType=VARCHAR}, #{paymentType,jdbcType=VARCHAR},
...@@ -906,8 +930,8 @@ ...@@ -906,8 +930,8 @@
#{createTime,jdbcType=TIMESTAMP}, #{saasCompanyId,jdbcType=INTEGER}, #{gmtCreateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{saasCompanyId,jdbcType=INTEGER}, #{gmtCreateTime,jdbcType=TIMESTAMP},
#{gmtModifyTime,jdbcType=TIMESTAMP}, #{business,jdbcType=VARCHAR}, #{receiver,jdbcType=VARCHAR}, #{gmtModifyTime,jdbcType=TIMESTAMP}, #{business,jdbcType=VARCHAR}, #{receiver,jdbcType=VARCHAR},
#{receiverId,jdbcType=VARCHAR}, #{payer,jdbcType=VARCHAR}, #{payerId,jdbcType=VARCHAR}, #{receiverId,jdbcType=VARCHAR}, #{payer,jdbcType=VARCHAR}, #{payerId,jdbcType=VARCHAR},
#{currency,jdbcType=VARCHAR}, #{currencyId,jdbcType=INTEGER}, #{otherToCnyExchangeRate,jdbcType=DECIMAL} #{currency,jdbcType=VARCHAR}, #{currencyId,jdbcType=INTEGER}, #{otherToCnyExchangeRate,jdbcType=DECIMAL},
) #{type,jdbcType=VARCHAR})
on duplicate key update on duplicate key update
id = #{id,jdbcType=INTEGER}, id = #{id,jdbcType=INTEGER},
transaction_id = #{transactionId,jdbcType=VARCHAR}, transaction_id = #{transactionId,jdbcType=VARCHAR},
...@@ -935,7 +959,8 @@ ...@@ -935,7 +959,8 @@
payer_id = #{payerId,jdbcType=VARCHAR}, payer_id = #{payerId,jdbcType=VARCHAR},
currency = #{currency,jdbcType=VARCHAR}, currency = #{currency,jdbcType=VARCHAR},
currency_id = #{currencyId,jdbcType=INTEGER}, currency_id = #{currencyId,jdbcType=INTEGER},
other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL} other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL},
type = #{type,jdbcType=VARCHAR}
</insert> </insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseFinancePaypalExample" resultMap="BaseResultMap"> <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseFinancePaypalExample" resultMap="BaseResultMap">
<!-- <!--
......
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