Jelajahi Sumber

教职工请假,推送海康数据

dzx 9 bulan lalu
induk
melakukan
98b683f625

+ 32 - 0
src/test/java/com/xjrsoft/module/liteflow/node/WfTeacherleaveNodeTest.java

@@ -0,0 +1,32 @@
+package com.xjrsoft.module.liteflow.node;
+
+import com.xjrsoft.XjrSoftApplication;
+import com.xjrsoft.module.teacher.service.IWfTeacherleaveService;
+import org.junit.jupiter.api.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+/**
+ * @author dzx
+ * @date 2024/5/21
+ */
+@RunWith(SpringRunner.class)
+@SpringBootTest(classes = XjrSoftApplication.class)
+class WfTeacherleaveNodeTest {
+
+    @Autowired
+    private IWfTeacherleaveService wfTeacherleaveService;
+    @Test
+    public void process() throws Exception {
+        // 获取表单中数据编号
+        Long formId = 1783633206562041856L;
+        if (formId != null) {
+            // 数据处理
+            wfTeacherleaveService.hikvisionLeave(formId);
+        }
+    }
+}