|  |  |  | 
|---|
|  |  |  | package com.zy.asrs.entity; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.enums.IdType; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotations.TableField; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotations.TableId; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotations.TableName; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.enums.IdType; | 
|---|
|  |  |  | import com.core.common.Cools; | 
|---|
|  |  |  | import com.core.common.SpringUtils; | 
|---|
|  |  |  | import com.zy.system.service.UserService; | 
|---|
|  |  |  | import com.zy.system.entity.User; | 
|---|
|  |  |  | import java.text.SimpleDateFormat; | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  | import org.springframework.format.annotation.DateTimeFormat; | 
|---|
|  |  |  | import com.core.common.SpringUtils; | 
|---|
|  |  |  | import com.zy.system.service.UserService; | 
|---|
|  |  |  | import com.zy.system.entity.User; | 
|---|
|  |  |  | import java.text.SimpleDateFormat; | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import io.swagger.annotations.ApiModelProperty; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotations.TableName; | 
|---|
|  |  |  | import org.springframework.format.annotation.DateTimeFormat; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.io.Serializable; | 
|---|
|  |  |  | import java.text.SimpleDateFormat; | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @TableName("man_doc_type") | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value= "类型名称") | 
|---|
|  |  |  | @TableField("doc_name") | 
|---|
|  |  |  | private String docName; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 入库 1: 入库  0: 非入库 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "入库 1: 入库  0: 非入库  ") | 
|---|
|  |  |  | private Integer pakin; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 出库 1: 出库  0: 非出库 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "出库 1: 出库  0: 非出库  ") | 
|---|
|  |  |  | private Integer pakout; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 状态 1: 正常  0: 禁用 | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value= "备注") | 
|---|
|  |  |  | private String memo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public DocType() {} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public DocType(Long docId,String docName,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { | 
|---|
|  |  |  | this.docId = docId; | 
|---|
|  |  |  | this.docName = docName; | 
|---|
|  |  |  | this.status = status; | 
|---|
|  |  |  | this.createBy = createBy; | 
|---|
|  |  |  | this.createTime = createTime; | 
|---|
|  |  |  | this.updateBy = updateBy; | 
|---|
|  |  |  | this.updateTime = updateTime; | 
|---|
|  |  |  | this.memo = memo; | 
|---|
|  |  |  | public String getPakin$() { | 
|---|
|  |  |  | if (null == this.pakin){ return null; } | 
|---|
|  |  |  | switch (this.pakin){ | 
|---|
|  |  |  | case 1: | 
|---|
|  |  |  | return "入库"; | 
|---|
|  |  |  | case 0: | 
|---|
|  |  |  | return "非入库"; | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | return String.valueOf(this.pakin); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //    DocType docType = new DocType( | 
|---|
|  |  |  | //            null,    // 类型编号[非空] | 
|---|
|  |  |  | //            null,    // 类型名称 | 
|---|
|  |  |  | //            null,    // 状态 | 
|---|
|  |  |  | //            null,    // 添加人员 | 
|---|
|  |  |  | //            null,    // 添加时间 | 
|---|
|  |  |  | //            null,    // 修改人员 | 
|---|
|  |  |  | //            null,    // 修改时间 | 
|---|
|  |  |  | //            null    // 备注 | 
|---|
|  |  |  | //    ); | 
|---|
|  |  |  | public String getPakout$() { | 
|---|
|  |  |  | if (null == this.pakout){ return null; } | 
|---|
|  |  |  | switch (this.pakout){ | 
|---|
|  |  |  | case 1: | 
|---|
|  |  |  | return "出库"; | 
|---|
|  |  |  | case 0: | 
|---|
|  |  |  | return "非出库"; | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | return String.valueOf(this.pakout); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getStatus$(){ | 
|---|
|  |  |  | if (null == this.status){ return null; } | 
|---|