支付账单表

This commit is contained in:
wuchunlei
2025-12-15 10:51:17 +08:00
parent ac71d27d53
commit 5bd87db083
5 changed files with 152 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package com.zmzm.finance.common.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 支付账单表,一般是业务方上传文件上读下来的数据 前端控制器
* </p>
*
* @author baomidou
* @since 2025-12-15
*/
@RestController
@RequestMapping("/common/payment")
public class PaymentController {
}

View File

@@ -0,0 +1,18 @@
package com.zmzm.finance.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzm.finance.common.entity.Payment;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* 支付账单表,一般是业务方上传文件上读下来的数据 Mapper 接口
* </p>
*
* @author baomidou
* @since 2025-12-15
*/
@Mapper
public interface PaymentMapper extends BaseMapper<Payment> {
}

View File

@@ -0,0 +1,80 @@
package com.zmzm.finance.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* <p>
* 支付账单表,一般是业务方上传文件上读下来的数据
* </p>
*
* @author baomidou
* @since 2025-12-15
*/
@Getter
@Setter
@ToString
public class Payment implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 0微信1支付宝2银行
*/
private Byte type;
/**
* 金额
*/
private BigDecimal fee;
/**
* 支付商品名选填
*/
private String paymentName;
/**
* 业务类型(在线支付,扫码支付等)非必填
*/
private String paymentType;
/**
* 平台财务流水号
*/
private String financeSn;
/**
* 收款方业务流水号
*/
private String transactionSn;
/**
* 关联id一般为我方系统的sn号
*/
private String relationSn;
/**
* 备注信息
*/
private String remark;
/**
* 收款时间
*/
private LocalDateTime ctime;
/**
* 状态0初始1删除
*/
private Byte state;
}

View File

@@ -0,0 +1,16 @@
package com.zmzm.finance.common.service;
import com.zmzm.finance.common.entity.Payment;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 支付账单表,一般是业务方上传文件上读下来的数据 服务类
* </p>
*
* @author baomidou
* @since 2025-12-15
*/
public interface IPaymentService extends IService<Payment> {
}

View File

@@ -0,0 +1,20 @@
package com.zmzm.finance.common.service.impl;
import com.zmzm.finance.common.entity.Payment;
import com.zmzm.finance.common.dao.PaymentMapper;
import com.zmzm.finance.common.service.IPaymentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 支付账单表,一般是业务方上传文件上读下来的数据 服务实现类
* </p>
*
* @author baomidou
* @since 2025-12-15
*/
@Service
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements IPaymentService {
}