| package com.zy.asrs.entity; | 
|   | 
| import com.baomidou.mybatisplus.annotations.TableField; | 
| import com.core.common.Cools; | 
| import com.core.common.SpringUtils; | 
| import com.zy.system.entity.User; | 
| import com.zy.system.service.UserService; | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
|   | 
| import java.text.SimpleDateFormat; | 
| import java.util.Date; | 
|   | 
| /** | 
|  * 入库明细统计 | 
|  * @author admin | 
|  * @date 2018年11月26日 | 
|  */ | 
| @Data | 
| public class ViewWorkInBean { | 
|   | 
|   | 
|     private int pageNumber; | 
|     private int pageSize; | 
|   | 
|     private int stay_time; | 
|   | 
|     private String begin_date; | 
|     private String end_date; | 
|     private String query_date; | 
|   | 
|     private Integer row; | 
|   | 
|     private String crn_str_time; | 
|     private String crn_end_time; | 
|   | 
|     @ApiModelProperty(value= "工作号") | 
|     private Integer wrk_no; | 
|   | 
|     @ApiModelProperty(value= "工作时间") | 
|     private Date io_time; | 
|   | 
|     @ApiModelProperty(value= "库位号") | 
|     private String loc_no; | 
|   | 
|     @ApiModelProperty(value= "托盘条码") | 
|     private String zpallet; | 
|   | 
|     @ApiModelProperty(value= "数量") | 
|     private Double anfme; | 
|   | 
|     @ApiModelProperty(value= "商品编号") | 
|     private String matnr; | 
|   | 
|     @ApiModelProperty(value= "商品名称") | 
|     private String maktx; | 
|   | 
|     @ApiModelProperty(value= "批号") | 
|     private String batch; | 
|   | 
|     @ApiModelProperty(value= "单据编号") | 
|     @TableField("order_no") | 
|     private String orderNo; | 
|   | 
|     @ApiModelProperty(value= "规格") | 
|     private String specs; | 
|   | 
|     @ApiModelProperty(value= "型号") | 
|     private String model; | 
|   | 
|     @ApiModelProperty(value= "颜色") | 
|     private String color; | 
|   | 
|     @ApiModelProperty(value= "品牌") | 
|     private String brand; | 
|   | 
|     @ApiModelProperty(value= "单位") | 
|     private String unit; | 
|   | 
|     @ApiModelProperty(value= "单价") | 
|     private Double price; | 
|   | 
|     @ApiModelProperty(value= "sku") | 
|     private String sku; | 
|   | 
|     @ApiModelProperty(value= "单位量") | 
|     private Double units; | 
|   | 
|     @ApiModelProperty(value= "条码") | 
|     private String barcode; | 
|   | 
|     @ApiModelProperty(value= "产地") | 
|     private String origin; | 
|   | 
|     @ApiModelProperty(value= "厂家") | 
|     private String manu; | 
|   | 
|     @ApiModelProperty(value= "生产日期") | 
|     private String manu_date; | 
|   | 
|     @ApiModelProperty(value= "品项数") | 
|     private String item_num; | 
|   | 
|     @ApiModelProperty(value= "安全库存量") | 
|     private Double safe_qty; | 
|   | 
|     @ApiModelProperty(value= "重量") | 
|     private Double weight; | 
|   | 
|     @ApiModelProperty(value= "长度") | 
|     private Double length; | 
|   | 
|     @ApiModelProperty(value= "体积") | 
|     private Double volume; | 
|   | 
|     @ApiModelProperty(value= "三方编码") | 
|     private String three_code; | 
|   | 
|     @ApiModelProperty(value= "供应商") | 
|     private String supp; | 
|   | 
|     @ApiModelProperty(value= "供应商编码") | 
|     private String supp_code; | 
|   | 
|     @ApiModelProperty(value= "是否批次 1: 是  0: 否  ") | 
|     private Integer be_batch; | 
|   | 
|     @ApiModelProperty(value= "保质期") | 
|     private String dead_time; | 
|   | 
|     @ApiModelProperty(value= "预警天数") | 
|     private Integer dead_warn; | 
|   | 
|     @ApiModelProperty(value= "制购 1: 制造  2: 采购  3: 外协  ") | 
|     private Integer source; | 
|   | 
|     @ApiModelProperty(value= "要求检验 1: 是  0: 否  ") | 
|     private Integer inspect; | 
|   | 
|     @ApiModelProperty(value= "危险品 1: 是  0: 否  ") | 
|     private Integer danger; | 
|   | 
|     @ApiModelProperty(value= "修改人员") | 
|     private Long modi_user; | 
|   | 
|     @ApiModelProperty(value= "修改时间") | 
|     private Object modi_time; | 
|   | 
|     @ApiModelProperty(value= "创建者") | 
|     private Long appe_user; | 
|   | 
|     @ApiModelProperty(value= "添加时间") | 
|     private Object appe_time; | 
|   | 
|     @ApiModelProperty(value= "备注") | 
|     private String memo; | 
|   | 
|     public String getModiUser$(){ | 
|         UserService service = SpringUtils.getBean(UserService.class); | 
|         User user = service.selectById(this.modi_user); | 
|         if (!Cools.isEmpty(user)){ | 
|             return String.valueOf(user.getUsername()); | 
|         } | 
|         return null; | 
|     } | 
|   | 
|     public String getAppeUser$(){ | 
|         UserService service = SpringUtils.getBean(UserService.class); | 
|         User user = service.selectById(this.appe_user); | 
|         if (!Cools.isEmpty(user)){ | 
|             return String.valueOf(user.getUsername()); | 
|         } | 
|         return null; | 
|     } | 
|   | 
|     public String getIoTime$(){ | 
|         if (Cools.isEmpty(this.io_time)){ | 
|             return ""; | 
|         } | 
|         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.io_time); | 
|     } | 
|   | 
|     public void setQuery_date(String query_date) { | 
|         this.query_date = query_date; | 
|         if (query_date.contains(" - ")) { | 
|             String[] dates = query_date.split(" - "); | 
|             this.begin_date = dates[0]; | 
|             this.end_date = dates[1]; | 
|   | 
|         } | 
|     } | 
|   | 
| } |