From b176072388747abb438990157bfa305b215b4b90 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期二, 14 四月 2026 21:59:39 +0800
Subject: [PATCH] 我们现在讨论一下系统找库位方案, 如何实现,对现有找库位规则进行整改,数据库也要整改 1、要能方便的填写单伸堆垛机或双伸堆垛机的深浅库位配置 2、根据设备状态分配库位,离线设备不分配 3、库位分配要均衡到每一个设备  4、库位高度需要匹配到对应库位信息,低库位能向上兼容  5、空托盘优先放在locType2库位=1的库位,没有这种库位了,允许放到其他库位 6、给入库站点设置有限去那些堆垛机,其次去那些堆垛机,弄成页面可以配置入库站点 7、在系统配置新增优先放前几列的配置,当入库的货物是高频货物时放在前几列 8、组托中会标识该托盘是高频还是低频,如果是高频则从前往后找库位,如果是低频则从后往前找库位 9、找库位时locMast中whsType字段无用

---
 src/main/java/com/zy/asrs/controller/DocTypeController.java |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/DocTypeController.java b/src/main/java/com/zy/asrs/controller/DocTypeController.java
index 96c3270..72ce073 100644
--- a/src/main/java/com/zy/asrs/controller/DocTypeController.java
+++ b/src/main/java/com/zy/asrs/controller/DocTypeController.java
@@ -1,17 +1,16 @@
 package com.zy.asrs.controller;
 
-import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.mapper.EntityWrapper;
 import com.baomidou.mybatisplus.mapper.Wrapper;
 import com.baomidou.mybatisplus.plugins.Page;
-import com.core.common.DateUtils;
-import com.zy.asrs.entity.DocType;
-import com.zy.asrs.service.DocTypeService;
 import com.core.annotations.ManagerAuth;
 import com.core.common.BaseRes;
 import com.core.common.Cools;
+import com.core.common.DateUtils;
 import com.core.common.R;
+import com.zy.asrs.entity.DocType;
+import com.zy.asrs.service.DocTypeService;
 import com.zy.common.web.BaseController;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
@@ -60,6 +59,11 @@
     @RequestMapping(value = "/docType/add/auth")
     @ManagerAuth
     public R add(DocType docType) {
+        docType.setStatus(1);
+        docType.setCreateBy(getUserId());
+        docType.setCreateTime(new Date());
+        docType.setUpdateBy(getUserId());
+        docType.setUpdateTime(new Date());
         docTypeService.insert(docType);
         return R.ok();
     }
@@ -70,6 +74,8 @@
         if (Cools.isEmpty(docType) || null==docType.getDocId()){
             return R.error();
         }
+        docType.setUpdateBy(getUserId());
+        docType.setUpdateTime(new Date());
         docTypeService.updateById(docType);
         return R.ok();
     }
@@ -99,12 +105,13 @@
     public R query(String condition) {
         EntityWrapper<DocType> wrapper = new EntityWrapper<>();
         wrapper.like("doc_name", condition);
-        Page<DocType> page = docTypeService.selectPage(new Page<>(0, 10), wrapper);
+        wrapper.eq("status", 1);
+        Page<DocType> page = docTypeService.selectPage(new Page<>(0, 30), wrapper);
         List<Map<String, Object>> result = new ArrayList<>();
         for (DocType docType : page.getRecords()){
             Map<String, Object> map = new HashMap<>();
             map.put("id", docType.getDocId());
-            map.put("value", docType.getDocId());
+            map.put("value", docType.getDocName());
             result.add(map);
         }
         return R.ok(result);

--
Gitblit v1.9.1