|
|
@@ -18,6 +18,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
@@ -38,6 +39,9 @@ class WfCourseAdjustTaskTest {
|
|
|
|
|
|
@Test
|
|
|
public void execute() {
|
|
|
+ List<Long> ids = new ArrayList<>();
|
|
|
+ ids.add(1910895102200975360L);
|
|
|
+ ids.add(1910894870629257216L);
|
|
|
List<WfCourseAdjust> list = wfCourseAdjustService.list(
|
|
|
new MPJLambdaWrapper<WfCourseAdjust>()
|
|
|
.select(WfCourseAdjust::getId)
|
|
|
@@ -46,6 +50,7 @@ class WfCourseAdjustTaskTest {
|
|
|
.eq(WorkflowFormRelation::getCurrentState, HistoricProcessInstance.STATE_COMPLETED)
|
|
|
.eq(WfCourseAdjust::getDeleteMark, DeleteMark.NODELETE.getCode())
|
|
|
.eq(WfCourseAdjust::getEnabledMark, EnabledMark.ENABLED.getCode())
|
|
|
+ .in(!ids.isEmpty(), WfCourseAdjust::getId, ids)
|
|
|
);
|
|
|
|
|
|
for (WfCourseAdjust wfCourseAdjust : list) {
|