需求85 门诊挂号-》预约号源已缴费签到未看诊进行退号;建立退费表,在退诊时将相应数据插入到表中。
This commit is contained in:
@@ -0,0 +1,127 @@
|
||||
package com.openhis.financial.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 退号日志表
|
||||
*/
|
||||
@TableName(value = "refund_log")
|
||||
@Data
|
||||
public class RefundLog implements Serializable {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 订单ID
|
||||
*/
|
||||
@TableField(value = "order_id")
|
||||
private String orderId;
|
||||
|
||||
/**
|
||||
* 患者ID
|
||||
*/
|
||||
@TableField(value = "patient_id")
|
||||
private String patientId;
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
@TableField(value = "patient_name")
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 退款金额
|
||||
*/
|
||||
@TableField(value = "refund_amount")
|
||||
private BigDecimal refundAmount;
|
||||
|
||||
/**
|
||||
* 退款原因
|
||||
*/
|
||||
@TableField(value = "refund_reason")
|
||||
private String refundReason;
|
||||
|
||||
/**
|
||||
* 退款类型(FULL-全额退号,PART-部分退号)
|
||||
*/
|
||||
@TableField(value = "refund_type")
|
||||
private String refundType;
|
||||
|
||||
/**
|
||||
* 退款方式
|
||||
*/
|
||||
@TableField(value = "refund_method")
|
||||
private String refundMethod;
|
||||
|
||||
/**
|
||||
* 原交易流水号
|
||||
*/
|
||||
@TableField(value = "original_trade_no")
|
||||
private String originalTradeNo;
|
||||
|
||||
/**
|
||||
* 退款交易流水号
|
||||
*/
|
||||
@TableField(value = "refund_trade_no")
|
||||
private String refundTradeNo;
|
||||
|
||||
/**
|
||||
* 退款时间
|
||||
*/
|
||||
@TableField(value = "refund_time")
|
||||
private LocalDateTime refundTime;
|
||||
|
||||
/**
|
||||
* 操作用户ID
|
||||
*/
|
||||
@TableField(value = "op_user_id")
|
||||
private String opUserId;
|
||||
|
||||
/**
|
||||
* 操作用户名
|
||||
*/
|
||||
@TableField(value = "op_user_name")
|
||||
private String opUserName;
|
||||
|
||||
/**
|
||||
* 操作角色
|
||||
*/
|
||||
@TableField(value = "op_role")
|
||||
private String opRole;
|
||||
|
||||
/**
|
||||
* 状态(0-失败,1-成功,2-处理中)
|
||||
*/
|
||||
@TableField(value = "state")
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 失败原因
|
||||
*/
|
||||
@TableField(value = "fail_reason")
|
||||
private String failReason;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "created_at")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "updated_at")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.openhis.financial.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.openhis.financial.domain.RefundLog;
|
||||
|
||||
/**
|
||||
* 退号日志 Mapper接口
|
||||
*/
|
||||
public interface RefundLogMapper extends BaseMapper<RefundLog> {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.openhis.financial.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.openhis.financial.domain.RefundLog;
|
||||
|
||||
/**
|
||||
* 退号日志 Service接口
|
||||
*/
|
||||
public interface IRefundLogService extends IService<RefundLog> {
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.openhis.financial.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.openhis.financial.domain.RefundLog;
|
||||
import com.openhis.financial.mapper.RefundLogMapper;
|
||||
import com.openhis.financial.service.IRefundLogService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 退号日志 Service实现类
|
||||
*/
|
||||
@Service
|
||||
public class RefundLogServiceImpl extends ServiceImpl<RefundLogMapper, RefundLog> implements IRefundLogService {
|
||||
}
|
||||
Reference in New Issue
Block a user