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-view/src/main/java/com/fzzy/igds/DepotConfPR.java | 77 ++++++++++++++++++++++++++++++++++++++
1 files changed, 77 insertions(+), 0 deletions(-)
diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/DepotConfPR.java b/fzzy-igdss-view/src/main/java/com/fzzy/igds/DepotConfPR.java
new file mode 100644
index 0000000..b159c22
--- /dev/null
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/DepotConfPR.java
@@ -0,0 +1,77 @@
+package com.fzzy.igds;
+
+import com.bstek.dorado.annotation.DataProvider;
+import com.bstek.dorado.annotation.DataResolver;
+import com.bstek.dorado.annotation.Expose;
+import com.fzzy.igds.domain.DepotConf;
+import com.fzzy.igds.service.DepotConfService;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.BeanUtils;
+import org.springframework.stereotype.Component;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * @Description
+ * @Author CZT
+ * @Date 2025/11/28 15:44
+ */
+@Slf4j
+@Component
+public class DepotConfPR {
+
+ @Resource
+ private DepotConfService depotConfService;
+
+ /**
+ * 鍙傛暟閰嶇疆鍒楄〃 depotConfPR#getConfList
+ *
+ * @return
+ */
+ @DataProvider
+ public List<DepotConf> getConfList() {
+ return depotConfService.getConfList(null,null);
+ }
+
+ /**
+ * depotConfPR#saveConf 鍙傛暟閰嶇疆鏇存柊锛屽寘鎷柊澧炲拰淇敼
+ *
+ * @param conf
+ */
+ @DataResolver
+ public void saveConf(DepotConf conf) {
+ DepotConf depotConf = new DepotConf();
+ BeanUtils.copyProperties(conf, depotConf);
+ depotConfService.saveConf(depotConf);
+ }
+
+ /**
+ * depotConfPR#delDepotConf 鍒犻櫎鍙傛暟閰嶇疆
+ *
+ * @param conf
+ */
+ @Expose
+ public void delDepotConf(DepotConf conf) {
+ DepotConf depotConf = new DepotConf();
+ BeanUtils.copyProperties(conf, depotConf);
+ depotConfService.deleteDepotConf(depotConf);
+ }
+
+ /**
+ * depotConfPR#flushConfCache 鍒锋柊閰嶇疆缂撳瓨
+ */
+ @Expose
+ public void flushConfCache() {
+ depotConfService.flushConfCache(null);
+ }
+
+ /**
+ * depotConfPR#updateFreq 鏇存柊鎵�鏈夌伯搴撶殑绮儏棰戠巼
+ */
+ @Expose
+ public void updateFreq(String freq) {
+ depotConfService.updateFreq(freq);
+ }
+
+}
--
Gitblit v1.9.3