| | |
| | | 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 lombok.Data; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 入库明细统计 |
| | | * |
| | | * @author admin |
| | | * @date 2018年11月26日 |
| | | */ |
| | | @Data |
| | | public class ViewWorkInBean { |
| | | |
| | | private int tbnum; //转储请求编号 |
| | | private int tbpos; //行项目 |
| | | private String zmatid; //物料标签ID |
| | | |
| | | private String matnr; //物料 |
| | | private String maktx; //物料描述 |
| | | private String werks; //工厂 |
| | | private double anfme; //数量 |
| | | private String altme; //单位 |
| | | private String zpallet; //托盘条码 |
| | | private String bname; //用户ID |
| | | |
| | | private String lgnum; //规格 |
| | | private String type; // 商品类别 |
| | | private String mnemonic; // 助记码 |
| | | private String supplier; // 供应商 |
| | | private String warehouse; // 仓库 |
| | | private String brand; // 品牌 |
| | | |
| | | private String io_time; |
| | | private String loc_no; |
| | | private String mat_no; |
| | | private String mat_name; |
| | | private String str1; |
| | | private String str2; |
| | | private String str3; |
| | | private String str4; |
| | | private String str5; |
| | | private String str6; |
| | | private String str7; |
| | | private String str8; |
| | | private String str9; |
| | | private String str10; |
| | | private String str11; |
| | | private String str12; |
| | | private String str13; |
| | | private String str14; |
| | | private String str15; |
| | | private String str16; |
| | | private String str17; |
| | | private String str18; |
| | | private String str19; |
| | | private String str20; |
| | | private String str21; |
| | | private String str22; |
| | | private String str23; |
| | | private Long ctns; //箱数 |
| | | private Long qty; //数量 |
| | | private double wt; //重量 |
| | | private int pageNumber; |
| | | private int pageSize; |
| | | @ExcelIgnore |
| | | private Integer pageNumber; |
| | | |
| | | @ExcelIgnore |
| | | private Integer pageSize; |
| | | |
| | | @ExcelIgnore |
| | | private int stay_time; |
| | | |
| | | @ExcelIgnore |
| | | private String begin_date; |
| | | |
| | | @ExcelIgnore |
| | | private String end_date; |
| | | |
| | | @ExcelIgnore |
| | | private String query_date; |
| | | private String begin_date; //查询开始日期 |
| | | private String end_date; //查询截止日期 |
| | | private double num1; |
| | | private double num2; |
| | | private double num3; |
| | | private double num4; |
| | | private double num5; |
| | | private double num6; |
| | | private String barcode; |
| | | private String date1; |
| | | |
| | | @ExcelIgnore |
| | | private Integer row; |
| | | |
| | | @ExcelIgnore |
| | | private String crn_str_time; |
| | | |
| | | @ExcelIgnore |
| | | private String crn_end_time; |
| | | |
| | | public String getLgnum() { |
| | | return lgnum; |
| | | } |
| | | public void setLgnum(String lgnum) { |
| | | this.lgnum = lgnum; |
| | | } |
| | | public int getTbnum() { |
| | | return tbnum; |
| | | } |
| | | public void setTbnum(int tbnum) { |
| | | this.tbnum = tbnum; |
| | | } |
| | | public int getTbpos() { |
| | | return tbpos; |
| | | } |
| | | public void setTbpos(int tbpos) { |
| | | this.tbpos = tbpos; |
| | | } |
| | | public String getZmatid() { |
| | | return zmatid; |
| | | } |
| | | public void setZmatid(String zmatid) { |
| | | this.zmatid = zmatid; |
| | | } |
| | | public String getMatnr() { |
| | | return matnr; |
| | | } |
| | | public void setMatnr(String matnr) { |
| | | this.matnr = matnr; |
| | | } |
| | | public String getMaktx() { |
| | | return maktx; |
| | | } |
| | | public void setMaktx(String maktx) { |
| | | this.maktx = maktx; |
| | | } |
| | | public String getWerks() { |
| | | return werks; |
| | | } |
| | | public void setWerks(String werks) { |
| | | this.werks = werks; |
| | | } |
| | | public double getAnfme() { |
| | | return anfme; |
| | | } |
| | | public void setAnfme(double anfme) { |
| | | this.anfme = anfme; |
| | | } |
| | | public String getAltme() { |
| | | return altme; |
| | | } |
| | | public void setAltme(String altme) { |
| | | this.altme = altme; |
| | | } |
| | | public String getZpallet() { |
| | | return zpallet; |
| | | } |
| | | public void setZpallet(String zpallet) { |
| | | this.zpallet = zpallet; |
| | | } |
| | | public String getBname() { |
| | | return bname; |
| | | } |
| | | public void setBname(String bname) { |
| | | this.bname = bname; |
| | | } |
| | | public String getIo_time() { |
| | | return io_time.substring(0,19); |
| | | } |
| | | public void setIo_time(String io_time) { |
| | | this.io_time = io_time; |
| | | } |
| | | public String getLoc_no() { |
| | | return loc_no; |
| | | } |
| | | public void setLoc_no(String loc_no) { |
| | | this.loc_no = loc_no; |
| | | } |
| | | public String getMat_no() { |
| | | return mat_no; |
| | | } |
| | | public void setMat_no(String mat_no) { |
| | | this.mat_no = mat_no; |
| | | } |
| | | public String getMat_name() { |
| | | return mat_name; |
| | | } |
| | | public void setMat_name(String mat_name) { |
| | | this.mat_name = mat_name; |
| | | } |
| | | public String getStr1() { |
| | | return str1; |
| | | } |
| | | public void setStr1(String str1) { |
| | | this.str1 = str1; |
| | | } |
| | | public String getStr2() { |
| | | return str2; |
| | | } |
| | | public void setStr2(String str2) { |
| | | this.str2 = str2; |
| | | } |
| | | public Long getCtns() { |
| | | return ctns; |
| | | } |
| | | public void setCtns(Long ctns) { |
| | | this.ctns = ctns; |
| | | } |
| | | public Long getQty() { |
| | | return qty; |
| | | } |
| | | public void setQty(Long qty) { |
| | | this.qty = qty; |
| | | } |
| | | public double getWt() { |
| | | return wt; |
| | | } |
| | | public void setWt(double wt) { |
| | | this.wt = wt; |
| | | } |
| | | public int getPageNumber() { |
| | | return pageNumber; |
| | | } |
| | | public void setPageNumber(int pageNumber) { |
| | | this.pageNumber = pageNumber; |
| | | } |
| | | public int getPageSize() { |
| | | return pageSize; |
| | | } |
| | | public void setPageSize(int pageSize) { |
| | | this.pageSize = pageSize; |
| | | } |
| | | public String getBegin_date() { |
| | | return begin_date; |
| | | } |
| | | public void setBegin_date(String begin_date) { |
| | | this.begin_date = begin_date; |
| | | } |
| | | public String getEnd_date() { |
| | | return end_date; |
| | | } |
| | | public void setEnd_date(String end_date) { |
| | | this.end_date = end_date; |
| | | } |
| | | public String getStr3() { |
| | | return str3; |
| | | } |
| | | public void setStr3(String str3) { |
| | | this.str3 = str3; |
| | | } |
| | | public String getStr4() { |
| | | return str4; |
| | | } |
| | | public void setStr4(String str4) { |
| | | this.str4 = str4; |
| | | } |
| | | public String getStr5() { |
| | | return str5; |
| | | } |
| | | public void setStr5(String str5) { |
| | | this.str5 = str5; |
| | | } |
| | | public String getStr6() { |
| | | return str6; |
| | | } |
| | | public void setStr6(String str6) { |
| | | this.str6 = str6; |
| | | } |
| | | public String getStr7() { |
| | | return str7; |
| | | } |
| | | public void setStr7(String str7) { |
| | | this.str7 = str7; |
| | | } |
| | | public String getStr8() { |
| | | return str8; |
| | | } |
| | | public void setStr8(String str8) { |
| | | this.str8 = str8; |
| | | } |
| | | public String getStr9() { |
| | | return str9; |
| | | } |
| | | public void setStr9(String str9) { |
| | | this.str9 = str9; |
| | | } |
| | | public String getStr10() { |
| | | return str10; |
| | | } |
| | | public void setStr10(String str10) { |
| | | this.str10 = str10; |
| | | } |
| | | public String getStr11() { |
| | | return str11; |
| | | } |
| | | public void setStr11(String str11) { |
| | | this.str11 = str11; |
| | | } |
| | | public String getStr12() { |
| | | return str12; |
| | | } |
| | | public void setStr12(String str12) { |
| | | this.str12 = str12; |
| | | } |
| | | public String getStr13() { |
| | | return str13; |
| | | } |
| | | public void setStr13(String str13) { |
| | | this.str13 = str13; |
| | | } |
| | | public String getStr14() { |
| | | return str14; |
| | | } |
| | | public void setStr14(String str14) { |
| | | this.str14 = str14; |
| | | } |
| | | public String getStr15() { |
| | | return str15; |
| | | } |
| | | public void setStr15(String str15) { |
| | | this.str15 = str15; |
| | | } |
| | | public String getStr16() { |
| | | return str16; |
| | | } |
| | | public void setStr16(String str16) { |
| | | this.str16 = str16; |
| | | } |
| | | public String getStr17() { |
| | | return str17; |
| | | } |
| | | public void setStr17(String str17) { |
| | | this.str17 = str17; |
| | | } |
| | | public String getStr18() { |
| | | return str18; |
| | | } |
| | | public void setStr18(String str18) { |
| | | this.str18 = str18; |
| | | } |
| | | public String getStr19() { |
| | | return str19; |
| | | } |
| | | public void setStr19(String str19) { |
| | | this.str19 = str19; |
| | | } |
| | | public String getStr20() { |
| | | return str20; |
| | | } |
| | | public void setStr20(String str20) { |
| | | this.str20 = str20; |
| | | } |
| | | public String getStr21() { |
| | | return str21; |
| | | } |
| | | public void setStr21(String str21) { |
| | | this.str21 = str21; |
| | | } |
| | | public String getStr22() { |
| | | return str22; |
| | | } |
| | | public void setStr22(String str22) { |
| | | this.str22 = str22; |
| | | } |
| | | public String getStr23() { |
| | | return str23; |
| | | } |
| | | public void setStr23(String str23) { |
| | | this.str23 = str23; |
| | | } |
| | | public double getNum1() { |
| | | return num1; |
| | | } |
| | | public void setNum1(double num1) { |
| | | this.num1 = num1; |
| | | } |
| | | public double getNum2() { |
| | | return num2; |
| | | } |
| | | public void setNum2(double num2) { |
| | | this.num2 = num2; |
| | | } |
| | | public double getNum3() { |
| | | return num3; |
| | | } |
| | | public void setNum3(double num3) { |
| | | this.num3 = num3; |
| | | } |
| | | public double getNum4() { |
| | | return num4; |
| | | } |
| | | public void setNum4(double num4) { |
| | | this.num4 = num4; |
| | | } |
| | | public double getNum5() { |
| | | return num5; |
| | | } |
| | | public void setNum5(double num5) { |
| | | this.num5 = num5; |
| | | } |
| | | public double getNum6() { |
| | | return num6; |
| | | } |
| | | public void setNum6(double num6) { |
| | | this.num6 = num6; |
| | | } |
| | | public String getBarcode() { |
| | | return barcode; |
| | | } |
| | | public void setBarcode(String barcode) { |
| | | this.barcode = barcode; |
| | | } |
| | | public String getDate1() { |
| | | return date1; |
| | | } |
| | | public void setDate1(String date1) { |
| | | this.date1 = date1; |
| | | } |
| | | public String getCrn_str_time() { |
| | | return crn_str_time; |
| | | } |
| | | public void setCrn_str_time(String crn_str_time) { |
| | | this.crn_str_time = crn_str_time; |
| | | } |
| | | public String getCrn_end_time() { |
| | | return crn_end_time; |
| | | } |
| | | public void setCrn_end_time(String crn_end_time) { |
| | | this.crn_end_time = crn_end_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]; |
| | | @ColumnWidth(15) |
| | | @ExcelProperty(value = "销售单号") |
| | | private String three_code; |
| | | |
| | | } |
| | | } |
| | | } |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "工作号") |
| | | private Integer wrk_no; |
| | | |
| | | @ColumnWidth(20) |
| | | @ExcelProperty(value = "入库时间") |
| | | private Date io_time; |
| | | |
| | | @ColumnWidth(20) |
| | | @ExcelProperty(value = "库位号") |
| | | private String loc_no; |
| | | |
| | | @ExcelProperty(value = "货架条码") |
| | | private String supp_code; |
| | | |
| | | @ExcelProperty(value = "货架条码") |
| | | private String zpallet; |
| | | |
| | | |
| | | @ExcelIgnore |
| | | private Long loc_type1; |
| | | |
| | | @ExcelProperty(value = "库位类型") |
| | | private String loc_type1$; |
| | | |
| | | @ExcelProperty(value = "楼层") |
| | | private Integer floor; |
| | | |
| | | |
| | | @ExcelProperty(value = "数量") |
| | | private Double anfme; |
| | | |
| | | @ColumnWidth(15) |
| | | @ExcelProperty(value = "物料号") |
| | | private String matnr; |
| | | |
| | | @ColumnWidth(35) |
| | | @ExcelProperty(value = "物料名称") |
| | | private String maktx; |
| | | |
| | | @ExcelProperty(value = "序列码") |
| | | private String batch; |
| | | |
| | | @ExcelProperty(value = "单据编号") |
| | | private String order_no; |
| | | |
| | | @ExcelProperty(value = "规格") |
| | | private String specs; |
| | | |
| | | @ExcelProperty(value = "批次") |
| | | private String model; |
| | | |
| | | @ExcelIgnore |
| | | private String color; |
| | | |
| | | @ExcelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | @ExcelProperty(value = "单位") |
| | | private String unit; |
| | | |
| | | @ExcelIgnore |
| | | private Double price; |
| | | |
| | | @ExcelProperty(value = "sku") |
| | | private String sku; |
| | | |
| | | @ExcelIgnore |
| | | private Double units; |
| | | |
| | | @ExcelProperty(value = "条码") |
| | | private String barcode; |
| | | |
| | | @ExcelIgnore |
| | | private String origin; |
| | | |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "厂家") |
| | | private String manu; |
| | | |
| | | @ExcelProperty(value = "单据时间") |
| | | private String manu_date; |
| | | |
| | | @ExcelProperty(value = "品项数") |
| | | private String item_num; |
| | | |
| | | @ExcelProperty(value = "安全库存量") |
| | | private Double safe_qty; |
| | | |
| | | @ExcelProperty(value = "重量") |
| | | private Double weight; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "长度") |
| | | private Double length; |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "体积") |
| | | private Double volume; |
| | | |
| | | |
| | | @ExcelProperty(value = "供应商") |
| | | private String supp; |
| | | |
| | | |
| | | @ExcelIgnore |
| | | @ExcelProperty(value = "是否批次 1: 是 0: 否 ") |
| | | private Integer be_batch; |
| | | |
| | | @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; |
| | | |
| | | @ExcelProperty(value = "修改人员") |
| | | private Long modi_user; |
| | | |
| | | @ExcelProperty(value = "修改时间") |
| | | private Date modi_time; |
| | | |
| | | @ExcelProperty(value = "创建者") |
| | | private Long appe_user; |
| | | |
| | | @ExcelProperty(value = "添加时间") |
| | | private Date appe_time; |
| | | |
| | | @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]; |
| | | |
| | | } |
| | | } |
| | | |
| | | } |