| | |
| | | prefix = "LK3"; |
| | | basContainer.setMixMax(2.0); |
| | | } else if (container.getType().equals(ContainerType.CONTAINER_TYPE_SALVER.type)) { |
| | | prefix = "TP8"; |
| | | prefix = "TP88"; |
| | | basContainer.setMixMax(2.0); |
| | | } else if (container.getType().equals(ContainerType.CONTAINER_TYPE_CAR.type)) { |
| | | prefix = "TC5"; |
| | | prefix = "TC1"; |
| | | basContainer.setMixMax(1.0); |
| | | } |
| | | |
| | | |
| | | String padded = String.format("%07d", Integer.parseInt(i + "")); |
| | | |
| | | if (prefix.contains("TP88")) { |
| | | padded = String.format("%06d", Integer.parseInt(i + "")); |
| | | } else if (prefix.contains("TC1")) { |
| | | padded = String.format("%04d", Integer.parseInt(i + "")); |
| | | } |
| | | ruleCode = prefix + padded;//StringUtils.leftPad(i + "", length, "0"); |
| | | basContainer.setType(container.getType()) |
| | | .setCreateTime(new Date()) |