diff --git a/src/main/java/com/zmzm/finance/common/dao/TCustomerPointDetailMapper.java b/src/main/java/com/zmzm/finance/common/dao/TCustomerPointDetailMapper.java new file mode 100644 index 0000000..cd12649 --- /dev/null +++ b/src/main/java/com/zmzm/finance/common/dao/TCustomerPointDetailMapper.java @@ -0,0 +1,20 @@ +package com.zmzm.finance.common.dao; + +import com.baomidou.dynamic.datasource.annotation.DS; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.zmzm.finance.common.entity.TCustomerPointDetail; +import org.apache.ibatis.annotations.Mapper; + +/** + *
+ * Mapper 接口 + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +@Mapper +@DS("yljk") +public interface TCustomerPointDetailMapper extends BaseMapper+ * Mapper 接口 + *
+ * + * @author baomidou + * @since 2026-01-06 + */ +@Mapper +@DS("yljk") +public interface TMeetingclassRegisterMapper extends BaseMapper+ * Mapper 接口 + *
+ * + * @author baomidou + * @since 2026-01-06 + */ +@Mapper +@DS("wumen") +public interface TrainingClassMapper extends BaseMapper+ * 个人余额交易明细 Mapper 接口 + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +@Mapper +@DS("wumen") +public interface TransactionDetailsMapper extends BaseMapper+ * 用户购买课程表 Mapper 接口 + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +@Mapper +@DS("wumen") +public interface UserCourseBuyMapper extends BaseMapper+ * 用户vip表 Mapper 接口 + *
+ * + * @author baomidou + * @since 2025-12-30 + */ +@Mapper +@DS("wumen") +public interface UserVipMapper extends BaseMapper+ * + *
+ * + * @author baomidou + * @since 2026-01-05 + */ +@Getter +@Setter +@ToString +@TableName("t_customer_apply_buy") +public class TCustomerApplyBuy implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId("oid") + private String oid; + + private String description; + + private Date invaliddate; + + private Boolean valid; + + private Integer version; + + private String bankcardoid; + + private String buyid; + + private Integer convertpoint; + + private Date createdate; + + private String customeroid; + + private Boolean finishflg; + + private BigDecimal money; + + private Date remitdate; + + private String remitter; + + private String status; + + private String paymode; + + private String detail; +} diff --git a/src/main/java/com/zmzm/finance/common/entity/TCustomerPointDetail.java b/src/main/java/com/zmzm/finance/common/entity/TCustomerPointDetail.java new file mode 100644 index 0000000..72ea115 --- /dev/null +++ b/src/main/java/com/zmzm/finance/common/entity/TCustomerPointDetail.java @@ -0,0 +1,54 @@ +package com.zmzm.finance.common.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +import java.io.Serializable; +import java.time.LocalDateTime; +import java.util.Date; + +/** + *+ * + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +@Getter +@Setter +@ToString +@TableName("t_customer_point_detail") +public class TCustomerPointDetail implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId("oid") + private String oid; + + private String description; + + private Date invaliddate; + + private Boolean valid; + + private Integer version; + + private LocalDateTime createdate; + + private String customeroid; + + private Integer point; + + /** + * 创建账户01 推荐奖励02 每日登录03 购买04 编辑病历05 应诊06 提现失败返还07 升级失败返还08 门诊预约取消返还09咨询满意010 升级返现011 绑定私人医生失败返还012 绑定私人医生季度返还013 患者打赏014 社区文章打赏所得015 被赠予所得016咨询记录获得017 咨询满意被看018 会议/培训班报名返币019 推荐购买课程返币020 购买课程返币021 购买灵兰币返币022湖分兑换积分023门诊预约11 升级12 提现13 申请病历编辑14 购物15 在线咨询16 追加咨询17 绑定私人医生18 打赏医生19 打赏社区文章110绑定私人顾问111 购买健康讲堂内容112 打赏继续教育113 打赏健康讲堂114 打赏精准医案115 赠予116 申请付费课程117一对一咨询118 一对多咨询119 查看咨询记录120 会议/培训班注册121 打赏122 + */ + private String type; + + private String content; + + private String jltype; +} diff --git a/src/main/java/com/zmzm/finance/common/entity/TMeetingclassRegister.java b/src/main/java/com/zmzm/finance/common/entity/TMeetingclassRegister.java new file mode 100644 index 0000000..db49ec4 --- /dev/null +++ b/src/main/java/com/zmzm/finance/common/entity/TMeetingclassRegister.java @@ -0,0 +1,74 @@ +package com.zmzm.finance.common.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +import java.io.Serializable; +import java.time.LocalDateTime; +import java.util.Date; + +/** + *+ * + *
+ * + * @author baomidou + * @since 2026-01-06 + */ +@Getter +@Setter +@ToString +@TableName("t_meetingclass_register") +public class TMeetingclassRegister implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId("oid") + private String oid; + + private String description; + + private Date invaliddate; + + private Boolean valid; + + private Integer version; + + private Date createdate; + + private String title; + + private String content; + + private String images; + + private Integer payamount; + + private String status; + + private String type; + + private Integer orderno; + + private Integer gainpoint; + + private String years; + + /** + * 超V与在校大学生价格 + */ + private Integer studentorvipamount; + + /** + * 五星湖粉价格 + */ + private Integer fivestarsamount; + + /** + * 一星湖粉价格 + */ + private Integer onestarsamount; +} diff --git a/src/main/java/com/zmzm/finance/common/entity/TrainingClass.java b/src/main/java/com/zmzm/finance/common/entity/TrainingClass.java new file mode 100644 index 0000000..acb5f6b --- /dev/null +++ b/src/main/java/com/zmzm/finance/common/entity/TrainingClass.java @@ -0,0 +1,159 @@ +package com.zmzm.finance.common.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.time.LocalDate; +import java.time.LocalDateTime; + +/** + *+ * + *
+ * + * @author baomidou + * @since 2026-01-06 + */ +@Getter +@Setter +@ToString +@TableName("training_class") +public class TrainingClass implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 标题 + */ + private String title; + + /** + * 简介 + */ + private String des; + + /** + * 类型 1线上2线下 + */ + private String type; + + /** + * 年份 + */ + private String year; + + /** + * 培训日期 + */ + private LocalDate trainingDate; + + /** + * 截止日期 + */ + private LocalDate endDate; + + /** + * 详情 + */ + private String icon; + + /** + * 报名开关 0不可报名1可报名 + */ + private Integer singupFlag; + + /** + * 上下架 0上架 1下架 + */ + private Integer displayFlag; + + /** + * 可显示app 0疯子1众妙2医学吴门3心灵4太湖云医 + */ + private String displayApp; + + /** + * 支付方式 1wx2zfb4天医币(1,2,4),分割 + */ + private String payType; + + /** + * 是否可用积分 1可0否 + */ + private Integer displayJf; + + /** + * 费用 + */ + private BigDecimal fee; + + /** + * 可以用vip价格的VIP类型 + */ + private String vipType; + + /** + * vip费用 + */ + private BigDecimal vipFee; + + /** + * 可以用svip价格的sVIP类型 + */ + private String svipType; + + /** + * svip费用 + */ + private BigDecimal svipFee; + + /** + * 一星湖粉 30湖分 + */ + private BigDecimal oneHuFee; + + /** + * 二星湖粉 60 + */ + private BigDecimal twoHuFee; + + /** + * 三星湖粉费用 90 + */ + private BigDecimal threeHuFee; + + /** + * 四星湖粉 120 + */ + private BigDecimal fourHuFee; + + /** + * 五星湖粉费用 150 + */ + private BigDecimal fiveHuFee; + + /** + * 学生费用 + */ + private BigDecimal studentFee; + + /** + * 排序 + */ + private Integer sort; + + private LocalDateTime createTime; + + @TableLogic + private Integer delFlag; +} diff --git a/src/main/java/com/zmzm/finance/common/entity/TransactionDetails.java b/src/main/java/com/zmzm/finance/common/entity/TransactionDetails.java new file mode 100644 index 0000000..164943b --- /dev/null +++ b/src/main/java/com/zmzm/finance/common/entity/TransactionDetails.java @@ -0,0 +1,82 @@ +package com.zmzm.finance.common.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + *+ * 个人余额交易明细 + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +@Getter +@Setter +@ToString +@TableName("transaction_details") +public class TransactionDetails implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "transaction_id", type = IdType.AUTO) + private Integer transactionId; + + /** + * 用户id + */ + private Integer userId; + + /** + * 充值 支付 赠送优惠券..... + */ + private String orderType; + + /** + * 变动金额 + */ + private BigDecimal changeAmount; + + /** + * 关联id + */ + private Integer relationId; + + /** + * 支付方式 + */ + private String payMethod; + + /** + * 支付渠道流水号 + */ + private String payNo; + + /** + * 余额 + */ + private BigDecimal userBalance; + + private Date createTime; + + /** + * 用户名 + */ + private String userName; + + /** + * 手机号 + */ + private String tel; + + private String note; + + private Integer delFlag; +} diff --git a/src/main/java/com/zmzm/finance/common/entity/User.java b/src/main/java/com/zmzm/finance/common/entity/User.java index 5b21c05..0bec54f 100644 --- a/src/main/java/com/zmzm/finance/common/entity/User.java +++ b/src/main/java/com/zmzm/finance/common/entity/User.java @@ -2,13 +2,12 @@ package com.zmzm.finance.common.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableLogic; import lombok.Getter; import lombok.Setter; import lombok.ToString; import java.io.Serializable; -import java.util.Date; +import java.math.BigDecimal; /** *@@ -16,7 +15,7 @@ import java.util.Date; *
* * @author baomidou - * @since 2025-12-10 + * @since 2026-01-05 */ @Getter @Setter @@ -25,40 +24,31 @@ public class User implements Serializable { private static final long serialVersionUID = 1L; - /** - * 主键 - */ @TableId(value = "id", type = IdType.AUTO) - private Integer id; + private Long id; /** - * 用户名 + * 删除标记 */ - private String name; + private Integer delFlag; /** - * 账户 + * 电话 */ - private String account; + private String tel; /** - * 密码 + * 总币 */ - private String password; + private BigDecimal totalPoint; /** - * 0管理员1财务 + * 花生币 */ - private Integer role; + private BigDecimal point; /** - * 最后登录时间 + * 一路健康oid */ - private Date lastTime; - - /** - * 状态0初始1删除 - */ - @TableLogic - private Integer state; + private String yljkOid; } diff --git a/src/main/java/com/zmzm/finance/common/entity/UserCourseBuy.java b/src/main/java/com/zmzm/finance/common/entity/UserCourseBuy.java new file mode 100644 index 0000000..ba31645 --- /dev/null +++ b/src/main/java/com/zmzm/finance/common/entity/UserCourseBuy.java @@ -0,0 +1,67 @@ +package com.zmzm.finance.common.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import java.util.Date; + +/** + *+ * 用户购买课程表 + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +@Getter +@Setter +@ToString +@TableName("user_course_buy") +public class UserCourseBuy implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + private Integer userId; + + /** + * 课程id,作为展示的意义更大 + */ + private Integer courseId; + + /** + * 课程目录id,购买的是此id对应的课程 + */ + private Integer catalogueId; + + private Date createTime; + + /** + * 有效天数 + */ + private Integer days; + + /** + * 来源(如 赠送、复读、购买:订单id) + */ + private String come; + + /** + * 开始计时的时间 + */ + private Date startTime; + + /** + * 有效期止时间 + */ + private Date endTime; + + private Integer delFlag; +} diff --git a/src/main/java/com/zmzm/finance/common/entity/UserVip.java b/src/main/java/com/zmzm/finance/common/entity/UserVip.java new file mode 100644 index 0000000..a5d5e79 --- /dev/null +++ b/src/main/java/com/zmzm/finance/common/entity/UserVip.java @@ -0,0 +1,54 @@ +package com.zmzm.finance.common.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import java.util.Date; + +/** + *+ * 用户vip表 + *
+ * + * @author baomidou + * @since 2025-12-30 + */ +@Getter +@Setter +@ToString +@TableName("user_vip") +public class UserVip implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + private Integer userId; + + /** + * 4中医学5针灸学6肿瘤学7国学8心理学9中西汇通 + */ + private Integer type; + + /** + * 开始时间 + */ + private Date startTime; + + /** + * 失效时间 + */ + private Date endTime; + + /** + * 0有效1失效 + */ + private Integer state; + + private Integer delFlag; +} diff --git a/src/main/java/com/zmzm/finance/common/service/ITCustomerApplyBuyService.java b/src/main/java/com/zmzm/finance/common/service/ITCustomerApplyBuyService.java new file mode 100644 index 0000000..9c79b9d --- /dev/null +++ b/src/main/java/com/zmzm/finance/common/service/ITCustomerApplyBuyService.java @@ -0,0 +1,16 @@ +package com.zmzm.finance.common.service; + +import com.zmzm.finance.common.entity.TCustomerApplyBuy; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *+ * 服务类 + *
+ * + * @author baomidou + * @since 2026-01-05 + */ +public interface ITCustomerApplyBuyService extends IService+ * 服务类 + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +public interface ITCustomerPointDetailService extends IService+ * 服务类 + *
+ * + * @author baomidou + * @since 2026-01-06 + */ +public interface ITMeetingclassRegisterService extends IService+ * 服务类 + *
+ * + * @author baomidou + * @since 2026-01-06 + */ +public interface ITrainingClassService extends IService+ * 个人余额交易明细 服务类 + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +public interface ITransactionDetailsService extends IService+ * 用户购买课程表 服务类 + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +public interface IUserCourseBuyService extends IService+ * 用户vip表 服务类 + *
+ * + * @author baomidou + * @since 2025-12-30 + */ +public interface IUserVipService extends IService+ * 服务实现类 + *
+ * + * @author baomidou + * @since 2026-01-05 + */ +@Service +public class TCustomerApplyBuyServiceImpl extends ServiceImpl+ * 服务实现类 + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +@Service +public class TCustomerPointDetailServiceImpl extends ServiceImpl+ * 服务实现类 + *
+ * + * @author baomidou + * @since 2026-01-06 + */ +@Service +public class TMeetingclassRegisterServiceImpl extends ServiceImpl+ * 服务实现类 + *
+ * + * @author baomidou + * @since 2026-01-06 + */ +@Service +public class TrainingClassServiceImpl extends ServiceImpl+ * 个人余额交易明细 服务实现类 + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +@Service +public class TransactionDetailsServiceImpl extends ServiceImpl+ * 用户购买课程表 服务实现类 + *
+ * + * @author baomidou + * @since 2025-12-29 + */ +@Service +public class UserCourseBuyServiceImpl extends ServiceImpl+ * 用户vip表 服务实现类 + *
+ * + * @author baomidou + * @since 2025-12-30 + */ +@Service +public class UserVipServiceImpl extends ServiceImpl