| File was renamed from src/main/java/org/springblade/modules/customTask/mapper/CustomTaskMapper.xml |
| | |
| | | <?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="org.springblade.modules.customTask.mapper.CustomTaskMapper"> |
| | | <mapper namespace="org.springblade.modules.threeColorTask.mapper.CustomTaskMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="customTaskResultMap" type="org.springblade.modules.customTask.entity.CustomTaskEntity"> |
| | | <resultMap id="customTaskResultMap" type="org.springblade.modules.threeColorTask.entity.CustomTaskEntity"> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | </select> |
| | | |
| | | |
| | | <resultMap type="org.springblade.modules.customTask.dto.CustomTaskDTO" id="CustomTaskDTOResult"> |
| | | <resultMap type="org.springblade.modules.threeColorTask.dto.CustomTaskDTO" id="CustomTaskDTOResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="name" column="name" /> |
| | | <result property="taskType" column="task_type" /> |
| | |
| | | task_status, |
| | | job_id |
| | | from |
| | | jczz_custom_task |
| | | jczz_three_color_task |
| | | </sql> |
| | | |
| | | <select id="selectCustomTaskById" parameterType="int" resultMap="CustomTaskDTOResult"> |
| | |
| | | id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectCustomTaskList" parameterType="org.springblade.modules.customTask.dto.CustomTaskDTO" resultMap="CustomTaskDTOResult"> |
| | | <select id="selectCustomTaskList" parameterType="org.springblade.modules.threeColorTask.dto.CustomTaskDTO" resultMap="CustomTaskDTOResult"> |
| | | <include refid="selectCustomTask"/> |
| | | <where> |
| | | <if test="id != null "> and id = #{id}</if> |