From 3faf4fd897e595d4f30c7f4b6e5a7003fc4dcdb3 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期三, 25 二月 2026 14:25:07 +0800
Subject: [PATCH] 地磅抓拍实体类提交

---
 fzzy-igdss-core/src/main/java/com/fzzy/igds/service/QuantityService.java |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/QuantityService.java b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/QuantityService.java
index cbe3d03..cbe55e4 100644
--- a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/QuantityService.java
+++ b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/QuantityService.java
@@ -70,6 +70,42 @@
     }
 
     /**
+     * 鏌ヨ鏁版嵁鍒楄〃
+     * @param depotId
+     * @param limit    鏌ヨ鏉℃暟
+     * @return
+     */
+    public List<Quantity> getQuantityList(String depotId, Integer limit) {
+        if (StringUtils.isEmpty(depotId)) {
+            return null;
+        }
+
+        QueryWrapper<Quantity> queryWrapper = new QueryWrapper<>();
+        queryWrapper.eq("depot_id", depotId);
+        queryWrapper.orderByDesc("receive_date");
+        queryWrapper.last("LIMIT " + limit);
+
+        return quantityMapper.selectList(queryWrapper);
+    }
+
+    /**
+     * 淇濆瓨鏁版嵁
+     *
+     * @param data
+     */
+    public void saveData(Quantity data) {
+
+        data.setUpdateBy(ContextUtil.getLoginUserName());
+        data.setUpdateTime(new Date());
+
+        if(StringUtils.isBlank(data.getCreateBy())){
+            data.setCreateBy(ContextUtil.getLoginUserName());
+            data.setCreateTime(new Date());
+        }
+        quantityMapper.insert(data);
+    }
+
+    /**
      * 鏌ヨ閰嶇疆淇℃伅锛屾牴鎹簱鍖虹紪鐮佽幏鍙�
      *
      * @param companyId

--
Gitblit v1.9.3