| | |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("man_code_gap") |
| | |
| | | private Double distance; |
| | | |
| | | /** |
| | | * 是否删除 1: 是 0: 否 |
| | | * 状态 1: 正常 0: 冻结 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 冻结 ") |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 是否删除 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否删除 1: 是 0: 否 ") |
| | | private Integer deleted; |
| | |
| | | * 租户 |
| | | */ |
| | | @ApiModelProperty(value= "租户") |
| | | private Integer tenantId; |
| | | private Long tenantId; |
| | | |
| | | public CodeGap() {} |
| | | /** |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | private Long createBy; |
| | | |
| | | public CodeGap(Long code0,Long code1,Double distance,Integer deleted,Integer tenantId) { |
| | | this.code0 = code0; |
| | | this.code1 = code1; |
| | | this.distance = distance; |
| | | this.deleted = deleted; |
| | | this.tenantId = tenantId; |
| | | } |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | private Date createTime; |
| | | |
| | | // CodeGap codeGap = new CodeGap( |
| | | // null, // 条码[非空] |
| | | // null, // 条码[非空] |
| | | // null, // 距离 |
| | | // null, // 是否删除[非空] |
| | | // null // 租户 |
| | | // ); |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | private Long updateBy; |
| | | |
| | | public String getDeleted$(){ |
| | | if (null == this.deleted){ return null; } |
| | | switch (this.deleted){ |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | | return "否"; |
| | | default: |
| | | return String.valueOf(this.deleted); |
| | | } |
| | | } |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | private Date updateTime; |
| | | |
| | | public String getCode0$() { |
| | | CodeService service = SpringUtils.getBean(CodeService.class); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public Boolean getStatusBool(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | case 1: |
| | | return true; |
| | | case 0: |
| | | return false; |
| | | default: |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |