提现记录表 相关实体类

This commit is contained in:
2023-07-21 16:30:31 +08:00
parent 8279b6805a
commit 64b47f5330
5 changed files with 572 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
package com.jsowell.pile.domain;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* 提现记录表
*/
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ClearingWithdrawInfo {
/**
* 主键
*/
private Integer id;
/**
* 提现编号
*/
private String withdrawCode;
/**
* 提现状态(0-处理中1-已提现)
*/
private String withdrawStatus;
/**
* 申请时间
*/
private Date applicationTime;
/**
* 到账时间
*/
private Date arrivalTime;
/**
* 创建人
*/
private String createBy;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新人
*/
private String updateBy;
/**
* 更新时间
*/
private Date updateTime;
/**
* 删除标识0-正常1-删除)
*/
private String delFlag;
}

View File

@@ -0,0 +1,57 @@
package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.ClearingWithdrawInfo;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ClearingWithdrawInfoMapper {
/**
* 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(ClearingWithdrawInfo record);
int insertOrUpdate(ClearingWithdrawInfo record);
int insertOrUpdateSelective(ClearingWithdrawInfo record);
/**
* insert record to table selective
* @param record the record
* @return insert count
*/
int insertSelective(ClearingWithdrawInfo record);
/**
* select by primary key
* @param id primary key
* @return object by primary key
*/
ClearingWithdrawInfo selectByPrimaryKey(Integer id);
/**
* update record selective
* @param record the updated record
* @return update count
*/
int updateByPrimaryKeySelective(ClearingWithdrawInfo record);
/**
* update record
* @param record the updated record
* @return update count
*/
int updateByPrimaryKey(ClearingWithdrawInfo record);
int updateBatch(List<ClearingWithdrawInfo> list);
int batchInsert(@Param("list") List<ClearingWithdrawInfo> list);
}

View File

@@ -0,0 +1,28 @@
package com.jsowell.pile.service;
import java.util.List;
import com.jsowell.pile.domain.ClearingWithdrawInfo;
public interface ClearingWithdrawInfoService{
int deleteByPrimaryKey(Integer id);
int insert(ClearingWithdrawInfo record);
int insertOrUpdate(ClearingWithdrawInfo record);
int insertOrUpdateSelective(ClearingWithdrawInfo record);
int insertSelective(ClearingWithdrawInfo record);
ClearingWithdrawInfo selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(ClearingWithdrawInfo record);
int updateByPrimaryKey(ClearingWithdrawInfo record);
int updateBatch(List<ClearingWithdrawInfo> list);
int batchInsert(List<ClearingWithdrawInfo> list);
}

View File

@@ -0,0 +1,65 @@
package com.jsowell.pile.service.impl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.jsowell.pile.mapper.ClearingWithdrawInfoMapper;
import java.util.List;
import com.jsowell.pile.domain.ClearingWithdrawInfo;
import com.jsowell.pile.service.ClearingWithdrawInfoService;
@Service
public class ClearingWithdrawInfoServiceImpl implements ClearingWithdrawInfoService{
@Resource
private ClearingWithdrawInfoMapper clearingWithdrawInfoMapper;
@Override
public int deleteByPrimaryKey(Integer id) {
return clearingWithdrawInfoMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(ClearingWithdrawInfo record) {
return clearingWithdrawInfoMapper.insert(record);
}
@Override
public int insertOrUpdate(ClearingWithdrawInfo record) {
return clearingWithdrawInfoMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(ClearingWithdrawInfo record) {
return clearingWithdrawInfoMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(ClearingWithdrawInfo record) {
return clearingWithdrawInfoMapper.insertSelective(record);
}
@Override
public ClearingWithdrawInfo selectByPrimaryKey(Integer id) {
return clearingWithdrawInfoMapper.selectByPrimaryKey(id);
}
@Override
public int updateByPrimaryKeySelective(ClearingWithdrawInfo record) {
return clearingWithdrawInfoMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(ClearingWithdrawInfo record) {
return clearingWithdrawInfoMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<ClearingWithdrawInfo> list) {
return clearingWithdrawInfoMapper.updateBatch(list);
}
@Override
public int batchInsert(List<ClearingWithdrawInfo> list) {
return clearingWithdrawInfoMapper.batchInsert(list);
}
}

View File

@@ -0,0 +1,354 @@
<?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.ClearingWithdrawInfoMapper">
<resultMap id="BaseResultMap" type="com.jsowell.pile.domain.ClearingWithdrawInfo">
<!--@mbg.generated-->
<!--@Table clearing_withdraw_info-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="withdraw_code" jdbcType="VARCHAR" property="withdrawCode" />
<result column="withdraw_status" jdbcType="VARCHAR" property="withdrawStatus" />
<result column="application_time" jdbcType="TIMESTAMP" property="applicationTime" />
<result column="arrival_time" jdbcType="TIMESTAMP" property="arrivalTime" />
<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, withdraw_code, withdraw_status, application_time, arrival_time, 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_withdraw_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from clearing_withdraw_info
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.jsowell.pile.domain.ClearingWithdrawInfo">
<!--@mbg.generated-->
insert into clearing_withdraw_info (id, withdraw_code, withdraw_status,
application_time, arrival_time, create_by,
create_time, update_by, update_time,
del_flag)
values (#{id,jdbcType=INTEGER}, #{withdrawCode,jdbcType=VARCHAR}, #{withdrawStatus,jdbcType=VARCHAR},
#{applicationTime,jdbcType=TIMESTAMP}, #{arrivalTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.jsowell.pile.domain.ClearingWithdrawInfo">
<!--@mbg.generated-->
insert into clearing_withdraw_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="withdrawCode != null">
withdraw_code,
</if>
<if test="withdrawStatus != null">
withdraw_status,
</if>
<if test="applicationTime != null">
application_time,
</if>
<if test="arrivalTime != null">
arrival_time,
</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="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="withdrawCode != null">
#{withdrawCode,jdbcType=VARCHAR},
</if>
<if test="withdrawStatus != null">
#{withdrawStatus,jdbcType=VARCHAR},
</if>
<if test="applicationTime != null">
#{applicationTime,jdbcType=TIMESTAMP},
</if>
<if test="arrivalTime != null">
#{arrivalTime,jdbcType=TIMESTAMP},
</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.ClearingWithdrawInfo">
<!--@mbg.generated-->
update clearing_withdraw_info
<set>
<if test="withdrawCode != null">
withdraw_code = #{withdrawCode,jdbcType=VARCHAR},
</if>
<if test="withdrawStatus != null">
withdraw_status = #{withdrawStatus,jdbcType=VARCHAR},
</if>
<if test="applicationTime != null">
application_time = #{applicationTime,jdbcType=TIMESTAMP},
</if>
<if test="arrivalTime != null">
arrival_time = #{arrivalTime,jdbcType=TIMESTAMP},
</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.ClearingWithdrawInfo">
<!--@mbg.generated-->
update clearing_withdraw_info
set withdraw_code = #{withdrawCode,jdbcType=VARCHAR},
withdraw_status = #{withdrawStatus,jdbcType=VARCHAR},
application_time = #{applicationTime,jdbcType=TIMESTAMP},
arrival_time = #{arrivalTime,jdbcType=TIMESTAMP},
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>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update clearing_withdraw_info
<trim prefix="set" suffixOverrides=",">
<trim prefix="withdraw_code = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.withdrawCode,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="withdraw_status = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.withdrawStatus,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="application_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.applicationTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="arrival_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.arrivalTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="del_flag = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="batchInsert" parameterType="map">
<!--@mbg.generated-->
insert into clearing_withdraw_info
(id, withdraw_code, withdraw_status, application_time, arrival_time, create_by, create_time,
update_by, update_time, del_flag)
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=INTEGER}, #{item.withdrawCode,jdbcType=VARCHAR}, #{item.withdrawStatus,jdbcType=VARCHAR},
#{item.applicationTime,jdbcType=TIMESTAMP}, #{item.arrivalTime,jdbcType=TIMESTAMP},
#{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.delFlag,jdbcType=VARCHAR})
</foreach>
</insert>
<insert id="insertOrUpdate" parameterType="com.jsowell.pile.domain.ClearingWithdrawInfo">
<!--@mbg.generated-->
insert into clearing_withdraw_info
(id, withdraw_code, withdraw_status, application_time, arrival_time, create_by, create_time,
update_by, update_time, del_flag)
values
(#{id,jdbcType=INTEGER}, #{withdrawCode,jdbcType=VARCHAR}, #{withdrawStatus,jdbcType=VARCHAR},
#{applicationTime,jdbcType=TIMESTAMP}, #{arrivalTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=VARCHAR})
on duplicate key update
id = #{id,jdbcType=INTEGER},
withdraw_code = #{withdrawCode,jdbcType=VARCHAR},
withdraw_status = #{withdrawStatus,jdbcType=VARCHAR},
application_time = #{applicationTime,jdbcType=TIMESTAMP},
arrival_time = #{arrivalTime,jdbcType=TIMESTAMP},
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}
</insert>
<insert id="insertOrUpdateSelective" parameterType="com.jsowell.pile.domain.ClearingWithdrawInfo">
<!--@mbg.generated-->
insert into clearing_withdraw_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="withdrawCode != null">
withdraw_code,
</if>
<if test="withdrawStatus != null">
withdraw_status,
</if>
<if test="applicationTime != null">
application_time,
</if>
<if test="arrivalTime != null">
arrival_time,
</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>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="withdrawCode != null">
#{withdrawCode,jdbcType=VARCHAR},
</if>
<if test="withdrawStatus != null">
#{withdrawStatus,jdbcType=VARCHAR},
</if>
<if test="applicationTime != null">
#{applicationTime,jdbcType=TIMESTAMP},
</if>
<if test="arrivalTime != null">
#{arrivalTime,jdbcType=TIMESTAMP},
</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>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="withdrawCode != null">
withdraw_code = #{withdrawCode,jdbcType=VARCHAR},
</if>
<if test="withdrawStatus != null">
withdraw_status = #{withdrawStatus,jdbcType=VARCHAR},
</if>
<if test="applicationTime != null">
application_time = #{applicationTime,jdbcType=TIMESTAMP},
</if>
<if test="arrivalTime != null">
arrival_time = #{arrivalTime,jdbcType=TIMESTAMP},
</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>
</trim>
</insert>
</mapper>