精简部分代码

This commit is contained in:
OPGame
2019-08-07 16:27:51 +08:00
parent e4f76ac69a
commit 77036a71ba
30 changed files with 16 additions and 1169 deletions

View File

@@ -1,65 +0,0 @@
/*
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
*
* https://www.gz-yami.com/
*
* 未经允许,不可做商业用途!
*
* 版权所有,侵权必究!
*/
package com.yami.shop.bean.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yami.shop.bean.vo.SysUserVO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
@Data
@TableName( "tz_points")
public class Points {
/**
* 积分id
*/
@TableId
private Long pointsId;
/**
* 店铺id
*/
private Long shopId;
/**
* 积分名称
*/
private String name;
/**
* 状态(0 禁用 1启用)
*/
private Integer state;
/**
* 更新时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime;
/**
* 操作人
*/
private Long modifier;
/**
* 关联操作人
*/
@TableField(exist = false)
private SysUserVO sysUser;
}

View File

@@ -1,77 +0,0 @@
/*
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
*
* https://www.gz-yami.com/
*
* 未经允许,不可做商业用途!
*
* 版权所有,侵权必究!
*/
package com.yami.shop.bean.model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
@Data
@TableName( "tz_points_change")
public class PointsChange {
/**
* 积分流动记录表
*/
private Long pointsChangeId;
/**
* 积分钱包id
*/
private Long pointsWalletId;
/**
* 增加或减少(增加 0 减少 1)
*/
private Integer addOrReduce;
/**
* 原因(订单,邀请,签到,兑换)
*/
private Integer reason;
/**
* 积分状态0:用户未收货待结算1:已结算 2:用户退货退单)
*/
private Integer state;
/**
* 积分数额
*/
private Double pointsNumber;
/**
* 关联订单id
*/
private Long orderId;
/**
* 商户订单id
*/
private Long merchantOrderId;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
}

View File

@@ -1,71 +0,0 @@
/*
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
*
* https://www.gz-yami.com/
*
* 未经允许,不可做商业用途!
*
* 版权所有,侵权必究!
*/
package com.yami.shop.bean.model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
@Data
@TableName( "tz_points_prod")
public class PointsProd {
/**
* 积分商品id
*/
private Long pointsProdId;
/**
* 所需积分id
*/
private Long pointsId;
/**
* 所需积分量
*/
private Double pointsNumber;
/**
* 所需金额
*/
private Double amount;
/**
* 关联商品id
*/
private Long prodId;
/**
* 库存
*/
private Integer stocks;
/**
* 状态(0下架 1上架)
*/
private Integer state;
/**
* 上架时间
*/
private Date upperShelfTime;
/**
* 下架时间
*/
private Date lowerShelf;
}

View File

@@ -1,57 +0,0 @@
/*
* Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
*
* https://www.gz-yami.com/
*
* 未经允许,不可做商业用途!
*
* 版权所有,侵权必究!
*/
package com.yami.shop.bean.model;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
@Data
@TableName( "tz_points_wallet")
public class PointsWallet {
/**
* 积分钱包id
*/
private Long pointsWalletId;
/**
* 积分Id
*/
private Long pointsId;
/**
* 用户id
*/
private Long userId;
/**
* 待结算积分
*/
private Double unsettled;
/**
* 已结算积分
*/
private Double settled;
/**
* 积累收益积分
*/
private Double addup;
/**
* 乐观锁
*/
@Version
private Integer version;
}