WfTeacherleaveNodeTest.java 960 B

1234567891011121314151617181920212223242526272829303132
  1. package com.xjrsoft.module.liteflow.node;
  2. import com.xjrsoft.XjrSoftApplication;
  3. import com.xjrsoft.module.teacher.service.IWfTeacherleaveService;
  4. import org.junit.jupiter.api.Test;
  5. import org.junit.runner.RunWith;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.boot.test.context.SpringBootTest;
  8. import org.springframework.test.context.junit4.SpringRunner;
  9. import static org.junit.jupiter.api.Assertions.*;
  10. /**
  11. * @author dzx
  12. * @date 2024/5/21
  13. */
  14. @RunWith(SpringRunner.class)
  15. @SpringBootTest(classes = XjrSoftApplication.class)
  16. class WfTeacherleaveNodeTest {
  17. @Autowired
  18. private IWfTeacherleaveService wfTeacherleaveService;
  19. @Test
  20. public void process() throws Exception {
  21. // 获取表单中数据编号
  22. Long formId = 1848627799685918720L;
  23. if (formId != null) {
  24. // 数据处理
  25. wfTeacherleaveService.updateAttendancestatus(formId);
  26. }
  27. }
  28. }