From 423ac2a5e7e451248d8cdfc2cda3f32dba0ec8f8 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期三, 11 三月 2026 17:59:52 +0800
Subject: [PATCH] feat: 生产计划关联物料信息表
---
src/main/java/com/ruoyi/production/task/ProductMaterialTask.java | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/ruoyi/production/task/ProductMaterialTask.java b/src/main/java/com/ruoyi/production/task/ProductMaterialTask.java
new file mode 100644
index 0000000..aa65f38
--- /dev/null
+++ b/src/main/java/com/ruoyi/production/task/ProductMaterialTask.java
@@ -0,0 +1,27 @@
+package com.ruoyi.production.task;
+
+import com.ruoyi.production.service.ProductMaterialService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+/**
+ * <br>
+ *
+ * </br>
+ *
+ * @author deslrey
+ * @version 1.0
+ * @since 2026/03/11 16:39
+ */
+@Component
+public class ProductMaterialTask {
+
+ @Autowired
+ private ProductMaterialService productMaterialService;
+
+ @Scheduled(cron = "0 0 * * * ?")
+ public void syncProdDataJob() {
+ productMaterialService.syncProductMaterialJob();
+ }
+}
--
Gitblit v1.9.3