PosStoreOmg.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package com.ruoyi.system.domain;
  2. import com.baomidou.mybatisplus.annotation.FieldFill;
  3. import com.baomidou.mybatisplus.annotation.IdType;
  4. import com.baomidou.mybatisplus.annotation.TableField;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import com.baomidou.mybatisplus.annotation.TableName;
  7. import lombok.Data;
  8. import java.util.Date;
  9. /**
  10. * 门店 OMG(歐買尬/FunPoint) 支付凭证 pos_store_omg
  11. *
  12. * <p>与 pos_store 1:1,记录该门店的 OMG 申请状态、启用开关、金钥、启用支付方式。
  13. * 门店无此行即视为「未申请」(omg_status=0)。
  14. * 状态机:0 未申请 --apply--> 1 申请中 --saveCredentials(验证通过)--> 2 已开通 <--reset--> 1;
  15. * 2 已开通 下 toggleEnable 切换 is_enabled。
  16. *
  17. * @author ruoyi
  18. * @date 2026-07-29
  19. */
  20. @Data
  21. @TableName(value = "pos_store_omg")
  22. public class PosStoreOmg {
  23. private static final long serialVersionUID = 1L;
  24. /** 主键 */
  25. @TableId(type = IdType.AUTO)
  26. private Long id;
  27. /** 关联 pos_store.id(门店),唯一 */
  28. private Long storeId;
  29. /** 申请状态:0未申请/1申请中/2已开通 */
  30. private Integer omgStatus;
  31. /** 启用开关:0停用/1启用(仅 status=2 有意义) */
  32. private Integer isEnabled;
  33. /** OMG 商店代号 MerchantID */
  34. private String merchantId;
  35. /** OMG HashKey */
  36. private String hashKey;
  37. /** OMG HashIV */
  38. private String hashIv;
  39. /** 启用支付方式(本期固定 ALL,字段保留以备收敛) */
  40. private String enabledPayments;
  41. /** 提交申请时间(0→1) */
  42. private Date applyTime;
  43. /** 开通时间(→2) */
  44. private Date approvedTime;
  45. /** 最近一次凭证验证结果 */
  46. private String lastVerifyResult;
  47. /** 备注 */
  48. private String remark;
  49. /** 创建时间 */
  50. @TableField(fill = FieldFill.INSERT)
  51. private Date createTime;
  52. /** 更新时间 */
  53. @TableField(fill = FieldFill.INSERT_UPDATE)
  54. private Date updateTime;
  55. /** 创建人 */
  56. @TableField(fill = FieldFill.INSERT)
  57. private String createBy;
  58. /** 更新人 */
  59. @TableField(fill = FieldFill.INSERT_UPDATE)
  60. private String updateBy;
  61. }