From f5c89a9b01b0cae70a7e0ccd878fb75121743929 Mon Sep 17 00:00:00 2001
From: zzgtfwq <zzgtfwq>
Date: 星期三, 10 十二月 2025 13:18:22 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/controller/MatController.java |   32 ++++++++++++++++++--------------
 1 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/MatController.java b/src/main/java/com/zy/asrs/controller/MatController.java
index e79b7e8..90cc015 100644
--- a/src/main/java/com/zy/asrs/controller/MatController.java
+++ b/src/main/java/com/zy/asrs/controller/MatController.java
@@ -58,16 +58,23 @@
         return R.ok().add(mats);
     }
 
+//    @RequestMapping(value = "/mat/search/pda/auth")
+//    @ManagerAuth
+//    public R pdaSearch(@RequestParam(required = false)String condition){
+//        EntityWrapper<Mat> wrapper = new EntityWrapper<>();
+//        if (!Cools.isEmpty(condition)) {
+////            wrapper.like("matnr", condition).or().like("maktx", condition);
+//            wrapper.like("matnr", condition).or().like("specs", condition);
+//        }
+//        wrapper.orderBy("create_time", false);
+//        List<Mat> mats = matService.selectList(wrapper);
+//        return R.ok().add(mats);
+//    }
+
     @RequestMapping(value = "/mat/search/pda/auth")
     @ManagerAuth
     public R pdaSearch(@RequestParam(required = false)String condition){
-        EntityWrapper<Mat> wrapper = new EntityWrapper<>();
-        if (!Cools.isEmpty(condition)) {
-//            wrapper.like("matnr", condition).or().like("maktx", condition);
-            wrapper.like("matnr", condition).or().like("specs", condition);
-        }
-        wrapper.orderBy("create_time", false);
-        List<Mat> mats = matService.selectList(wrapper);
+        List<Mat> mats = matService.selectByMatnrLink10(condition);
         return R.ok().add(mats);
     }
 
@@ -140,9 +147,11 @@
         if (Cools.isEmpty(mat) || null==mat.getId()){
             return R.error();
         }
+        String oldMatnr = matService.getOldMatnr(mat.getId());
         mat.setUpdateBy(getUserId());
         mat.setUpdateTime(new Date());
         matService.updateById(mat);
+
         return R.ok();
     }
 
@@ -167,13 +176,6 @@
                           @RequestParam(defaultValue = "10")Integer limit,
                           @RequestParam Map<String, Object> param){
         return R.ok(matService.getMatTurnPage(toPage(curr, limit, param, Mat.class)));
-    }
-
-    @RequestMapping("/mat/turn/over/out/start")
-    @ManagerAuth(memo = "鍝佸彿绉讳氦")
-    public R turnOverOutStart(@RequestBody EmptyPlateOutParam param) {
-
-        return R.ok("鍝佸彿绉讳氦鎴愬姛");
     }
 
     @RequestMapping("/mat/turn/over/take/site")
@@ -281,6 +283,8 @@
             print.setBarcode(mat.getBarcode());
             print.setMaktx(mat.getMaktx());
             print.setSpecs(mat.getSpecs());
+            print.setSupp(mat.getSupp());
+            print.setSku(mat.getSku());
             print.setUnit(mat.getUnit());
             print.setMemo(mat.getMemo());
             res.add(print);

--
Gitblit v1.9.1