zhangherong
2025-06-25 23855599412c4d61b38d78f0f3abd3430a48b5b1
lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/entity/Cutter.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,108 @@
package org.jeecg.modules.dnc.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.Api;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.io.Serializable;
import java.util.Date;
@Data
@NoArgsConstructor
@TableName(value = "nc_cutter")
@Api(value = "刀具")
public class Cutter implements Serializable {
    private static final long serialVersionUID = 1529244980533421687L;
    private String id;
    //工序或工步id
    @Excel(name = "所属业务id", width = 15)
    @TableField(value = "attribution_id")
    private String attributionId;
    //工序/工步  5工序 6工步
    @Excel(name = "所属类型", width = 15)
    @TableField(value = "attribution_type")
    private Integer attributionType;
    //对应文档id
    @Excel(name = "对应文档id", width = 15)
    @TableField(value = "doc_id")
    private String docId;
    //对应刀具库id
    @Excel(name = "对应刀具库id", width = 15)
    @TableField(value = "tools_id")
    private String toolsId;
    //刀具名称
    @Excel(name = "刀具名称", width = 15)
    @TableField(value = "cutter_name")
    private String cutterName;
    //刀具编号
    @Excel(name = "刀具编号", width = 15)
    @TableField(value = "cutter_code")
    private String cutterCode;
    //刀具简称
    @Excel(name = "刀具简称", width = 15,dicCode = "cutter_type")
    @TableField(value = "cutter_type")
    @Dict(dicCode = "cutter_type")
    private String cutterType;
    //额定寿命
    @Excel(name = "额定寿命", width = 15)
    @TableField(value = "lifetime")
    private String lifetime;
    //刀位
    @Excel(name = "刀位", width = 15)
    @TableField(value = "cutter_spacing")
    private String cutterSpacing;
    //数量
    @Excel(name = "数量", width = 15)
    @TableField(value = "quantity")
    private Integer quantity;
    //刀具规格
    @Excel(name = "刀具规格", width = 15)
    @TableField(value = "cutter_spec")
    private String cutterSpec;
    //描述
    @Excel(name = "描述", width = 15)
    @TableField(value = "description")
    private String description;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "update_time", fill = FieldFill.INSERT)
    private Date updateTime;
    @JsonIgnore
    @TableField(value = "create_by", select = false, fill = FieldFill.INSERT)
    @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname")
    private String createBy;
    @JsonIgnore
    @TableField(value = "update_by", select = false, fill = FieldFill.UPDATE)
    @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname")
    private String updateBy;
    @JsonIgnore
    @TableField(value = "delete_flag", select = false)
    private Integer deleteFlag = 0;
}