From bd6095e7af86faf7ed0a5ca188775aeac7b031f2 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 06 九月 2022 09:40:55 +0800
Subject: [PATCH] Merge branch 'zypms' of http://47.97.1.152:5880/r/wms_saas into zypms

---
 src/main/resources/mapper/ItemMapper.xml                                 |    2 +-
 src/main/java/zy/cloud/wms/manager/service/impl/ItemServiceImpl.java     |    4 ++--
 src/main/java/zy/cloud/wms/manager/controller/ProjectPlanController.java |   24 +++++++++++++++++++++---
 src/main/java/zy/cloud/wms/manager/controller/ItemController.java        |    3 +--
 4 files changed, 25 insertions(+), 8 deletions(-)

diff --git a/src/main/java/zy/cloud/wms/manager/controller/ItemController.java b/src/main/java/zy/cloud/wms/manager/controller/ItemController.java
index 61b6dce..b89302d 100644
--- a/src/main/java/zy/cloud/wms/manager/controller/ItemController.java
+++ b/src/main/java/zy/cloud/wms/manager/controller/ItemController.java
@@ -142,8 +142,6 @@
         if (Cools.isEmpty(cstmr)) {
             throw new CoolException("鎵句笉鍒拌瀹㈡埛,璇锋鏌�");
         }
-
-
         item.setCustMan(cstmr.getName());
         item.setCustMobile(cstmr.getTel());
         item.setCustAdress(cstmr.getAddr());
@@ -165,6 +163,7 @@
         if (Cools.isEmpty(item)) {
             return R.error("鍙傛暟涓虹┖,璇疯仈绯荤鐞嗗憳");
         }
+
 //        item.setType("1");
 //        if (!item.getType().equals("1")) {
 //            throw new CoolException("鐩墠浠呮敮鎸侀泦鎴愰」鐩�");
diff --git a/src/main/java/zy/cloud/wms/manager/controller/ProjectPlanController.java b/src/main/java/zy/cloud/wms/manager/controller/ProjectPlanController.java
index f292bf4..d108b45 100644
--- a/src/main/java/zy/cloud/wms/manager/controller/ProjectPlanController.java
+++ b/src/main/java/zy/cloud/wms/manager/controller/ProjectPlanController.java
@@ -270,8 +270,17 @@
      * @return
      */
     @RequestMapping("/projectPlan/flowStatus")
-    public R flowStatus(){
+    public R flowStatus(
+            @RequestParam(defaultValue = "1") Integer curr,
+            @RequestParam(defaultValue = "10") Integer limit,
+            @RequestParam(required = false) String orderByField,
+            @RequestParam(required = false) String orderByType,
+            @RequestParam Map<String, Object> param
+    ){
+
         EntityWrapper<FlowStatus> wrapper = new EntityWrapper<>();
+        excludeTrash(param);
+        convert(param, wrapper);
         wrapper.orderBy("weight_num");
         List<FlowStatus> flowStatuses = flowStatusService.selectList(wrapper);
 
@@ -283,8 +292,17 @@
      * @return
      */
     @RequestMapping("/projectPlan/toFront")
-    public R toFront(){
-        List<Item> items = itemService.selectList(new EntityWrapper<Item>()
+    public R toFront(
+            @RequestParam(defaultValue = "1") Integer curr,
+            @RequestParam(defaultValue = "10") Integer limit,
+            @RequestParam(required = false) String orderByField,
+            @RequestParam(required = false) String orderByType,
+            @RequestParam Map<String, Object> param
+    ){
+        EntityWrapper<Item> itemEntityWrapper = new EntityWrapper<>();
+        excludeTrash(param);
+        convert(param, itemEntityWrapper);
+        List<Item> items = itemService.selectList(itemEntityWrapper
                 .eq("status","1"));
         List<ItemsDTO> itemsDTOs = new ArrayList<>();
 
diff --git a/src/main/java/zy/cloud/wms/manager/service/impl/ItemServiceImpl.java b/src/main/java/zy/cloud/wms/manager/service/impl/ItemServiceImpl.java
index 2dab91e..a07b868 100644
--- a/src/main/java/zy/cloud/wms/manager/service/impl/ItemServiceImpl.java
+++ b/src/main/java/zy/cloud/wms/manager/service/impl/ItemServiceImpl.java
@@ -47,10 +47,10 @@
     @Transactional
     @Override
     public void insertAll(Item item) {
-
         this.insert(item);
+        Integer isAsrs = item.getType().equals("10")? 1: 0;
         List<FlowStatus> allTypes = flowStatusService.selectList(new EntityWrapper<FlowStatus>()
-                .eq("type", item.getType())
+                .eq("is_asrs", isAsrs)
                 .orderBy("weight_num",true));
         for (FlowStatus oneType : allTypes) {
             ProjectPlan projectPlan = new ProjectPlan();
diff --git a/src/main/resources/mapper/ItemMapper.xml b/src/main/resources/mapper/ItemMapper.xml
index 2d23645..efd8d18 100644
--- a/src/main/resources/mapper/ItemMapper.xml
+++ b/src/main/resources/mapper/ItemMapper.xml
@@ -82,7 +82,7 @@
         </if>
     </select>
     <select id="inspected" resultMap="BaseResultMap">
-        select * from man_item where realLADate is not null
+        select * from man_item where real_end_time is not null
     </select>
     <select id="finished" resultMap="BaseResultMap">
         select * from man_item where realLADate is null and realinDate is not null

--
Gitblit v1.9.1