mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-11 18:59:51 +08:00
清分账单加字段 交易日期
This commit is contained in:
@@ -24,6 +24,11 @@ public class ClearingBillInfo {
|
|||||||
*/
|
*/
|
||||||
private String billStatus;
|
private String billStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 账单交易日期
|
||||||
|
*/
|
||||||
|
private String tradeDate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 清分账单编号
|
* 清分账单编号
|
||||||
*/
|
*/
|
||||||
@@ -40,7 +45,7 @@ public class ClearingBillInfo {
|
|||||||
private String merchantId;
|
private String merchantId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 订单来源(1-万车充平台)
|
* 订单来源(1-有电充平台)
|
||||||
*/
|
*/
|
||||||
private String orderSource;
|
private String orderSource;
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import java.util.List;
|
|||||||
public interface ClearingBillInfoMapper {
|
public interface ClearingBillInfoMapper {
|
||||||
/**
|
/**
|
||||||
* delete by primary key
|
* delete by primary key
|
||||||
|
*
|
||||||
* @param id primaryKey
|
* @param id primaryKey
|
||||||
* @return deleteCount
|
* @return deleteCount
|
||||||
*/
|
*/
|
||||||
@@ -15,6 +16,7 @@ public interface ClearingBillInfoMapper {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* insert record to table
|
* insert record to table
|
||||||
|
*
|
||||||
* @param record the record
|
* @param record the record
|
||||||
* @return insert count
|
* @return insert count
|
||||||
*/
|
*/
|
||||||
@@ -22,6 +24,7 @@ public interface ClearingBillInfoMapper {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* insert record to table selective
|
* insert record to table selective
|
||||||
|
*
|
||||||
* @param record the record
|
* @param record the record
|
||||||
* @return insert count
|
* @return insert count
|
||||||
*/
|
*/
|
||||||
@@ -29,6 +32,7 @@ public interface ClearingBillInfoMapper {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* select by primary key
|
* select by primary key
|
||||||
|
*
|
||||||
* @param id primary key
|
* @param id primary key
|
||||||
* @return object by primary key
|
* @return object by primary key
|
||||||
*/
|
*/
|
||||||
@@ -36,6 +40,7 @@ public interface ClearingBillInfoMapper {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* update record selective
|
* update record selective
|
||||||
|
*
|
||||||
* @param record the updated record
|
* @param record the updated record
|
||||||
* @return update count
|
* @return update count
|
||||||
*/
|
*/
|
||||||
@@ -43,6 +48,7 @@ public interface ClearingBillInfoMapper {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* update record
|
* update record
|
||||||
|
*
|
||||||
* @param record the updated record
|
* @param record the updated record
|
||||||
* @return update count
|
* @return update count
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
<!--@Table clearing_bill_info-->
|
<!--@Table clearing_bill_info-->
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="bill_status" jdbcType="VARCHAR" property="billStatus" />
|
<result column="bill_status" jdbcType="VARCHAR" property="billStatus" />
|
||||||
|
<result column="trade_date" jdbcType="VARCHAR" property="tradeDate" />
|
||||||
<result column="clearing_bill_code" jdbcType="VARCHAR" property="clearingBillCode" />
|
<result column="clearing_bill_code" jdbcType="VARCHAR" property="clearingBillCode" />
|
||||||
<result column="clearing_time" jdbcType="TIMESTAMP" property="clearingTime" />
|
<result column="clearing_time" jdbcType="TIMESTAMP" property="clearingTime" />
|
||||||
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
|
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
|
||||||
@@ -24,8 +25,8 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
id, bill_status, clearing_bill_code, clearing_time, merchant_id, order_source, receivable_amount,
|
id, bill_status, trade_date, clearing_bill_code, clearing_time, merchant_id, order_source,
|
||||||
should_clearing_amount, actual_clearing_amount, fee_amount, withdrawable_amount,
|
receivable_amount, should_clearing_amount, actual_clearing_amount, fee_amount, withdrawable_amount,
|
||||||
withdraw_code, create_by, create_time, update_by, update_time, del_flag
|
withdraw_code, create_by, create_time, update_by, update_time, del_flag
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||||
@@ -42,18 +43,20 @@
|
|||||||
</delete>
|
</delete>
|
||||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.ClearingBillInfo" useGeneratedKeys="true">
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.ClearingBillInfo" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
insert into clearing_bill_info (bill_status, clearing_bill_code, clearing_time,
|
insert into clearing_bill_info (bill_status, trade_date, clearing_bill_code,
|
||||||
merchant_id, order_source, receivable_amount,
|
clearing_time, merchant_id, order_source,
|
||||||
should_clearing_amount, actual_clearing_amount,
|
receivable_amount, should_clearing_amount,
|
||||||
fee_amount, withdrawable_amount, withdraw_code,
|
actual_clearing_amount, fee_amount, withdrawable_amount,
|
||||||
create_by, create_time, update_by,
|
withdraw_code, create_by, create_time,
|
||||||
update_time, del_flag)
|
update_by, update_time, del_flag
|
||||||
values (#{billStatus,jdbcType=VARCHAR}, #{clearingBillCode,jdbcType=VARCHAR}, #{clearingTime,jdbcType=TIMESTAMP},
|
)
|
||||||
#{merchantId,jdbcType=VARCHAR}, #{orderSource,jdbcType=VARCHAR}, #{receivableAmount,jdbcType=DECIMAL},
|
values (#{billStatus,jdbcType=VARCHAR}, #{tradeDate,jdbcType=VARCHAR}, #{clearingBillCode,jdbcType=VARCHAR},
|
||||||
#{shouldClearingAmount,jdbcType=DECIMAL}, #{actualClearingAmount,jdbcType=DECIMAL},
|
#{clearingTime,jdbcType=TIMESTAMP}, #{merchantId,jdbcType=VARCHAR}, #{orderSource,jdbcType=VARCHAR},
|
||||||
#{feeAmount,jdbcType=DECIMAL}, #{withdrawableAmount,jdbcType=DECIMAL}, #{withdrawCode,jdbcType=VARCHAR},
|
#{receivableAmount,jdbcType=DECIMAL}, #{shouldClearingAmount,jdbcType=DECIMAL},
|
||||||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
|
#{actualClearingAmount,jdbcType=DECIMAL}, #{feeAmount,jdbcType=DECIMAL}, #{withdrawableAmount,jdbcType=DECIMAL},
|
||||||
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=VARCHAR})
|
#{withdrawCode,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
||||||
|
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=VARCHAR}
|
||||||
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.ClearingBillInfo" useGeneratedKeys="true">
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.ClearingBillInfo" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
@@ -62,6 +65,9 @@
|
|||||||
<if test="billStatus != null">
|
<if test="billStatus != null">
|
||||||
bill_status,
|
bill_status,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tradeDate != null">
|
||||||
|
trade_date,
|
||||||
|
</if>
|
||||||
<if test="clearingBillCode != null">
|
<if test="clearingBillCode != null">
|
||||||
clearing_bill_code,
|
clearing_bill_code,
|
||||||
</if>
|
</if>
|
||||||
@@ -112,6 +118,9 @@
|
|||||||
<if test="billStatus != null">
|
<if test="billStatus != null">
|
||||||
#{billStatus,jdbcType=VARCHAR},
|
#{billStatus,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tradeDate != null">
|
||||||
|
#{tradeDate,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="clearingBillCode != null">
|
<if test="clearingBillCode != null">
|
||||||
#{clearingBillCode,jdbcType=VARCHAR},
|
#{clearingBillCode,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -166,6 +175,9 @@
|
|||||||
<if test="billStatus != null">
|
<if test="billStatus != null">
|
||||||
bill_status = #{billStatus,jdbcType=VARCHAR},
|
bill_status = #{billStatus,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="tradeDate != null">
|
||||||
|
trade_date = #{tradeDate,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="clearingBillCode != null">
|
<if test="clearingBillCode != null">
|
||||||
clearing_bill_code = #{clearingBillCode,jdbcType=VARCHAR},
|
clearing_bill_code = #{clearingBillCode,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -218,6 +230,7 @@
|
|||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
update clearing_bill_info
|
update clearing_bill_info
|
||||||
set bill_status = #{billStatus,jdbcType=VARCHAR},
|
set bill_status = #{billStatus,jdbcType=VARCHAR},
|
||||||
|
trade_date = #{tradeDate,jdbcType=VARCHAR},
|
||||||
clearing_bill_code = #{clearingBillCode,jdbcType=VARCHAR},
|
clearing_bill_code = #{clearingBillCode,jdbcType=VARCHAR},
|
||||||
clearing_time = #{clearingTime,jdbcType=TIMESTAMP},
|
clearing_time = #{clearingTime,jdbcType=TIMESTAMP},
|
||||||
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
||||||
@@ -251,7 +264,7 @@
|
|||||||
update clearing_bill_info
|
update clearing_bill_info
|
||||||
set bill_status = #{billStatus,jdbcType=VARCHAR}
|
set bill_status = #{billStatus,jdbcType=VARCHAR}
|
||||||
where id in
|
where id in
|
||||||
<foreach collection="clearingBillIds" item="item" open="(" separator="," close=")">
|
<foreach close=")" collection="clearingBillIds" item="item" open="(" separator=",">
|
||||||
#{item,jdbcType=INTEGER}
|
#{item,jdbcType=INTEGER}
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|||||||
Reference in New Issue
Block a user