2. 完成新建配置模板功能 3. 修改configuration文件夹中全局异常处理器,添加了几种专门处理数据库异常和Valid异常的处理器。 4. 修改application.yml文件,将hikari自动提交设置为false,此项设置可用于避免数据库发生脏读
19 lines
697 B
Java
19 lines
697 B
Java
package com.realtime.protection.server.task;
|
|
|
|
import com.realtime.protection.configuration.entity.task.Task;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
@Mapper
|
|
public interface TaskMapper {
|
|
void newTask(@Param("task") Task task);
|
|
|
|
void newTaskProobjConcat(@Param("task_id") Integer taskId, @Param("proobj_ids") Integer[] proobjIds);
|
|
|
|
Integer newTaskStaticRuleConcat(@Param("task_id") Integer taskId,
|
|
@Param("rule_ids") Integer[] staticRuleIds);
|
|
|
|
Integer newTaskDynamicRuleConcat(@Param("task_id") Integer taskId,
|
|
@Param("rule_ids") Integer[] dynamicRuleIds);
|
|
}
|