xin
2025-07-02 7ffdcc19d603d132c159c9eac4a2a1b57ec82970
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.oying.modules.sh.domain;
 
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
 
/**
* @description /
* @author lixin
* @date 2025-06-11
**/
@Data
@TableName("sh_order_operation_log")
public class OrderOperationLog implements Serializable {
 
    @TableId(value = "log_id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long logId;
 
    @NotBlank
    @ApiModelProperty(value = "用户账号")
    private String username;
 
    @NotBlank
    @ApiModelProperty(value = "用户类型")
    private String userType;
 
    @NotNull
    @ApiModelProperty(value = "用户操作")
    private Integer operation = 0;
 
    @NotBlank
    @ApiModelProperty(value = "用户操作描述")
    private String operationDescribe = "提交订单";
 
    @NotBlank
    @ApiModelProperty(value = "备注")
    private String remark;
 
    @NotNull
    @ApiModelProperty(value = "操作时的订单快照")
    private String snapshotData;
 
    @NotNull
    @ApiModelProperty(value = "操作时间")
    private Timestamp operationTime;
 
    @NotNull
    @ApiModelProperty(value = "订单号")
    private String orderNum;
 
    public void copy(OrderOperationLog source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}