From 144d50c5ba277ba9df9613d3510655db314358f7 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期五, 31 十月 2025 16:26:44 +0800
Subject: [PATCH] 1

---
 src/main/java/com/zy/asrs/service/impl/BasContainerServiceImpl.java |   46 ----------------------------------------------
 1 files changed, 0 insertions(+), 46 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..d728f76 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,6 @@
 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.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
@@ -23,49 +22,4 @@
 @Service("basContainerService")
 public class BasContainerServiceImpl extends ServiceImpl<BasContainerMapper, BasContainer> implements BasContainerService {
 
-    /**
-     * @author Ryan
-     * @date 2025/9/26
-     * @description: 瀹瑰櫒鍒濆鍖�
-     * @version 1.0
-     */
-    @Override
-    @Transactional(rollbackFor = Exception.class)
-    public R init(ContainerParams container) {
-        Integer length = 7;
-        if (Objects.isNull(container.getType())) {
-            throw new CoolException("瀹瑰櫒绫诲瀷涓嶈兘涓虹┖锛�");
-        }
-        if (!Objects.isNull(container.getLength())) {
-            length = container.getLength();
-        }
-        if (!Objects.isNull(container.getFlagInit()) && container.getFlagInit().equals(CommonEnum.COMMON_ENUM_Y.type)) {
-            this.delete(new EntityWrapper<>());
-        }
-        for (int i = container.getStart(); i <= container.getEnd(); i++) {
-            BasContainer basContainer = new BasContainer();
-            String prefix = "", ruleCode = "";
-            if (container.getType().equals(ContainerType.CONTAINER_TYPE_BOX.type)) {
-                prefix = "LX2";
-                basContainer.setMixMax(3);
-            } else if (container.getType().equals(ContainerType.CONTAINER_TYPE_CAGE.type)) {
-                prefix = "LK3";
-                basContainer.setMixMax(2);
-            } else if (container.getType().equals(ContainerType.CONTAINER_TYPE_SALVER.type)) {
-                prefix = "TP4";
-                basContainer.setMixMax(2);
-            }
-            ruleCode = prefix + StringUtils.leftPad(i + "", length, "0");
-            basContainer.setType(container.getType())
-                    .setCreateTime(new Date())
-                    .setUpdateTime(new Date())
-                    .setId(null)
-                    .setFlagMix(1)
-                    .setBarcode(ruleCode);
-            if (!this.insert(basContainer)) {
-                throw new CoolException("瀹瑰櫒淇濆瓨澶辫触锛侊紒");
-            }
-        }
-        return R.ok();
-    }
 }

--
Gitblit v1.9.1