|
|
@ -16,10 +16,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="processId" column="process_id" /> |
|
|
|
<result property="processName" column="process_name" /> |
|
|
|
<result property="type" column="type" /> |
|
|
|
<result property="remark" column="remark" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectDcEventProcessVo"> |
|
|
|
select id, event_id, operation_time, operator,operator_name, source, process_type, context, process_id, process_name, `type` from dc_event_process |
|
|
|
select id, event_id, operation_time, operator,operator_name, source, process_type, context, process_id, process_name, `type` ,remark from dc_event_process |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectDcEventProcessList" parameterType="DcEventProcess" resultMap="DcEventProcessResult"> |
|
|
@ -57,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="processId != null">process_id,</if> |
|
|
|
<if test="processName != null">process_name,</if> |
|
|
|
<if test="type != null">`type`,</if> |
|
|
|
<if test="remark != null">remark,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
@ -70,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="processId != null">#{processId},</if> |
|
|
|
<if test="processName != null">#{processName},</if> |
|
|
|
<if test="type != null">#{type},</if> |
|
|
|
<if test="remark != null">#{remark},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -88,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="item.processId != null">process_id,</if> |
|
|
|
<if test="item.processName != null">process_name,</if> |
|
|
|
<if test="item.type != null">`type`,</if> |
|
|
|
<if test="item.remark != null">`remark`,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="item.id != null">#{item.id},</if> |
|
|
@ -101,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="item.processId != null">#{item.processId},</if> |
|
|
|
<if test="item.processName != null">#{item.processName},</if> |
|
|
|
<if test="item.type != null">#{item.type},</if> |
|
|
|
<if test="item.remark != null">#{item.remark},</if> |
|
|
|
</trim> |
|
|
|
</foreach> |
|
|
|
</insert> |
|
|
@ -118,6 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="type != null">`type` = #{type},</if> |
|
|
|
<if test="processId != null">process_id = #{processId},</if> |
|
|
|
<if test="processName != null">process_name = #{processName},</if> |
|
|
|
<if test="remark != null">remark = #{remark},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|