1、新增动态规则审批和批量审批,动态规则新增audit_status字段

This commit is contained in:
PushM
2024-04-24 11:20:34 +08:00
parent 01ee96e0b6
commit 042ce322b4
5 changed files with 181 additions and 11 deletions

View File

@@ -14,7 +14,9 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@SpringBootTest
public class DynamicRuleServiceTest extends ProtectionApplicationTests {
@@ -136,4 +138,16 @@ public class DynamicRuleServiceTest extends ProtectionApplicationTests {
null,null,null,null);
System.out.println(num);
}
@Test
void testUpdateDynamicRuleAuditStatusBatch(){
Map<Integer, Integer> map = new HashMap<>();
map.put(101, 1);
map.put(102, 2);
map.put(103, 2);
System.out.println(dynamicRuleService.updateAuditStatusBatch(map));
}
}