-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
def0db3
commit 1ad018b
Showing
4 changed files
with
72 additions
and
19 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
.../project-management/src/main/java/io/metersphere/project/mapper/ExtMessageTaskMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package io.metersphere.project.mapper; | ||
|
||
import io.metersphere.project.domain.MessageTask; | ||
import org.apache.ibatis.annotations.Param; | ||
|
||
import java.util.List; | ||
|
||
public interface ExtMessageTaskMapper { | ||
|
||
List<MessageTask> getRobotType(@Param("projectId") String projectId, @Param("taskType") String taskType, @Param("event") String event); | ||
} |
10 changes: 10 additions & 0 deletions
10
...s/project-management/src/main/java/io/metersphere/project/mapper/ExtMessageTaskMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
<mapper namespace="io.metersphere.project.mapper.ExtMessageTaskMapper"> | ||
|
||
|
||
<select id="getRobotType" resultType="io.metersphere.project.domain.MessageTask"> | ||
select * from message_task where project_id = #{projectId} | ||
and task_type = #{taskType} and event = #{event} and enable = true group by project_robot_id | ||
</select> | ||
</mapper> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters