| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnore; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.alibaba.excel.annotation.format.DateTimeFormat; |
| | | import com.alibaba.excel.annotation.write.style.ColumnWidth; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasLocType1Service; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | |
| | | |
| | | /** |
| | | * 入库明细统计 |
| | | * |
| | | * @author admin |
| | | * @date 2018年11月26日 |
| | | */ |
| | |
| | | public class ViewWorkInBean { |
| | | |
| | | |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | @ExcelIgnore |
| | | private Integer pageNumber; |
| | | |
| | | private int stay_time; |
| | | @ExcelIgnore |
| | | private Integer pageSize; |
| | | |
| | | private String begin_date; |
| | | private String end_date; |
| | | private String query_date; |
| | | @ExcelIgnore |
| | | private int stay_time; |
| | | |
| | | private Integer row; |
| | | @ExcelIgnore |
| | | private String begin_date; |
| | | |
| | | private String crn_str_time; |
| | | private String crn_end_time; |
| | | @ExcelIgnore |
| | | private String end_date; |
| | | |
| | | @ApiModelProperty(value= "工作号") |
| | | private Integer wrk_no; |
| | | @ExcelIgnore |
| | | private String query_date; |
| | | |
| | | @ApiModelProperty(value= "工作时间") |
| | | private Date io_time; |
| | | @ExcelIgnore |
| | | private Integer row; |
| | | |
| | | @ApiModelProperty(value= "库位号") |
| | | private String loc_no; |
| | | @ExcelIgnore |
| | | private String crn_str_time; |
| | | |
| | | @ApiModelProperty(value= "托盘条码") |
| | | private String zpallet; |
| | | @ExcelIgnore |
| | | private String crn_end_time; |
| | | |
| | | @ApiModelProperty(value= "数量") |
| | | private Double anfme; |
| | | @ColumnWidth(15) |
| | | @ExcelProperty(value = "销售单号") |
| | | private String three_code; |
| | | |
| | | @ApiModelProperty(value= "物料号") |
| | | private String matnr; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "工作号") |
| | | private Integer wrk_no; |
| | | |
| | | @ApiModelProperty(value= "物料号") |
| | | private String maktx; |
| | | @ColumnWidth(20) |
| | | @ExcelProperty(value = "入库时间") |
| | | private Date io_time; |
| | | |
| | | @ApiModelProperty(value= "序列码") |
| | | private String batch; |
| | | @ColumnWidth(20) |
| | | @ExcelProperty(value = "库位号") |
| | | private String loc_no; |
| | | |
| | | @ApiModelProperty(value= "单据编号") |
| | | private String order_no; |
| | | @ExcelProperty(value = "货架条码") |
| | | private String supp_code; |
| | | |
| | | @ApiModelProperty(value= "规格") |
| | | private String specs; |
| | | @ExcelProperty(value = "货架条码") |
| | | private String zpallet; |
| | | |
| | | @ApiModelProperty(value= "批次") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value= "颜色") |
| | | private String color; |
| | | @ExcelIgnore |
| | | private Long loc_type1; |
| | | |
| | | @ApiModelProperty(value= "品牌") |
| | | private String brand; |
| | | @ExcelProperty(value = "库位类型") |
| | | private String loc_type1$; |
| | | |
| | | @ApiModelProperty(value= "单位") |
| | | private String unit; |
| | | @ExcelProperty(value = "楼层") |
| | | private Integer floor; |
| | | |
| | | @ApiModelProperty(value= "单价") |
| | | private Double price; |
| | | |
| | | @ApiModelProperty(value= "sku") |
| | | private String sku; |
| | | @ExcelProperty(value = "数量") |
| | | private Double anfme; |
| | | |
| | | @ApiModelProperty(value= "包数") |
| | | private Double units; |
| | | @ColumnWidth(15) |
| | | @ExcelProperty(value = "物料号") |
| | | private String matnr; |
| | | |
| | | @ApiModelProperty(value= "条码") |
| | | private String barcode; |
| | | @ColumnWidth(35) |
| | | @ExcelProperty(value = "物料名称") |
| | | private String maktx; |
| | | |
| | | @ApiModelProperty(value= "物料状态") |
| | | private String origin; |
| | | @ExcelProperty(value = "序列码") |
| | | private String batch; |
| | | |
| | | @ApiModelProperty(value= "厂家") |
| | | private String manu; |
| | | @ExcelProperty(value = "单据编号") |
| | | private String order_no; |
| | | |
| | | @ApiModelProperty(value= "单据时间") |
| | | private String manu_date; |
| | | @ExcelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | @ApiModelProperty(value= "品项数") |
| | | private String item_num; |
| | | @ExcelProperty(value = "批次") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value= "安全库存量") |
| | | private Double safe_qty; |
| | | @ExcelIgnore |
| | | private String color; |
| | | |
| | | @ApiModelProperty(value= "重量") |
| | | private Double weight; |
| | | @ExcelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value= "长度") |
| | | private Double length; |
| | | @ExcelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value= "体积") |
| | | private Double volume; |
| | | @ExcelIgnore |
| | | private Double price; |
| | | |
| | | @ApiModelProperty(value= "三方编码") |
| | | private String three_code; |
| | | @ExcelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | @ApiModelProperty(value= "供应商") |
| | | private String supp; |
| | | @ExcelIgnore |
| | | private Double units; |
| | | |
| | | @ApiModelProperty(value= "供应商编码") |
| | | private String supp_code; |
| | | @ExcelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | private Integer be_batch; |
| | | @ExcelIgnore |
| | | private String origin; |
| | | |
| | | @ApiModelProperty(value= "保质期") |
| | | private String dead_time; |
| | | private String deadTime=dead_time; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | @ApiModelProperty(value= "预警天数") |
| | | private Integer dead_warn; |
| | | private Integer deadWarn=this.dead_warn; |
| | | @ExcelProperty(value = "单据时间") |
| | | private String manu_date; |
| | | |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | @ExcelProperty(value = "品项数") |
| | | private String item_num; |
| | | |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | @ExcelProperty(value = "安全库存量") |
| | | private Double safe_qty; |
| | | |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | @ExcelProperty(value = "重量") |
| | | private Double weight; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "长度") |
| | | private Double length; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | @ApiModelProperty(value= "修改人员") |
| | | private Long modi_user; |
| | | |
| | | @ApiModelProperty(value= "修改时间") |
| | | private Object modi_time; |
| | | @ExcelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | @ApiModelProperty(value= "创建者") |
| | | private Long appe_user; |
| | | |
| | | @ApiModelProperty(value= "添加时间") |
| | | private Object appe_time; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | private Integer be_batch; |
| | | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "保质期") |
| | | private String dead_time; |
| | | @ExcelIgnore |
| | | private String deadTime = dead_time; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "预警天数") |
| | | private Integer dead_warn; |
| | | @ExcelIgnore |
| | | private Integer deadWarn = this.dead_warn; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | // 工作号 |
| | | private Integer wrkNo; |
| | | // 工作时间 |
| | | private Date ioTime; |
| | | //单据编号 |
| | | private String orderNo; |
| | | //单据时间 |
| | | private String manuDate; |
| | | //品项数 |
| | | private String itemNum; |
| | | //安全库存量 |
| | | private Double safeQty; |
| | | //三方编码 |
| | | private String threeCode; |
| | | //供应商编码 |
| | | private String suppCode; |
| | | //是否批次 1: 是 0: 否 |
| | | private Integer beBatch; |
| | | // 修改人员 |
| | | private Long modiUser; |
| | | // 修改时间 |
| | | private Object modiTime; |
| | | // 创建者 |
| | | private Long appeUser; |
| | | // 添加时间 |
| | | private Object appeTime; |
| | | public void sype(){ |
| | | // 工作号 |
| | | wrkNo=wrk_no; |
| | | // 工作时间 |
| | | ioTime=io_time; |
| | | //单据编号 |
| | | orderNo=order_no; |
| | | //单据时间 |
| | | manuDate=manu_date; |
| | | //品项数 |
| | | itemNum=item_num; |
| | | //安全库存量 |
| | | safeQty=safe_qty; |
| | | //三方编码 |
| | | threeCode=three_code; |
| | | //供应商编码 |
| | | suppCode=supp_code; |
| | | //是否批次 1: 是 0: 否 |
| | | beBatch=be_batch; |
| | | // 修改人员 |
| | | modiUser=modi_user; |
| | | // 修改时间 |
| | | modiTime=modi_time; |
| | | // 创建者 |
| | | appeUser=appe_user; |
| | | // 添加时间 |
| | | appeTime=appe_time; |
| | | } |
| | | @ExcelProperty(value = "修改人员") |
| | | private Long modi_user; |
| | | |
| | | 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; |
| | | } |
| | | @ExcelProperty(value = "修改时间") |
| | | private Date modi_time; |
| | | |
| | | 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; |
| | | } |
| | | @ExcelProperty(value = "创建者") |
| | | private Long appe_user; |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.io_time)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.io_time); |
| | | } |
| | | @ExcelProperty(value = "添加时间") |
| | | private Date appe_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]; |
| | | @ExcelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | } |
| | | } |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "工作号") |
| | | // 工作号 |
| | | private Integer wrkNo; |
| | | @ExcelIgnore |
| | | @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss") |
| | | @ExcelProperty(value = "工作时间") |
| | | // 工作时间 |
| | | private Date ioTime; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "单据编号") |
| | | //单据编号 |
| | | private String orderNo; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "单据时间") |
| | | //单据时间 |
| | | private String manuDate; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "品项数") |
| | | //品项数 |
| | | private String itemNum; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "安全库存量") |
| | | //安全库存量 |
| | | private Double safeQty; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "销售单号") |
| | | //三方编码 |
| | | private String threeCode; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "供应商编码") |
| | | //供应商编码 |
| | | private String suppCode; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "师傅批次") |
| | | //是否批次 1: 是 0: 否 |
| | | private Integer beBatch; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "修改人员") |
| | | // 修改人员 |
| | | private Long modiUser; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "修改时间") |
| | | // 修改时间 |
| | | private Date modiTime; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "创建者") |
| | | // 创建者 |
| | | private Long appeUser; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "添加时间") |
| | | // 添加时间 |
| | | private Date appeTime; |
| | | |
| | | public void sype() { |
| | | // 工作号 |
| | | wrkNo = wrk_no; |
| | | // 工作时间 |
| | | ioTime = io_time; |
| | | //单据编号 |
| | | orderNo = order_no; |
| | | //单据时间 |
| | | manuDate = manu_date; |
| | | //品项数 |
| | | itemNum = item_num; |
| | | //安全库存量 |
| | | safeQty = safe_qty; |
| | | //三方编码 |
| | | threeCode = three_code; |
| | | //供应商编码 |
| | | suppCode = supp_code; |
| | | //是否批次 1: 是 0: 否 |
| | | beBatch = be_batch; |
| | | // 修改人员 |
| | | modiUser = modi_user; |
| | | // 修改时间 |
| | | modiTime = modi_time; |
| | | // 创建者 |
| | | appeUser = appe_user; |
| | | // 添加时间 |
| | | appeTime = appe_time; |
| | | } |
| | | |
| | | public String getLoc_type1$() { |
| | | BasLocType1Service service = SpringUtils.getBean(BasLocType1Service.class); |
| | | BasLocType1 basLocType1 = service.selectById(this.loc_type1); |
| | | if (!Cools.isEmpty(basLocType1)) { |
| | | return String.valueOf(basLocType1.getLocDesc()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | 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]; |
| | | |
| | | } |
| | | } |
| | | |
| | | } |