双重预防项目-国泰新华二开定制版
kongzy
2024-08-14 135a322f44708b1187d37ea4b6859b5d82113e89
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?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="com.ruoyi.doublePrevention.repository.PreventTaskTypeRepository" >
 
    <resultMap id="BaseResultMap" type="com.ruoyi.doublePrevention.entity.PreventTaskType">
        <id column="id" property="id"/>
        <result column="job_id" property="jobId"/>
        <result column="job_name" property="jobName" />
        <result column="task_id" property="taskId" />
        <result column="job_uuid" property="jobUuid" />
        <result column="type" property="type" />
        <result column="delete_status" property="deleteStatus" />
    </resultMap>
 
 
<!--    PreventTaskType getByTaskId(Long taskId);-->
    <select id="getInfoByTaskId" resultMap="BaseResultMap">
        select * from prevent_task_type where delete_status = 0 and task_id = #{taskId}
    </select>
 
<!--    List<PreventTaskType> getInfoByJobId(Long jobId);-->
    <select id="getInfoByJobId" resultMap="BaseResultMap">
        select * from prevent_task_type where delete_status = 0 and job_id = #{jobId}
    </select>
 
<!--    List<PreventTaskType> getAllTaskTypeList();-->
    <select id="getAllTaskTypeList" resultMap="BaseResultMap">
        select * from prevent_task_type where delete_status = 0
    </select>
 
</mapper>