|
@ -4,10 +4,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
<mapper namespace="com.zc.business.mapper.EventPlanAssocMapper"> |
|
|
<mapper namespace="com.zc.business.mapper.EventPlanAssocMapper"> |
|
|
|
|
|
|
|
|
<insert id="insertEventPlanAssoc" parameterType="EventPlanAssoc"> |
|
|
<resultMap type="EventPlanAssoc" id="EventPlanAssocResult"> |
|
|
|
|
|
<result property="id" column="id"/> |
|
|
|
|
|
<result property="eventId" column="event_id"/> |
|
|
|
|
|
<result property="emergencyPlansId" column="emergency_plans_id"/> |
|
|
|
|
|
<result property="createTime" column="create_time"/> |
|
|
|
|
|
<result property="updateTime" column="update_time"/> |
|
|
|
|
|
<result property="operationType" column="operation_type"/> |
|
|
|
|
|
<result property="controlDevice" column="control_device"/> |
|
|
|
|
|
<result property="controlResult" column="control_result"/> |
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertEventPlanAssoc" parameterType="EventPlanAssoc" useGeneratedKeys="true" |
|
|
|
|
|
keyProperty="id"> |
|
|
insert into event_plan_assoc |
|
|
insert into event_plan_assoc |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null and id != ''">id,</if> |
|
|
|
|
|
<if test="eventId != null and eventId != ''">event_id,</if> |
|
|
<if test="eventId != null and eventId != ''">event_id,</if> |
|
|
<if test="emergencyPlansId != null">emergency_plans_id,</if> |
|
|
<if test="emergencyPlansId != null">emergency_plans_id,</if> |
|
|
<if test="controlDevice != null and controlDevice != ''">control_device,</if> |
|
|
<if test="controlDevice != null and controlDevice != ''">control_device,</if> |
|
@ -17,7 +28,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="controlResult != null and controlResult !=''">control_result,</if> |
|
|
<if test="controlResult != null and controlResult !=''">control_result,</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null and id != ''">#{id},</if> |
|
|
|
|
|
<if test="eventId != null and eventId != ''">#{eventId},</if> |
|
|
<if test="eventId != null and eventId != ''">#{eventId},</if> |
|
|
<if test="emergencyPlansId != null">#{emergencyPlansId},</if> |
|
|
<if test="emergencyPlansId != null">#{emergencyPlansId},</if> |
|
|
<if test="controlDevice != null and controlDevice != ''">#{controlDevice},</if> |
|
|
<if test="controlDevice != null and controlDevice != ''">#{controlDevice},</if> |
|
|