mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 09:29:59 +08:00
清分账单表 相关实体类
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
package com.jsowell.pile.domain;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 清分账单表
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ClearingBillInfo {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 账单状态(0-未清分;1-清分在途;2-可提现;3-提现申请中;4-已提现;5等待处理;6-线下结算)
|
||||
*/
|
||||
private String billStatus;
|
||||
|
||||
/**
|
||||
* 清分账单编号
|
||||
*/
|
||||
private String clearingBillCode;
|
||||
|
||||
/**
|
||||
* 清分时间
|
||||
*/
|
||||
private Date clearingTime;
|
||||
|
||||
/**
|
||||
* 运营商id
|
||||
*/
|
||||
private String merchantId;
|
||||
|
||||
/**
|
||||
* 订单来源(1-有电充平台)
|
||||
*/
|
||||
private String orderSource;
|
||||
|
||||
/**
|
||||
* 应收金额
|
||||
*/
|
||||
private BigDecimal receivableAmount;
|
||||
|
||||
/**
|
||||
* 应清分金额
|
||||
*/
|
||||
private BigDecimal shouldClearingAmount;
|
||||
|
||||
/**
|
||||
* 实际清分金额
|
||||
*/
|
||||
private BigDecimal actualClearingAmount;
|
||||
|
||||
/**
|
||||
* 手续费
|
||||
*/
|
||||
private BigDecimal feeAmount;
|
||||
|
||||
/**
|
||||
* 可提现金额
|
||||
*/
|
||||
private BigDecimal withdrawableAmount;
|
||||
|
||||
/**
|
||||
* 提现单号
|
||||
*/
|
||||
private String withdrawCode;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 删除标识(0-正常;1-删除)
|
||||
*/
|
||||
private String delFlag;
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.ClearingBillInfo;
|
||||
|
||||
public interface ClearingBillInfoMapper {
|
||||
/**
|
||||
* delete by primary key
|
||||
* @param id primaryKey
|
||||
* @return deleteCount
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* insert record to table
|
||||
* @param record the record
|
||||
* @return insert count
|
||||
*/
|
||||
int insert(ClearingBillInfo record);
|
||||
|
||||
/**
|
||||
* insert record to table selective
|
||||
* @param record the record
|
||||
* @return insert count
|
||||
*/
|
||||
int insertSelective(ClearingBillInfo record);
|
||||
|
||||
/**
|
||||
* select by primary key
|
||||
* @param id primary key
|
||||
* @return object by primary key
|
||||
*/
|
||||
ClearingBillInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* update record selective
|
||||
* @param record the updated record
|
||||
* @return update count
|
||||
*/
|
||||
int updateByPrimaryKeySelective(ClearingBillInfo record);
|
||||
|
||||
/**
|
||||
* update record
|
||||
* @param record the updated record
|
||||
* @return update count
|
||||
*/
|
||||
int updateByPrimaryKey(ClearingBillInfo record);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import com.jsowell.pile.domain.ClearingBillInfo;
|
||||
public interface ClearingBillInfoService{
|
||||
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(ClearingBillInfo record);
|
||||
|
||||
int insertSelective(ClearingBillInfo record);
|
||||
|
||||
ClearingBillInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(ClearingBillInfo record);
|
||||
|
||||
int updateByPrimaryKey(ClearingBillInfo record);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import com.jsowell.pile.domain.ClearingBillInfo;
|
||||
import com.jsowell.pile.mapper.ClearingBillInfoMapper;
|
||||
import com.jsowell.pile.service.ClearingBillInfoService;
|
||||
@Service
|
||||
public class ClearingBillInfoServiceImpl implements ClearingBillInfoService{
|
||||
|
||||
@Resource
|
||||
private ClearingBillInfoMapper clearingBillInfoMapper;
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(Integer id) {
|
||||
return clearingBillInfoMapper.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(ClearingBillInfo record) {
|
||||
return clearingBillInfoMapper.insert(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(ClearingBillInfo record) {
|
||||
return clearingBillInfoMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ClearingBillInfo selectByPrimaryKey(Integer id) {
|
||||
return clearingBillInfoMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(ClearingBillInfo record) {
|
||||
return clearingBillInfoMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(ClearingBillInfo record) {
|
||||
return clearingBillInfoMapper.updateByPrimaryKey(record);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,238 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jsowell.pile.mapper.ClearingBillInfoMapper">
|
||||
<resultMap id="BaseResultMap" type="com.jsowell.pile.domain.ClearingBillInfo">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table clearing_bill_info-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="bill_status" jdbcType="VARCHAR" property="billStatus" />
|
||||
<result column="clearing_bill_code" jdbcType="VARCHAR" property="clearingBillCode" />
|
||||
<result column="clearing_time" jdbcType="TIMESTAMP" property="clearingTime" />
|
||||
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
|
||||
<result column="order_source" jdbcType="VARCHAR" property="orderSource" />
|
||||
<result column="receivable_amount" jdbcType="DECIMAL" property="receivableAmount" />
|
||||
<result column="should_clearing_amount" jdbcType="DECIMAL" property="shouldClearingAmount" />
|
||||
<result column="actual_clearing_amount" jdbcType="DECIMAL" property="actualClearingAmount" />
|
||||
<result column="fee_amount" jdbcType="DECIMAL" property="feeAmount" />
|
||||
<result column="withdrawable_amount" jdbcType="DECIMAL" property="withdrawableAmount" />
|
||||
<result column="withdraw_code" jdbcType="VARCHAR" property="withdrawCode" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="del_flag" jdbcType="VARCHAR" property="delFlag" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, bill_status, clearing_bill_code, clearing_time, merchant_id, order_source, receivable_amount,
|
||||
should_clearing_amount, actual_clearing_amount, fee_amount, withdrawable_amount,
|
||||
withdraw_code, create_by, create_time, update_by, update_time, del_flag
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--@mbg.generated-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from clearing_bill_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--@mbg.generated-->
|
||||
delete from clearing_bill_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.ClearingBillInfo" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into clearing_bill_info (bill_status, clearing_bill_code, clearing_time,
|
||||
merchant_id, order_source, receivable_amount,
|
||||
should_clearing_amount, actual_clearing_amount,
|
||||
fee_amount, withdrawable_amount, withdraw_code,
|
||||
create_by, create_time, 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},
|
||||
#{shouldClearingAmount,jdbcType=DECIMAL}, #{actualClearingAmount,jdbcType=DECIMAL},
|
||||
#{feeAmount,jdbcType=DECIMAL}, #{withdrawableAmount,jdbcType=DECIMAL}, #{withdrawCode,jdbcType=VARCHAR},
|
||||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
|
||||
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.ClearingBillInfo" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into clearing_bill_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="billStatus != null">
|
||||
bill_status,
|
||||
</if>
|
||||
<if test="clearingBillCode != null">
|
||||
clearing_bill_code,
|
||||
</if>
|
||||
<if test="clearingTime != null">
|
||||
clearing_time,
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
merchant_id,
|
||||
</if>
|
||||
<if test="orderSource != null">
|
||||
order_source,
|
||||
</if>
|
||||
<if test="receivableAmount != null">
|
||||
receivable_amount,
|
||||
</if>
|
||||
<if test="shouldClearingAmount != null">
|
||||
should_clearing_amount,
|
||||
</if>
|
||||
<if test="actualClearingAmount != null">
|
||||
actual_clearing_amount,
|
||||
</if>
|
||||
<if test="feeAmount != null">
|
||||
fee_amount,
|
||||
</if>
|
||||
<if test="withdrawableAmount != null">
|
||||
withdrawable_amount,
|
||||
</if>
|
||||
<if test="withdrawCode != null">
|
||||
withdraw_code,
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="billStatus != null">
|
||||
#{billStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="clearingBillCode != null">
|
||||
#{clearingBillCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="clearingTime != null">
|
||||
#{clearingTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
#{merchantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderSource != null">
|
||||
#{orderSource,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="receivableAmount != null">
|
||||
#{receivableAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="shouldClearingAmount != null">
|
||||
#{shouldClearingAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="actualClearingAmount != null">
|
||||
#{actualClearingAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="feeAmount != null">
|
||||
#{feeAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="withdrawableAmount != null">
|
||||
#{withdrawableAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="withdrawCode != null">
|
||||
#{withdrawCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
#{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
#{delFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.jsowell.pile.domain.ClearingBillInfo">
|
||||
<!--@mbg.generated-->
|
||||
update clearing_bill_info
|
||||
<set>
|
||||
<if test="billStatus != null">
|
||||
bill_status = #{billStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="clearingBillCode != null">
|
||||
clearing_bill_code = #{clearingBillCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="clearingTime != null">
|
||||
clearing_time = #{clearingTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderSource != null">
|
||||
order_source = #{orderSource,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="receivableAmount != null">
|
||||
receivable_amount = #{receivableAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="shouldClearingAmount != null">
|
||||
should_clearing_amount = #{shouldClearingAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="actualClearingAmount != null">
|
||||
actual_clearing_amount = #{actualClearingAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="feeAmount != null">
|
||||
fee_amount = #{feeAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="withdrawableAmount != null">
|
||||
withdrawable_amount = #{withdrawableAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="withdrawCode != null">
|
||||
withdraw_code = #{withdrawCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag = #{delFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.jsowell.pile.domain.ClearingBillInfo">
|
||||
<!--@mbg.generated-->
|
||||
update clearing_bill_info
|
||||
set bill_status = #{billStatus,jdbcType=VARCHAR},
|
||||
clearing_bill_code = #{clearingBillCode,jdbcType=VARCHAR},
|
||||
clearing_time = #{clearingTime,jdbcType=TIMESTAMP},
|
||||
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
||||
order_source = #{orderSource,jdbcType=VARCHAR},
|
||||
receivable_amount = #{receivableAmount,jdbcType=DECIMAL},
|
||||
should_clearing_amount = #{shouldClearingAmount,jdbcType=DECIMAL},
|
||||
actual_clearing_amount = #{actualClearingAmount,jdbcType=DECIMAL},
|
||||
fee_amount = #{feeAmount,jdbcType=DECIMAL},
|
||||
withdrawable_amount = #{withdrawableAmount,jdbcType=DECIMAL},
|
||||
withdraw_code = #{withdrawCode,jdbcType=VARCHAR},
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
del_flag = #{delFlag,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user