From 2f432f52c1cfb1567dadcf6e040c5d38b0a26a79 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期五, 28 十一月 2025 17:31:49 +0800
Subject: [PATCH] 数量检测配置页面
---
fzzy-igdss-core/src/main/java/com/fzzy/igds/repository/InoutSysConfRepository.java | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/fzzy-igdss-core/src/main/java/com/fzzy/igds/repository/InoutSysConfRepository.java b/fzzy-igdss-core/src/main/java/com/fzzy/igds/repository/InoutSysConfRepository.java
new file mode 100644
index 0000000..68de24c
--- /dev/null
+++ b/fzzy-igdss-core/src/main/java/com/fzzy/igds/repository/InoutSysConfRepository.java
@@ -0,0 +1,48 @@
+package com.fzzy.igds.repository;
+
+import com.fzzy.igds.domain.InoutSysConf;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.Query;
+import org.springframework.data.repository.query.Param;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * @Description
+ * @Author CZT
+ * @Date 2025/11/27 20:23
+ */
+@Service
+public interface InoutSysConfRepository extends JpaRepository<InoutSysConf, String> {
+
+ /**
+ * 鏍规嵁缁勭粐缂栫爜鍜屽簱鍖虹紪鐮佽幏鍙栦俊鎭�
+ *
+ * @param companyId
+ * @param deptId
+ * @return
+ */
+ @Query("from InoutSysConf where companyId =:companyId and deptId =:deptId")
+ InoutSysConf getInoutSysConf(@Param("companyId") String companyId, @Param("deptId") String deptId);
+
+
+ /**
+ * 鏍规嵁id鑾峰彇淇℃伅
+ *
+ * @param parentId
+ * @return
+ */
+ @Query("from InoutSysConf where deptId like:parentId order by deptId")
+ List<InoutSysConf> getDataByParentId(@Param("parentId") String parentId);
+
+ /**
+ * 鏍规嵁companyId鑾峰彇淇℃伅
+ *
+ * @param companyId
+ * @return
+ */
+ @Query("from InoutSysConf where deptId =:id order by deptId")
+ List<InoutSysConf> getDataById(@Param("id") String id);
+
+}
--
Gitblit v1.9.3