Here are the examples of the java api @org.hibernate.annotations.DynamicUpdate(true) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
100 Examples
19
Source : SoAgreementLine.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "so_agreement_line", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced SoAgreementLine extends SoAgreementLineBase implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public SoAgreementLine() {
}
}
18
Source : SoAgreementHead.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "so_agreement_head", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced SoAgreementHead extends SoAgreementHeadBase implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public SoAgreementHead() {
}
}
18
Source : PoAgreementLine.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "po_agreement_line", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced PoAgreementLine extends PoAgreementLineBase implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public PoAgreementLine() {
}
}
18
Source : PoAgreementHead.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "po_agreement_head", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced PoAgreementHead extends PoAgreementHeadBase implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public PoAgreementHead() {
}
}
17
Source : TotalCashDeposit.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "v_total_cash_deposit")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced TotalCashDeposit {
@Id
private Double totalCashDeposit;
}
17
Source : TotalAccountReceiveOrderSituation.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "v_total_account_receive_order_situation")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced TotalAccountReceiveOrderSituation {
@Id
@Column(name = "received_account_id", length = 32)
private String receivedAccountId;
private String userName;
private Double gatheringAmount;
private Long orderNum;
private Double paidAmount;
private Double bounty;
private Long paidOrderNum;
private Double rebateAmount;
}
17
Source : TodayAccountReceiveOrderSituation.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "v_today_account_receive_order_situation")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced TodayAccountReceiveOrderSituation {
@Id
@Column(name = "received_account_id", length = 32)
private String receivedAccountId;
private String userName;
private Double gatheringAmount;
private Long orderNum;
private Double paidAmount;
private Double bounty;
private Long paidOrderNum;
private Double rebateAmount;
}
17
Source : MerchantTotalStatistical.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "v_merchant_total_statistical")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced MerchantTotalStatistical {
@Id
private String merchantId;
private Double tradeAmount;
private Long paidOrderNum;
private Long orderNum;
}
17
Source : MerchantMonthStatistical.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "v_merchant_month_statistical")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced MerchantMonthStatistical {
@Id
private String merchantId;
private Double tradeAmount;
private Long paidOrderNum;
private Long orderNum;
}
16
Source : TotalStatistical.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "v_total_statistical")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced TotalStatistical {
@Id
private Double tradeAmount;
private Long paidOrderNum;
private Long orderNum;
}
16
Source : TodayStatistical.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "v_today_statistical")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced TodayStatistical {
@Id
private Double tradeAmount;
private Long paidOrderNum;
private Long orderNum;
}
16
Source : MonthStatistical.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "v_month_statistical")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced MonthStatistical {
@Id
private Double tradeAmount;
private Long paidOrderNum;
private Long orderNum;
}
16
Source : MerchantTodayStatistical.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "v_merchant_today_statistical")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced MerchantTodayStatistical {
@Id
private String merchantId;
private Double tradeAmount;
private Long paidOrderNum;
private Long orderNum;
}
15
Source : Storage.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 对象存储
*
* @author zohar
* @date 2019年4月10日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "storage")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced Storage {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 文件名
*/
private String fileName;
/**
* 文件类型
*/
private String fileType;
/**
* 文件大小
*/
private Long fileSize;
private String url;
private Date uploadTime;
/**
* 关联的业务
*/
private String replacedociateBiz;
/**
* 关联id
*/
private String replacedociateId;
/**
* 乐观锁版本号
*/
@Version
private Long version;
}
15
Source : MerchantEverydayStatistical.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "v_merchant_everyday_statistical")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced MerchantEverydayStatistical {
@Id
private String id;
private String merchantId;
private Date everyday;
private Double tradeAmount;
private Long paidOrderNum;
private Long orderNum;
}
15
Source : ConfigItem.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 配置项
*
* @author zohar
* @date 2019年1月21日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "config_item")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced ConfigItem {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 配置项code
*/
private String configCode;
/**
* 配置项名称
*/
private String configName;
/**
* 配置项值
*/
private String configValue;
/**
* 乐观锁版本号
*/
@Version
private Long version;
}
15
Source : RebateSituation.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "v_rebate_situation")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced RebateSituation implements Serializable {
/**
*/
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@Id
private Double id;
/**
* 返点
*/
private Double rebate;
/**
* 关联账号数量
*/
private Integer replacedociatedAccountNum;
private Date createTime;
}
14
Source : LoginLog.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "login_log")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced LoginLog {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 登录系统
*/
private String system;
/**
* 登录状态
*/
private String state;
/**
* ip地址
*/
private String ipAddr;
/**
* 登录地点
*/
private String loginLocation;
/**
* 登录时间
*/
private Date loginTime;
/**
* 浏览器
*/
private String browser;
/**
* 操作系统
*/
private String os;
private String msg;
/**
* 用户名
*/
private String userName;
/**
* 乐观锁版本号
*/
@Version
private Long version;
}
14
Source : RechargeWithdrawLog.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 充值提现日志
*
* @author zohar
* @date 2019年1月19日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "v_recharge_withdraw_log", schema = "lottery")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced RechargeWithdrawLog {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 订单类型:充值,提现
*/
private String orderType;
/**
* 金额
*/
private Double amount;
/**
* 订单号
*/
private String orderNo;
/**
* 提交时间
*/
private Date submitTime;
/**
* 订单状态
*/
private String orderState;
/**
* 备注
*/
private String note;
/**
* 用户账号id
*/
@Column(name = "user_account_id", length = 32)
private String userAccountId;
}
14
Source : PayType.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "pay_type")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced PayType {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
private String type;
private String name;
private Boolean bankCardFlag;
/**
* 排序号
*/
private Double orderNo;
/**
* 是否启用
*/
private Boolean enabled;
private Date createTime;
/**
* 乐观锁版本号
*/
@Version
private Long version;
}
14
Source : ReceiveOrderSetting.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Enreplacedy
@Table(name = "receive_order_setting")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced ReceiveOrderSetting {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 接单有效时长
*/
private Integer receiveOrderEffectiveDuration;
/**
* 支付有效时长
*/
private Integer orderPayEffectiveDuration;
/**
* 接单数量上限
*/
private Integer receiveOrderUpperLimit;
/**
* 保证金最低要求
*/
private Double cashDepositMinimumRequire;
private Boolean unfixedGatheringCodeReceiveOrder;
/**
* 最近修改时间
*/
private Date latelyUpdateTime;
public static ReceiveOrderSetting build() {
ReceiveOrderSetting setting = new ReceiveOrderSetting();
setting.setId(IdUtils.getId());
return setting;
}
}
14
Source : Rebate.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 返点
*
* @author zohar
* @date 2019年6月2日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "rebate")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced Rebate {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 返点
*/
private Double rebate;
/**
* 创建时间
*/
private Date createTime;
/**
* 乐观锁版本号
*/
@Version
private Long version;
}
13
Source : SystemSetting.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Enreplacedy
@Table(name = "system_setting")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced SystemSetting {
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 网站标题
*/
private String websitereplacedle;
/**
* 最近修改时间
*/
private Date latelyUpdateTime;
public static SystemSetting build() {
SystemSetting setting = new SystemSetting();
setting.setId(IdUtils.getId());
return setting;
}
}
13
Source : RegisterSetting.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 注册设置
*
* @author zohar
* @date 2019年3月12日
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Enreplacedy
@Table(name = "register_setting")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced RegisterSetting {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 是否开放注册功能
*/
private Boolean registerEnabled;
/**
* 注册默认返点
*/
private Double regitserDefaultRebate;
/**
* 邀请码有效时长
*/
private Integer inviteCodeEffectiveDuration;
/**
* 邀请码注册模式启用标识
*/
private Boolean inviteRegisterEnabled;
/**
* 最近修改时间
*/
private Date latelyUpdateTime;
public static RegisterSetting build() {
RegisterSetting setting = new RegisterSetting();
setting.setId(IdUtils.getId());
return setting;
}
}
13
Source : RechargeSetting.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 充值设置
*
* @author zohar
* @date 2019年3月13日
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Enreplacedy
@Table(name = "recharge_setting")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced RechargeSetting {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 订单有效时长
*/
private Integer orderEffectiveDuration;
/**
* 充值返水率
*/
private Double returnWaterRate;
/**
* 充值返水率启用标识
*/
private Boolean returnWaterRateEnabled;
/**
* 快捷设置金额
*/
private String quickInputAmount;
/**
* 充值说明
*/
private String rechargeExplain;
/**
* 最近修改时间
*/
private Date latelyUpdateTime;
public void update(Integer orderEffectiveDuration, Double returnWaterRate, Boolean returnWaterRateEnabled) {
this.setOrderEffectiveDuration(orderEffectiveDuration);
this.setReturnWaterRate(returnWaterRate);
this.setReturnWaterRateEnabled(returnWaterRateEnabled);
this.setLatelyUpdateTime(new Date());
}
public static RechargeSetting build() {
RechargeSetting setting = new RechargeSetting();
setting.setId(IdUtils.getId());
return setting;
}
}
13
Source : CustomerQrcodeSetting.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Enreplacedy
@Table(name = "customer_qrcode_setting")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced CustomerQrcodeSetting {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
private String qrcodeStorageIds;
/**
* 最近修改时间
*/
private Date latelyUpdateTime;
public void update(String qrcodeStorageIds) {
this.setQrcodeStorageIds(qrcodeStorageIds);
this.setLatelyUpdateTime(new Date());
}
public static CustomerQrcodeSetting build() {
CustomerQrcodeSetting setting = new CustomerQrcodeSetting();
setting.setId(IdUtils.getId());
return setting;
}
}
13
Source : DictItem.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 字典项
*
* @author zohar
* @date 2019年1月19日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "dict_item")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced Dicreplacedem {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 字典项code
*/
private String dicreplacedemCode;
/**
* 字典项名称
*/
private String dicreplacedemName;
/**
* 排序号
*/
private Double orderNo;
/**
* 乐观锁版本号
*/
@Version
private Long version;
/**
* 所属字典类型id
*/
@Column(name = "dict_type_id", length = 32)
private String dictTypeId;
/**
* 所属字典类型
*/
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "dict_type_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private DictType dictType;
}
10
Source : MerchantOrderPayInfo.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "merchant_order_pay_info")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced MerchantOrderPayInfo {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 商户号
*/
private String merchantNum;
/**
* 商户自定义的订单号
*/
private String orderNo;
/**
* 支付金额
*/
private Double amount;
/**
* 支付类型
*/
private String payType;
/**
* 异步通知地址
*/
private String notifyUrl;
/**
* 同步通知地址
*/
private String returnUrl;
/**
* 商户自定义的附加信息
*/
private String attch;
/**
* 签名
*/
private String sign;
/**
* 通知状态
*/
private String noticeState;
/**
* 通知时间
*/
private Date noticeTime;
@Column(name = "merchant_order_id", length = 32)
private String merchantOrderId;
@NotFound(action = NotFoundAction.IGNORE)
@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "merchant_order_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private MerchantOrder merchantOrder;
public void updateNoticeState(String noticeState) {
this.setNoticeState(noticeState);
this.setNoticeTime(new Date());
}
}
9
Source : Appeal.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "appeal")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced Appeal {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 发起方
*/
private String initiatorObj;
/**
* 申诉类型
*/
private String appealType;
/**
* 处理方式
*/
private String processWay;
/**
* 实际支付金额
*/
private Double actualPayAmount;
private String userSreenshotIds;
private String merchantSreenshotIds;
/**
* 客户订单id
*/
@Column(name = "merchant_order_id", length = 32)
private String merchantOrderId;
private String state;
/**
* 发起时间
*/
private Date initiationTime;
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "merchant_order_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private MerchantOrder merchantOrder;
public void dontProcess() {
this.setState(Constant.申诉状态_已完结);
this.setProcessWay(Constant.申诉处理方式_不做处理);
}
public void userCancelAppeal() {
this.setState(Constant.申诉状态_已完结);
this.setProcessWay(Constant.申诉处理方式_用户撤销申诉);
}
public void merchantCancelAppeal() {
this.setState(Constant.申诉状态_已完结);
this.setProcessWay(Constant.申诉处理方式_商户撤销申诉);
}
public void alterToActualPayAmount() {
this.setState(Constant.申诉状态_已完结);
this.setProcessWay(Constant.申诉处理方式_改为实际支付金额);
}
public void cancelOrder() {
this.setState(Constant.申诉状态_已完结);
this.setProcessWay(Constant.申诉处理方式_取消订单);
}
public void confirmToPaid() {
this.setState(Constant.申诉状态_已完结);
this.setProcessWay(Constant.申诉处理方式_确认已支付);
}
}
8
Source : AccountChangeLog.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 账变日志
*
* @author zohar
* @date 2019年1月17日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "account_change_log", schema = "lottery")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced AccountChangeLog {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 订单号
*/
private String orderNo;
/**
* 账变时间
*/
private Date accountChangeTime;
/**
* 账变类型代码
*/
private String accountChangeTypeCode;
/**
* 账变金额
*/
private Double accountChangeAmount;
/**
* 保证金
*/
private Double cashDeposit;
/**
* 备注
*/
private String note;
/**
* 乐观锁版本号
*/
@Version
private Long version;
/**
* 用户账号id
*/
@Column(name = "user_account_id", length = 32)
private String userAccountId;
/**
* 用户账号
*/
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "user_account_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private UserAccount userAccount;
public static AccountChangeLog buildWithCustomerCancelOrderRefund(UserAccount userAccount, MerchantOrder platformOrder) {
AccountChangeLog log = new AccountChangeLog();
log.setId(IdUtils.getId());
log.setOrderNo(platformOrder.getOrderNo());
log.setAccountChangeTime(new Date());
log.setAccountChangeTypeCode(Constant.账变日志类型_客服取消订单并退款);
log.setAccountChangeAmount(NumberUtil.round(platformOrder.getGatheringAmount(), 4).doubleValue());
log.setCashDeposit(userAccount.getCashDeposit());
log.setUserAccountId(userAccount.getId());
return log;
}
public static AccountChangeLog buildWithAlterToActualPayAmountRefund(UserAccount userAccount, String orderNo, Double refundAmount) {
AccountChangeLog log = new AccountChangeLog();
log.setId(IdUtils.getId());
log.setOrderNo(orderNo);
log.setAccountChangeTime(new Date());
log.setAccountChangeTypeCode(Constant.账变日志类型_改单为实际支付金额并退款);
log.setAccountChangeAmount(NumberUtil.round(refundAmount, 4).doubleValue());
log.setCashDeposit(userAccount.getCashDeposit());
log.setUserAccountId(userAccount.getId());
return log;
}
/**
* 构建充值账变日志
*
* @param userAccount
* @param bettingOrder
* @return
*/
public static AccountChangeLog buildWithRecharge(UserAccount userAccount, RechargeOrder rechargeOrder) {
AccountChangeLog log = new AccountChangeLog();
log.setId(IdUtils.getId());
log.setOrderNo(rechargeOrder.getOrderNo());
log.setAccountChangeTime(rechargeOrder.getSettlementTime());
log.setAccountChangeTypeCode(Constant.账变日志类型_账号充值);
log.setAccountChangeAmount(NumberUtil.round(rechargeOrder.getActualPayAmount(), 4).doubleValue());
log.setCashDeposit(userAccount.getCashDeposit());
log.setUserAccountId(userAccount.getId());
return log;
}
/**
* 构建接单奖励金账变日志
*
* @param userAccount
* @param bounty
* @param rebate
* @return
*/
public static AccountChangeLog buildWithReceiveOrderBounty(UserAccount userAccount, Double bounty, Double rebate) {
AccountChangeLog log = new AccountChangeLog();
log.setId(IdUtils.getId());
log.setOrderNo(log.getId());
log.setAccountChangeTime(new Date());
log.setAccountChangeTypeCode(Constant.账变日志类型_接单奖励金);
log.setAccountChangeAmount(NumberUtil.round(bounty, 4).doubleValue());
log.setNote(MessageFormat.format("接单返点:{0}%", rebate));
log.setCashDeposit(userAccount.getCashDeposit());
log.setUserAccountId(userAccount.getId());
return log;
}
/**
* 构建充值优惠账变日志
*
* @param userAccount
* @param returnWater
* @param returnWaterRate
* @return
*/
public static AccountChangeLog buildWithRechargePreferential(UserAccount userAccount, Double returnWater, Double returnWaterRate) {
AccountChangeLog log = new AccountChangeLog();
log.setId(IdUtils.getId());
log.setOrderNo(log.getId());
log.setAccountChangeTime(new Date());
log.setAccountChangeTypeCode(Constant.账变日志类型_充值优惠);
log.setAccountChangeAmount(NumberUtil.round(returnWater, 4).doubleValue());
log.setNote(MessageFormat.format("充值返水率:{0}%", returnWaterRate));
log.setCashDeposit(userAccount.getCashDeposit());
log.setUserAccountId(userAccount.getId());
return log;
}
/**
* 构建接单扣款日志
*
* @param userAccount
* @param platformOrder
* @return
*/
public static AccountChangeLog buildWithReceiveOrderDeduction(UserAccount userAccount, MerchantOrder platformOrder) {
AccountChangeLog log = new AccountChangeLog();
log.setId(IdUtils.getId());
log.setOrderNo(platformOrder.getOrderNo());
log.setAccountChangeTime(platformOrder.getReceivedTime());
log.setAccountChangeTypeCode(Constant.账变日志类型_接单扣款);
log.setAccountChangeAmount(-platformOrder.getGatheringAmount());
log.setCashDeposit(userAccount.getCashDeposit());
log.setUserAccountId(userAccount.getId());
return log;
}
/**
* 构建发起提现账变日志
*
* @param userAccount
* @param bettingOrder
* @return
*/
public static AccountChangeLog buildWithStartWithdraw(UserAccount userAccount, WithdrawRecord withdrawRecord) {
AccountChangeLog log = new AccountChangeLog();
log.setId(IdUtils.getId());
log.setOrderNo(withdrawRecord.getOrderNo());
log.setAccountChangeTime(withdrawRecord.getSubmitTime());
log.setAccountChangeTypeCode(Constant.账变日志类型_账号提现);
log.setAccountChangeAmount(-withdrawRecord.getWithdrawAmount());
log.setCashDeposit(userAccount.getCashDeposit());
log.setUserAccountId(userAccount.getId());
return log;
}
/**
* 构建提现不符退款账变日志
*
* @param userAccount
* @param bettingOrder
* @return
*/
public static AccountChangeLog buildWithWithdrawNotApprovedRefund(UserAccount userAccount, WithdrawRecord withdrawRecord) {
AccountChangeLog log = new AccountChangeLog();
log.setId(IdUtils.getId());
log.setOrderNo(withdrawRecord.getOrderNo());
log.setAccountChangeTime(withdrawRecord.getApprovalTime());
log.setAccountChangeTypeCode(Constant.账变日志类型_提现不符退款);
log.setAccountChangeAmount(withdrawRecord.getWithdrawAmount());
log.setCashDeposit(userAccount.getCashDeposit());
log.setUserAccountId(userAccount.getId());
return log;
}
/**
* 构建退还保证金账变日志
*
* @param userAccount
* @param withdrawRecord
* @return
*/
public static AccountChangeLog buildWithRefundCashDeposit(UserAccount userAccount, MerchantOrder merchantOrder) {
AccountChangeLog log = new AccountChangeLog();
log.setId(IdUtils.getId());
log.setOrderNo(merchantOrder.getOrderNo());
log.setAccountChangeTime(merchantOrder.getDealTime());
log.setAccountChangeTypeCode(Constant.账变日志类型_退还保证金);
log.setAccountChangeAmount(NumberUtil.round(merchantOrder.getGatheringAmount(), 4).doubleValue());
log.setCashDeposit(userAccount.getCashDeposit());
log.setUserAccountId(userAccount.getId());
return log;
}
/**
* 构建手工调整保证金日志
*
* @param userAccount
* @param platformOrder
* @return
*/
public static AccountChangeLog buildWithHandworkAdjustCashDeposit(UserAccount userAccount, Double accountChangeAmount) {
AccountChangeLog log = new AccountChangeLog();
log.setId(IdUtils.getId());
log.setAccountChangeTime(new Date());
log.setAccountChangeTypeCode(accountChangeAmount > 0 ? Constant.账变日志类型_手工增保证金 : Constant.账变日志类型_手工减保证金);
log.setAccountChangeAmount(accountChangeAmount);
log.setCashDeposit(userAccount.getCashDeposit());
log.setUserAccountId(userAccount.getId());
return log;
}
/**
* 构建订单返点账变日志
*
* @param userAccount
* @param orderRebate
* @return
*/
public static AccountChangeLog buildWithOrderRebate(UserAccount userAccount, OrderRebate orderRebate) {
AccountChangeLog log = new AccountChangeLog();
log.setId(IdUtils.getId());
log.setOrderNo(orderRebate.getId());
log.setAccountChangeTime(new Date());
log.setAccountChangeTypeCode(Constant.账变日志类型_奖励金返点);
log.setAccountChangeAmount(NumberUtil.round(orderRebate.getRebateAmount(), 4).doubleValue());
log.setCashDeposit(userAccount.getCashDeposit());
log.setUserAccountId(userAccount.getId());
return log;
}
}
8
Source : WithdrawRecord.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 提现记录
*
* @author zohar
* @date 2019年2月23日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "withdraw_record", schema = "lottery")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced WithdrawRecord {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 订单号
*/
private String orderNo;
/**
* 提现金额
*/
private Double withdrawAmount;
/**
* 开户银行
*/
private String openAccountBank;
/**
* 开户人姓名
*/
private String accountHolder;
/**
* 银行卡账号
*/
private String bankCardAccount;
/**
* 提交时间
*/
private Date submitTime;
/**
* 状态
*/
private String state;
/**
* 备注
*/
private String note;
/**
* 审核时间
*/
private Date approvalTime;
/**
* 确认到帐时间
*/
private Date confirmCreditedTime;
/**
* 用户账号id
*/
@Column(name = "user_account_id", length = 32)
private String userAccountId;
/**
* 用户账号
*/
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "user_account_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private UserAccount userAccount;
/**
* 设置银行卡信息
*/
public void setBankInfo(UserAccount userAccount) {
this.setOpenAccountBank(userAccount.getOpenAccountBank());
this.setAccountHolder(userAccount.getAccountHolder());
this.setBankCardAccount(userAccount.getBankCardAccount());
}
public void approved(String note) {
this.setState(Constant.提现记录状态_审核通过);
this.setApprovalTime(new Date());
this.setNote(note);
}
public void notApproved(String note) {
this.setState(Constant.提现记录状态_审核不通过);
this.setApprovalTime(new Date());
this.setNote(note);
}
public void confirmCredited() {
this.setState(Constant.提现记录状态_已到账);
this.setConfirmCreditedTime(new Date());
}
}
8
Source : DictType.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 字典类型
*
* @author zohar
* @date 2019年1月19日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "dict_type")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced DictType {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 字典类型code
*/
private String dictTypeCode;
/**
* 字典类型名称
*/
private String dictTypeName;
/**
* 备注
*/
private String note;
/**
* 乐观锁版本号
*/
@Version
private Long version;
@OneToMany(fetch = FetchType.LAZY)
@JoinColumn(name = "dict_type_id", foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
@OrderBy("orderNo ASC")
private Set<Dicreplacedem> dicreplacedems;
}
8
Source : InviteCode.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 邀请码
*
* @author zohar
* @date 2019年2月27日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "invite_code")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced InviteCode {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 邀请码
*/
private String code;
/**
* 账号类型
*/
private String accountType;
/**
* 返点
*/
private Double rebate;
/**
* 创建时间
*/
private Date createTime;
/**
* 有效期
*/
private Date periodOfValidity;
/**
* 邀请人id
*/
@Column(name = "inviter_id", length = 32)
private String inviterId;
/**
* 邀请人
*/
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "inviter_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private UserAccount inviter;
}
7
Source : UserAccount.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 用户账号
*
* @author zohar
* @date 2018年12月26日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "user_account", schema = "lottery")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced UserAccount {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 用户名
*/
private String userName;
/**
* 真实姓名
*/
private String realName;
/**
* 账号类型
*/
private String accountType;
/**
* 账号级别
*/
private Integer accountLevel;
/**
* 账号级别路径
*/
private String accountLevelPath;
/**
* 返点
*/
private Double rebate;
/**
* 登录密码
*/
private String loginPwd;
/**
* 资金密码
*/
private String moneyPwd;
/**
* 保证金
*/
private Double cashDeposit;
/**
* 状态
*/
private String state;
/**
* 注册时间
*/
private Date registeredTime;
/**
* 最近登录时间
*/
private Date latelyLoginTime;
/**
* 开户银行
*/
private String openAccountBank;
/**
* 开户人姓名
*/
private String accountHolder;
/**
* 银行卡账号
*/
private String bankCardAccount;
/**
* 银行资料最近修改时间
*/
private Date bankInfoLatelyModifyTime;
/**
* 接单状态
*/
private String receiveOrderState;
/**
* 邀请人id
*/
@Column(name = "inviter_id", length = 32)
private String inviterId;
/**
* 邀请人
*/
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "inviter_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private UserAccount inviter;
/**
* 乐观锁版本号
*/
@Version
private Long version;
public void updateInviteInfo(InviteCode inviteCode) {
this.setInviterId(inviteCode.getInviterId());
this.setAccountLevel(inviteCode.getInviter().getAccountLevel() + 1);
this.setAccountLevelPath(inviteCode.getInviter().getAccountLevelPath() + "." + this.getId());
this.setAccountType(inviteCode.getAccountType());
this.setRebate(inviteCode.getRebate());
}
}
7
Source : PayChannel.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "pay_channel")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced PayChannel {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
private String channelCode;
private String channelName;
private String bankName;
/**
* 开户人姓名
*/
private String accountHolder;
/**
* 银行卡账号
*/
private String bankCardAccount;
/**
* 支付平台code
*/
private String payPlatformCode;
/**
* 支付平台名称
*/
private String payPlatformName;
/**
* 支付平台对应通道code
*/
private String payPlatformChannelCode;
private Date createTime;
private Double orderNo;
/**
* 是否启用
*/
private Boolean enabled;
/**
* 乐观锁版本号
*/
@Version
private Long version;
@Column(name = "pay_type_id", length = 32)
private String payTypeId;
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "pay_type_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private PayType payType;
}
7
Source : Merchant.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 商户
* @author zohar
* @date 2019年4月19日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "merchant")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced Merchant {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 商户号
*/
private String merchantNum;
/**
* 接入商户名称
*/
private String name;
/**
* 密钥
*/
private String secretKey;
private Date createTime;
/**
* 关联账号id
*/
@Column(name = "relevance_account_id", length = 32)
private String relevanceAccountId;
/**
* 乐观锁版本号
*/
@Version
private Long version;
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "relevance_account_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private UserAccount relevanceAccount;
}
6
Source : SysUserRoleR.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "sys_user_role_r", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced SysUserRoleR implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public SysUserRoleR() {
}
// Fields
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENreplacedY)
@Column(name = "ur_id", unique = true, nullable = false)
private Integer urId;
public Integer getUrId() {
return this.urId;
}
public void setUrId(Integer urId) {
this.urId = urId;
}
// 用户名
@Column(name = "username", unique = false, nullable = false, length = 30)
private String username;
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
// 角色编码
@Column(name = "role_code", unique = false, nullable = false, length = 20)
private String roleCode;
public String getRoleCode() {
return this.roleCode;
}
public void setRoleCode(String roleCode) {
this.roleCode = roleCode;
}
//
@Column(name = "created_date", unique = false, nullable = false)
private Date createdDate;
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
//
@Column(name = "created_by", unique = false, nullable = false, length = 30)
private String createdBy;
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
//
@Column(name = "last_updated_date", unique = false, nullable = true)
private Date lastUpdatedDate;
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
//
@Column(name = "last_updated_by", unique = false, nullable = true, length = 30)
private String lastUpdatedBy;
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
// 组织机构
@Column(name = "org_code", unique = false, nullable = false, length = 10)
private String orgCode;
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
6
Source : SysRoleAuthR.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "sys_role_auth_r", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced SysRoleAuthR implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public SysRoleAuthR() {
}
// Fields
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENreplacedY)
@Column(name = "ra_id", unique = true, nullable = false)
private Integer raId;
public Integer getRaId() {
return this.raId;
}
public void setRaId(Integer raId) {
this.raId = raId;
}
// 角色编码
@Column(name = "role_code", unique = false, nullable = false, length = 20)
private String roleCode;
public String getRoleCode() {
return this.roleCode;
}
public void setRoleCode(String roleCode) {
this.roleCode = roleCode;
}
// 权限编码
@Column(name = "auth_code", unique = false, nullable = false, length = 20)
private String authCode;
public String getAuthCode() {
return this.authCode;
}
public void setAuthCode(String authCode) {
this.authCode = authCode;
}
//
@Column(name = "created_date", unique = false, nullable = false)
private Date createdDate;
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
//
@Column(name = "created_by", unique = false, nullable = false, length = 30)
private String createdBy;
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
//
@Column(name = "last_updated_date", unique = false, nullable = true)
private Date lastUpdatedDate;
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
//
@Column(name = "last_updated_by", unique = false, nullable = true, length = 30)
private String lastUpdatedBy;
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
// 组织机构
@Column(name = "org_code", unique = false, nullable = false, length = 10)
private String orgCode;
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
6
Source : HrStaffDepartmentR.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "hr_staff_department_r", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced HrStaffDepartmentR implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public HrStaffDepartmentR() {
}
// Fields
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENreplacedY)
@Column(name = "sd_id", unique = true, nullable = false)
private Integer sdId;
public Integer getSdId() {
return this.sdId;
}
public void setSdId(Integer sdId) {
this.sdId = sdId;
}
// 职员编码
@Column(name = "staff_code", unique = false, nullable = false, length = 45)
private String staffCode;
public String getStaffCode() {
return this.staffCode;
}
public void setStaffCode(String staffCode) {
this.staffCode = staffCode;
}
// 部门编码
@Column(name = "department_code", unique = false, nullable = false, length = 45)
private String departmentCode;
public String getDepartmentCode() {
return this.departmentCode;
}
public void setDepartmentCode(String departmentCode) {
this.departmentCode = departmentCode;
}
// 岗位编码
@Column(name = "position_code", unique = false, nullable = false, length = 45)
private String positionCode;
public String getPositionCode() {
return this.positionCode;
}
public void setPositionCode(String positionCode) {
this.positionCode = positionCode;
}
// 状态
@Column(name = "status", unique = false, nullable = false, length = 1)
private String status;
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
// 创建时间
@Column(name = "created_date", unique = false, nullable = false)
private Date createdDate;
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
// 创建人
@Column(name = "created_by", unique = false, nullable = false, length = 45)
private String createdBy;
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
// 最后修改时间
@Column(name = "last_updated_date", unique = false, nullable = true)
private Date lastUpdatedDate;
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
// 最后修改人
@Column(name = "last_updated_by", unique = false, nullable = true, length = 45)
private String lastUpdatedBy;
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
// 组织机构
@Column(name = "org_code", unique = false, nullable = false, length = 10)
private String orgCode;
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
6
Source : GatheringCode.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
@Getter
@Setter
@Enreplacedy
@Table(name = "gathering_code")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced GatheringCode {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 收款渠道
*/
private String gatheringChannelCode;
/**
* 状态,启用:1;禁用:0
*/
private String state;
private Boolean fixedGatheringAmount;
/**
* 收款金额
*/
private Double gatheringAmount;
/**
* 收款人
*/
private String payee;
/**
* 创建时间
*/
private Date createTime;
@Column(name = "storage_id", length = 32)
private String storageId;
/**
* 用户账号id
*/
@Column(name = "user_account_id", length = 32)
private String userAccountId;
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "user_account_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private UserAccount userAccount;
}
5
Source : MdCustomerContact.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "md_customer_contact", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced MdCustomerContact implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public MdCustomerContact() {
}
// Fields
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENreplacedY)
@Column(name = "contact_id", unique = true, nullable = false)
private Integer contactId;
public Integer getContactId() {
return this.contactId;
}
public void setContactId(Integer contactId) {
this.contactId = contactId;
}
// 客户编码
@Column(name = "customer_code", unique = false, nullable = false, length = 45)
private String customerCode;
public String getCustomerCode() {
return this.customerCode;
}
public void setCustomerCode(String customerCode) {
this.customerCode = customerCode;
}
// 联系人
@NotBlank(message = "客户联系人必填")
@Column(name = "contact_name", unique = false, nullable = false, length = 45)
private String contactName;
public String getContactName() {
return this.contactName;
}
public void setContactName(String contactName) {
this.contactName = contactName;
}
// 联系电话
@NotBlank(message = "联系人电话必填")
@Column(name = "contact_telephone", unique = false, nullable = false, length = 45)
private String contactTelephone;
public String getContactTelephone() {
return this.contactTelephone;
}
public void setContactTelephone(String contactTelephone) {
this.contactTelephone = contactTelephone;
}
// 联系人职位
@Column(name = "contact_position", unique = false, nullable = true, length = 45)
private String contactPosition;
public String getContactPosition() {
return this.contactPosition;
}
public void setContactPosition(String contactPosition) {
this.contactPosition = contactPosition;
}
// 状态
@Column(name = "status", unique = false, nullable = false, length = 1)
private String status;
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
// 创建时间
@Column(name = "created_date", unique = false, nullable = false)
private Date createdDate;
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
// 创建人
@Column(name = "created_by", unique = false, nullable = false, length = 45)
private String createdBy;
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
// 最后修改时间
@Column(name = "last_updated_date", unique = false, nullable = true)
private Date lastUpdatedDate;
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
// 最后修改人
@Column(name = "last_updated_by", unique = false, nullable = true, length = 45)
private String lastUpdatedBy;
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
// 组织机构
@Column(name = "org_code", unique = false, nullable = false, length = 10)
private String orgCode;
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
5
Source : HrPosition.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "hr_position", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced HrPosition implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public HrPosition() {
}
// Fields
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENreplacedY)
@Column(name = "position_id", unique = true, nullable = false)
private Integer positionId;
public Integer getPositionId() {
return this.positionId;
}
public void setPositionId(Integer positionId) {
this.positionId = positionId;
}
// 岗位编码
@NotBlank(message = "{code.NotBlank}")
@Column(name = "position_code", unique = true, nullable = false, length = 45)
private String positionCode;
public String getPositionCode() {
return this.positionCode;
}
public void setPositionCode(String positionCode) {
this.positionCode = positionCode;
}
// 岗位名称
@NotBlank(message = "{name.NotBlank}")
@Column(name = "position_name", unique = true, nullable = false, length = 45)
private String positionName;
public String getPositionName() {
return this.positionName;
}
public void setPositionName(String positionName) {
this.positionName = positionName;
}
// 岗位类型(经理MANAGER、职员EMPLOYEE)
@NotBlank(message = "岗位类型不能为空")
@Column(name = "position_type", unique = false, nullable = false, length = 45)
private String positionType;
public String getPositionType() {
return positionType;
}
public void setPositionType(String positionType) {
this.positionType = positionType;
}
// 状态
@Column(name = "status", unique = false, nullable = false, length = 1)
private String status;
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
// 创建时间
@Column(name = "created_date", unique = false, nullable = false)
private Date createdDate;
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
// 创建人
@Column(name = "created_by", unique = false, nullable = false, length = 45)
private String createdBy;
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
// 最后修改时间
@Column(name = "last_updated_date", unique = false, nullable = true)
private Date lastUpdatedDate;
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
// 最后修改人
@Column(name = "last_updated_by", unique = false, nullable = true, length = 45)
private String lastUpdatedBy;
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
// 组织机构
@Column(name = "org_code", unique = false, nullable = false, length = 10)
private String orgCode;
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
5
Source : FinVoucherBillR.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "fin_voucher_bill_r", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced FinVoucherBillR implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public FinVoucherBillR() {
}
// Fields
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENreplacedY)
@Column(name = "vb_id", unique = true, nullable = false)
private Integer vbId;
public Integer getVbId() {
return this.vbId;
}
public void setVbId(Integer vbId) {
this.vbId = vbId;
}
// 凭证头编码
@NotBlank(message = "凭证头编码不能为空")
@Column(name = "voucher_head_code", unique = false, nullable = false, length = 45)
private String voucherHeadCode;
public String getVoucherHeadCode() {
return this.voucherHeadCode;
}
public void setVoucherHeadCode(String voucherHeadCode) {
this.voucherHeadCode = voucherHeadCode;
}
// 单据类型(PAY,RECEIPT,INPUT,OUTPUT)
@NotBlank(message = "单据类型不能为空")
@Column(name = "bill_type", unique = false, nullable = false, length = 45)
private String billType;
public String getBillType() {
return this.billType;
}
public void setBillType(String billType) {
this.billType = billType;
}
// 单据头编码
@NotBlank(message = "单据头编码不能为空")
@Column(name = "bill_head_code", unique = true, nullable = false, length = 45)
private String billHeadCode;
public String getBillHeadCode() {
return this.billHeadCode;
}
public void setBillHeadCode(String billHeadCode) {
this.billHeadCode = billHeadCode;
}
// 创建时间
@Column(name = "created_date", unique = false, nullable = false)
private Date createdDate;
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
// 创建人
@Column(name = "created_by", unique = false, nullable = false, length = 45)
private String createdBy;
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
// 最后修改时间
@Column(name = "last_updated_date", unique = false, nullable = true)
private Date lastUpdatedDate;
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
// 最后修改人
@Column(name = "last_updated_by", unique = false, nullable = true, length = 45)
private String lastUpdatedBy;
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
// 组织机构
@Column(name = "org_code", unique = false, nullable = false, length = 10)
private String orgCode;
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
5
Source : FinVoucherBillR.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy(name = "finVoucherBillRCommon")
@Table(name = "fin_voucher_bill_r", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced FinVoucherBillR implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public FinVoucherBillR() {
}
// Fields
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENreplacedY)
@Column(name = "vb_id", unique = true, nullable = false)
private Integer vbId;
public Integer getVbId() {
return this.vbId;
}
public void setVbId(Integer vbId) {
this.vbId = vbId;
}
// 凭证头编码
@NotBlank(message = "凭证头编码不能为空")
@Column(name = "voucher_head_code", unique = false, nullable = false, length = 45)
private String voucherHeadCode;
public String getVoucherHeadCode() {
return this.voucherHeadCode;
}
public void setVoucherHeadCode(String voucherHeadCode) {
this.voucherHeadCode = voucherHeadCode;
}
// 单据类型(PAY,RECEIPT,INPUT,OUTPUT)
@NotBlank(message = "单据类型不能为空")
@Column(name = "bill_type", unique = false, nullable = false, length = 45)
private String billType;
public String getBillType() {
return this.billType;
}
public void setBillType(String billType) {
this.billType = billType;
}
// 单据头编码
@NotBlank(message = "单据头编码不能为空")
@Column(name = "bill_head_code", unique = true, nullable = false, length = 45)
private String billHeadCode;
public String getBillHeadCode() {
return this.billHeadCode;
}
public void setBillHeadCode(String billHeadCode) {
this.billHeadCode = billHeadCode;
}
// 创建时间
@Column(name = "created_date", unique = false, nullable = false)
private Date createdDate;
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
// 创建人
@Column(name = "created_by", unique = false, nullable = false, length = 45)
private String createdBy;
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
// 最后修改时间
@Column(name = "last_updated_date", unique = false, nullable = true)
private Date lastUpdatedDate;
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
// 最后修改人
@Column(name = "last_updated_by", unique = false, nullable = true, length = 45)
private String lastUpdatedBy;
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
// 组织机构
@Column(name = "org_code", unique = false, nullable = false, length = 10)
private String orgCode;
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
5
Source : OrderRebate.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 订单返点
*
* @author zohar
* @date 2019年6月24日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "order_rebate")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced OrderRebate {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 返点
*/
private Double rebate;
/**
* 返点金额
*/
private Double rebateAmount;
/**
* 结算时间,即更新到账号保证金的时间
*/
private Date settlementTime;
private Date createTime;
/**
* 乐观锁版本号
*/
@Version
private Long version;
/**
* 商户订单id
*/
@Column(name = "merchant_order_id", length = 32)
private String merchantOrderId;
/**
* 商户订单
*/
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "merchant_order_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private MerchantOrder merchantOrder;
/**
* 返点账号id
*/
@Column(name = "rebate_account_id", length = 32)
private String rebateAccountId;
/**
* 返点账号
*/
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "rebate_account_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private UserAccount rebateAccount;
public void settlement() {
this.setSettlementTime(new Date());
}
public static OrderRebate build(Double rebate, Double rebateAmount, String merchantOrderId, String rebateAccountId) {
OrderRebate orderRebate = new OrderRebate();
orderRebate.setId(IdUtils.getId());
orderRebate.setCreateTime(new Date());
orderRebate.setRebate(rebate);
orderRebate.setRebateAmount(rebateAmount);
orderRebate.setMerchantOrderId(merchantOrderId);
orderRebate.setRebateAccountId(rebateAccountId);
return orderRebate;
}
}
4
Source : SysRole.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "sys_role", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced SysRole implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public SysRole() {
}
// Fields
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENreplacedY)
@Column(name = "role_id", unique = true, nullable = false)
private Integer roleId;
public Integer getRoleId() {
return this.roleId;
}
public void setRoleId(Integer roleId) {
this.roleId = roleId;
}
// 角色编码
@NotBlank(message = "角色编码不能为空")
@Column(name = "role_code", unique = true, nullable = false, length = 20)
private String roleCode;
public String getRoleCode() {
return this.roleCode;
}
public void setRoleCode(String roleCode) {
this.roleCode = roleCode;
}
// 角色名称
@NotBlank(message = "角色名称不能为空")
@Column(name = "role_name", unique = true, nullable = false, length = 30)
private String roleName;
public String getRoleName() {
return this.roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
// 状态
@Column(name = "status", unique = false, nullable = false, length = 1)
private String status;
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
// 创建时间
@Column(name = "created_date", unique = false, nullable = false)
private Date createdDate;
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
// 创建人
@Column(name = "created_by", unique = false, nullable = false, length = 30)
private String createdBy;
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
// 最后修改时间
@Column(name = "last_updated_date", unique = false, nullable = true)
private Date lastUpdatedDate;
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
// 最后修改人
@Column(name = "last_updated_by", unique = false, nullable = true, length = 30)
private String lastUpdatedBy;
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
// 组织机构
@Column(name = "org_code", unique = false, nullable = false, length = 10)
private String orgCode;
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
4
Source : InvWarehouse.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "inv_warehouse", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced InvWarehouse implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public InvWarehouse() {
}
// Fields
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENreplacedY)
@Column(name = "warehouse_id", unique = true, nullable = false)
private Integer warehouseId;
public Integer getWarehouseId() {
return this.warehouseId;
}
public void setWarehouseId(Integer warehouseId) {
this.warehouseId = warehouseId;
}
// 仓库编码
@NotBlank(message = "{code.NotBlank}")
@Column(name = "warehouse_code", unique = true, nullable = false, length = 45)
private String warehouseCode;
public String getWarehouseCode() {
return this.warehouseCode;
}
public void setWarehouseCode(String warehouseCode) {
this.warehouseCode = warehouseCode;
}
// 仓库名称
@NotBlank(message = "{name.NotBlank}")
@Column(name = "warehouse_name", unique = true, nullable = false, length = 45)
private String warehouseName;
public String getWarehouseName() {
return this.warehouseName;
}
public void setWarehouseName(String warehouseName) {
this.warehouseName = warehouseName;
}
// 仓库地址
@NotBlank(message = "仓库地址不能为空")
@Column(name = "warehouse_address", unique = false, nullable = false, length = 45)
private String warehouseAddress;
public String getWarehouseAddress() {
return this.warehouseAddress;
}
public void setWarehouseAddress(String warehouseAddress) {
this.warehouseAddress = warehouseAddress;
}
// 备注
@Column(name = "memo", unique = false, nullable = true, length = 200)
private String memo;
public String getMemo() {
return this.memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
// 状态
@Column(name = "status", unique = false, nullable = false, length = 1)
private String status;
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
// 创建时间
@Column(name = "created_date", unique = false, nullable = false)
private Date createdDate;
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
// 创建人
@Column(name = "created_by", unique = false, nullable = false, length = 45)
private String createdBy;
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
// 最后修改时间
@Column(name = "last_updated_date", unique = false, nullable = true)
private Date lastUpdatedDate;
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
// 最后修改人
@Column(name = "last_updated_by", unique = false, nullable = true, length = 45)
private String lastUpdatedBy;
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
// 组织机构
@Column(name = "org_code", unique = false, nullable = false, length = 10)
private String orgCode;
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
4
Source : SysDatasetType.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "sys_dataset_type", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced SysDatasetType implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public SysDatasetType() {
}
// Fields
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENreplacedY)
@Column(name = "dataset_type_id", unique = true, nullable = false)
private Integer datasetTypeId;
public Integer getDatasetTypeId() {
return this.datasetTypeId;
}
public void setDatasetTypeId(Integer datasetTypeId) {
this.datasetTypeId = datasetTypeId;
}
// 值集类型编码
@NotBlank(message = "{code.NotBlank}")
@Column(name = "dataset_type_code", unique = true, nullable = false, length = 45)
private String datasetTypeCode;
public String getDatasetTypeCode() {
return this.datasetTypeCode;
}
public void setDatasetTypeCode(String datasetTypeCode) {
this.datasetTypeCode = datasetTypeCode;
}
// 值集类型名称
@NotBlank(message = "{name.NotBlank}")
@Column(name = "dataset_type_name", unique = true, nullable = false, length = 45)
private String datasetTypeName;
public String getDatasetTypeName() {
return this.datasetTypeName;
}
public void setDatasetTypeName(String datasetTypeName) {
this.datasetTypeName = datasetTypeName;
}
// 状态
@Column(name = "status", unique = false, nullable = false, length = 1)
private String status;
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
// 创建时间
@Column(name = "created_date", unique = false, nullable = false)
private Date createdDate;
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
// 创建人
@Column(name = "created_by", unique = false, nullable = false, length = 45)
private String createdBy;
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
// 最后修改时间
@Column(name = "last_updated_date", unique = false, nullable = true)
private Date lastUpdatedDate;
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
// 最后修改人
@Column(name = "last_updated_by", unique = false, nullable = true, length = 45)
private String lastUpdatedBy;
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
// 组织机构
@Column(name = "org_code", unique = false, nullable = false, length = 10)
private String orgCode;
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
4
Source : RechargeOrder.java
with Apache License 2.0
from bbhpgh
with Apache License 2.0
from bbhpgh
/**
* 充值订单
*
* @author zohar
* @date 2019年1月21日
*/
@Getter
@Setter
@Enreplacedy
@Table(name = "recharge_order")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced RechargeOrder {
/**
* 主键id
*/
@Id
@Column(name = "id", length = 32)
private String id;
/**
* 订单号
*/
private String orderNo;
/**
* 充值金额
*/
private Double rechargeAmount;
/**
* 实际支付金额
*/
private Double actualPayAmount;
/**
* 提交时间
*/
private Date submitTime;
/**
* 有效时间
*/
private Date usefulTime;
/**
* 订单状态
*/
private String orderState;
/**
* 备注
*/
private String note;
/**
* 支付地址
*/
private String payUrl;
/**
* 支付时间
*/
private Date payTime;
/**
* 处理时间
*/
private Date dealTime;
/**
* 结算时间,即更新到账号保证金的时间
*/
private Date settlementTime;
/**
* 存款时间
*/
private Date depositTime;
/**
* 存款人姓名
*/
private String depositor;
/**
* 乐观锁版本号
*/
@Version
private Long version;
/**
* 用户账号id
*/
@Column(name = "user_account_id", length = 32)
private String userAccountId;
/**
* 用户账号
*/
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "user_account_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private UserAccount userAccount;
/**
* 支付通道id
*/
@Column(name = "pay_channel_id", length = 32)
private String payChannelId;
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "pay_channel_id", updatable = false, insertable = false, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
private PayChannel payChannel;
/**
* 更新支付信息
*
* @param actualPayAmount
* @param payTime
*/
public void updatePayInfo(Double actualPayAmount, Date payTime) {
this.setActualPayAmount(actualPayAmount);
this.setPayTime(payTime);
this.setDealTime(new Date());
this.setOrderState(Constant.充值订单状态_已支付);
}
/**
* 订单结算
*/
public void settlement() {
this.setSettlementTime(new Date());
this.setOrderState(Constant.充值订单状态_已结算);
}
public void setPayChannelInfo(PayChannel payChannel) {
}
}
3
Source : SysAuth.java
with GNU General Public License v2.0
from redragon1985
with GNU General Public License v2.0
from redragon1985
@Enreplacedy
@Table(name = "sys_auth", schema = "erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public clreplaced SysAuth implements java.io.Serializable {
// serialVersionUID
private static final long serialVersionUID = 1L;
// Constructors
public SysAuth() {
}
// Fields
// 主键
@Id
@GeneratedValue(strategy = GenerationType.IDENreplacedY)
@Column(name = "auth_id", unique = true, nullable = false)
private Integer authId;
public Integer getAuthId() {
return this.authId;
}
public void setAuthId(Integer authId) {
this.authId = authId;
}
// 权限编码
@NotBlank(message = "权限编码不能为空")
@Column(name = "auth_code", unique = true, nullable = false, length = 20)
private String authCode;
public String getAuthCode() {
return this.authCode;
}
public void setAuthCode(String authCode) {
this.authCode = authCode;
}
// 权限名称
@NotBlank(message = "权限名称不能为空")
@Column(name = "auth_name", unique = true, nullable = false, length = 30)
private String authName;
public String getAuthName() {
return this.authName;
}
public void setAuthName(String authName) {
this.authName = authName;
}
// 权限类型
@NotBlank(message = "权限类型不能为空")
@Column(name = "auth_type", unique = false, nullable = false, length = 30)
private String authType;
public String getAuthType() {
return this.authType;
}
public void setAuthType(String authType) {
this.authType = authType;
}
// 状态
@Column(name = "status", unique = false, nullable = false, length = 1)
private String status;
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
// 创建时间
@Column(name = "created_date", unique = false, nullable = false)
private Date createdDate;
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
// 创建人
@Column(name = "created_by", unique = false, nullable = false, length = 30)
private String createdBy;
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
// 最后修改时间
@Column(name = "last_updated_date", unique = false, nullable = true)
private Date lastUpdatedDate;
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
// 最后修改人
@Column(name = "last_updated_by", unique = false, nullable = true, length = 30)
private String lastUpdatedBy;
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
// 组织机构
@Column(name = "org_code", unique = false, nullable = false, length = 10)
private String orgCode;
public String getOrgCode() {
return this.orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
}
See More Examples