54 lines
1.6 KiB
XML
54 lines
1.6 KiB
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="com.xinelu.manage.mapper.scriptinfotaskinfo.ScriptInfoTaskInfoMapper">
|
|
|
|
<resultMap type="ScriptInfoTaskInfo" id="ScriptInfoTaskInfoResult">
|
|
<result property="id" column="id"/>
|
|
<result property="scriptInfoId" column="script_info_id"/>
|
|
<result property="robotId" column="robot_id"/>
|
|
<result property="taskId" column="task_id"/>
|
|
<result property="createTime" column="create_time"/>
|
|
</resultMap>
|
|
|
|
<sql id="selectScriptInfoTaskInfoVo">
|
|
select id,
|
|
script_info_id,
|
|
robot_id,
|
|
task_id,
|
|
create_time,
|
|
from script_info_task_info
|
|
</sql>
|
|
|
|
<select id="getByScriptInfoId" resultType="java.lang.String">
|
|
select task_id
|
|
from script_info_task_info
|
|
where script_info_id = #{scriptInfoId}
|
|
</select>
|
|
|
|
<insert id="insertScriptInfoTaskInfo" parameterType="ScriptInfoTaskInfo" useGeneratedKeys="true"
|
|
keyProperty="id">
|
|
insert into script_info_task_info
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="scriptInfoId != null">script_info_id,
|
|
</if>
|
|
<if test="robotId != null">robot_id,
|
|
</if>
|
|
<if test="taskId != null">task_id,
|
|
</if>
|
|
<if test="createTime != null">create_time,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="scriptInfoId != null">#{scriptInfoId},
|
|
</if>
|
|
<if test="robotId != null">#{robotId},
|
|
</if>
|
|
<if test="taskId != null">#{taskId},
|
|
</if>
|
|
<if test="createTime != null">#{createTime},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
</mapper> |