diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/domain/ClearingWithdrawInfo.java b/jsowell-pile/src/main/java/com/jsowell/pile/domain/ClearingWithdrawInfo.java new file mode 100644 index 000000000..2b8173ff3 --- /dev/null +++ b/jsowell-pile/src/main/java/com/jsowell/pile/domain/ClearingWithdrawInfo.java @@ -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; +} \ No newline at end of file diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/mapper/ClearingWithdrawInfoMapper.java b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/ClearingWithdrawInfoMapper.java new file mode 100644 index 000000000..8a1090820 --- /dev/null +++ b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/ClearingWithdrawInfoMapper.java @@ -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 list); + + int batchInsert(@Param("list") List list); +} \ No newline at end of file diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/ClearingWithdrawInfoService.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/ClearingWithdrawInfoService.java new file mode 100644 index 000000000..9e0e12b95 --- /dev/null +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/ClearingWithdrawInfoService.java @@ -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 list); + + int batchInsert(List list); + +} diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/ClearingWithdrawInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/ClearingWithdrawInfoServiceImpl.java new file mode 100644 index 000000000..17af2c2d8 --- /dev/null +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/ClearingWithdrawInfoServiceImpl.java @@ -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 list) { + return clearingWithdrawInfoMapper.updateBatch(list); + } + + @Override + public int batchInsert(List list) { + return clearingWithdrawInfoMapper.batchInsert(list); + } + +} diff --git a/jsowell-pile/src/main/resources/mapper/pile/ClearingWithdrawInfoMapper.xml b/jsowell-pile/src/main/resources/mapper/pile/ClearingWithdrawInfoMapper.xml new file mode 100644 index 000000000..15677455a --- /dev/null +++ b/jsowell-pile/src/main/resources/mapper/pile/ClearingWithdrawInfoMapper.xml @@ -0,0 +1,354 @@ + + + + + + + + + + + + + + + + + + + + id, withdraw_code, withdraw_status, application_time, arrival_time, create_by, create_time, + update_by, update_time, del_flag + + + + + delete from clearing_withdraw_info + where id = #{id,jdbcType=INTEGER} + + + + 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 into clearing_withdraw_info + + + id, + + + withdraw_code, + + + withdraw_status, + + + application_time, + + + arrival_time, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + + del_flag, + + + + + #{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}, + + + + + + update clearing_withdraw_info + + + 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 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 clearing_withdraw_info + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.withdrawCode,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.withdrawStatus,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.applicationTime,jdbcType=TIMESTAMP} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.arrivalTime,jdbcType=TIMESTAMP} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=VARCHAR} + + + + where id in + + #{item.id,jdbcType=INTEGER} + + + + + 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 + + (#{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}) + + + + + 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 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}, + + + + \ No newline at end of file