| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- package com.cyksj.model.entity;
- import com.baomidou.mybatisplus.annotation.TableField;
- import com.ejlchina.searcher.bean.DbField;
- import com.ejlchina.searcher.bean.DbIgnore;
- import com.ejlchina.searcher.bean.SearchBean;
- import lombok.AllArgsConstructor;
- import lombok.Getter;
- import lombok.Setter;
- import java.math.BigDecimal;
- import java.util.Arrays;
- /**
- * 项目名: yhlxj
- * 文件名: GoodsWholesaleUserDeposit
- * 创建者: JavaZou
- * 创建时间:2024/8/21 15:52
- */
- @Getter
- @Setter
- @SearchBean(tables = "goods_wholesale_user_deposit gwud")
- public class GoodsWholesaleUserDeposit extends BaseEntity{
- private Long userId;
- private BigDecimal money;
- private Type type;
- /**
- * 抵押状态 默认抵押中
- */
- private Boolean status;
- /**
- * 累积批发
- */
- @TableField(exist = false)
- @DbIgnore
- private Integer total;
- /**
- * 操作人
- */
- private String operator;
- @Getter
- @AllArgsConstructor
- public enum Type{
- WeChat("wechat","微信"),
- ALI_PAY("zfb","支付宝"),
- PAYPAL("paypal","paypal支付"),
- STRIPE("stripe","stripe支付")
- ;
- String type;
- String desc;
- public static OrderDon.Type getType(String type) {
- return Arrays.stream(OrderDon.Type.values()).filter(tp -> tp.getType().equals(type)).findFirst().orElse(ALI_PAY);
- }
- }
- }
|