From dcd2e9ad65580de56147956e718059f50f1691d2 Mon Sep 17 00:00:00 2001
From: skyouc <958836976@qq.com>
Date: 星期五, 30 一月 2026 08:36:12 +0800
Subject: [PATCH] no message

---
 src/main/java/com/zy/asrs/service/impl/BasContainerServiceImpl.java |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/BasContainerServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/BasContainerServiceImpl.java
index 3919e27..6b314c5 100644
--- a/src/main/java/com/zy/asrs/service/impl/BasContainerServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/BasContainerServiceImpl.java
@@ -10,7 +10,9 @@
 import com.zy.asrs.entity.BasContainer;
 import com.zy.asrs.service.BasContainerService;
 import com.baomidou.mybatisplus.service.impl.ServiceImpl;
-import org.apache.tika.utils.StringUtils;
+import org.apache.commons.codec.binary.StringUtils;
+import org.apache.poi.util.StringUtil;
+
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
@@ -47,15 +49,21 @@
             String prefix = "", ruleCode = "";
             if (container.getType().equals(ContainerType.CONTAINER_TYPE_BOX.type)) {
                 prefix = "LX2";
-                basContainer.setMixMax(3);
+                basContainer.setMixMax(3.0);
             } else if (container.getType().equals(ContainerType.CONTAINER_TYPE_CAGE.type)) {
                 prefix = "LK3";
-                basContainer.setMixMax(2);
+                basContainer.setMixMax(2.0);
             } else if (container.getType().equals(ContainerType.CONTAINER_TYPE_SALVER.type)) {
                 prefix = "TP4";
-                basContainer.setMixMax(2);
+                basContainer.setMixMax(2.0);
+            } else if (container.getType().equals(ContainerType.CONTAINER_TYPE_CAR.type)) {
+                prefix = "TC5";
+                basContainer.setMixMax(1.0);
             }
-            ruleCode = prefix + StringUtils.leftPad(i + "", length, "0");
+
+
+            String padded = String.format("%07d", Integer.parseInt(i + ""));
+            ruleCode = prefix + padded;//StringUtils.leftPad(i + "", length, "0");
             basContainer.setType(container.getType())
                     .setCreateTime(new Date())
                     .setUpdateTime(new Date())

--
Gitblit v1.9.1