双重预防项目-国泰新华二开定制版
kongzy
2024-08-14 135a322f44708b1187d37ea4b6859b5d82113e89
src/main/resources/mybatis/doublePrevention/PreventTaskTypeMapper.xml
@@ -1,32 +1,32 @@
<?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>
<?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>