| | |
| | | <?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> |
| | | |