| | |
| | | matCode.setModiTime(new Date()); |
| | | matCode.setAppeUser(getUserId()); |
| | | matCode.setAppeTime(new Date()); |
| | | matCode.setMatNo(UUID.randomUUID().toString().replaceAll("-", "")); |
| | | // matCode.setMatNo(UUID.randomUUID().toString().replaceAll("-", "")); |
| | | matCodeService.insert(matCode); |
| | | return R.ok(); |
| | | } |
| | |
| | | |
| | | public MatCode() {} |
| | | |
| | | |
| | | public String getStr5$(){ |
| | | if (Cools.isEmpty(this.str5) ){ |
| | | return ""; |
| | | } |
| | | if (this.str5.equals("1")){ |
| | | return "原材料"; |
| | | } |
| | | if (this.str5.equals("2")){ |
| | | return "成品"; |
| | | } |
| | | if (this.str5.equals("3")){ |
| | | return "半成品"; |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | // MatCode matCode = new MatCode( |
| | | // null, // 条码 |
| | |
| | | private String str5; |
| | | |
| | | // @ExcelProperty(value= "默认供应商", index = 10) |
| | | private String str6; |
| | | private double str6; |
| | | |
| | | // @ExcelProperty(value= "默认仓库", index = 13) |
| | | private String str7; |
| | |
| | | public MatCodeExcel() { |
| | | } |
| | | |
| | | public MatCodeExcel(String matNo, String barcode, String matName,String specs,String unit,String size,String color,Double weight, String str1, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10,Double num1, Double num2, Double num3, Double num4, Double num5) { |
| | | public MatCodeExcel(String matNo, String barcode, String matName,String specs,String unit,String size,String color,Double weight, String str1, String str2, String str3, String str4, String str5, Double str6, String str7, String str8, String str9, String str10,Double num1, Double num2, Double num3, Double num4, Double num5) { |
| | | this.matNo = matNo; |
| | | this.barcode = barcode; |
| | | this.matName = matName; |