双重预防项目-国泰新华二开定制版
16639036659
2023-06-15 90c11c1c0c95075ba802889f0436394067af0748
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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>
 
</mapper>