|
|
@ -14,10 +14,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="context" column="context" /> |
|
|
|
<result property="processId" column="process_id" /> |
|
|
|
<result property="processName" column="process_name" /> |
|
|
|
<result property="type" column="type" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectDcEventProcessVo"> |
|
|
|
select id, event_id, operation_time, operator, source, process_type, context, process_id, process_name from dc_event_process |
|
|
|
select id, event_id, operation_time, operator, source, process_type, context, process_id, process_name, `type` from dc_event_process |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectDcEventProcessList" parameterType="DcEventProcess" resultMap="DcEventProcessResult"> |
|
|
@ -29,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="source != null "> and source = #{source}</if> |
|
|
|
<if test="processType != null "> and process_type = #{processType}</if> |
|
|
|
<if test="context != null and context != ''"> and context = #{context}</if> |
|
|
|
<if test="type != null and type != ''"> and `type` = #{type}</if> |
|
|
|
<if test="processId != null "> and process_id = #{processId}</if> |
|
|
|
<if test="processName != null and processName != ''"> and process_name like concat('%', #{processName}, '%')</if> |
|
|
|
</where> |
|
|
@ -51,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="context != null">context,</if> |
|
|
|
<if test="processId != null">process_id,</if> |
|
|
|
<if test="processName != null">process_name,</if> |
|
|
|
<if test="type != null">`type`,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
@ -62,9 +65,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="context != null">#{context},</if> |
|
|
|
<if test="processId != null">#{processId},</if> |
|
|
|
<if test="processName != null">#{processName},</if> |
|
|
|
<if test="type != null">#{type},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|
<insert id="batchInsertDcEventProcess"> |
|
|
|
<foreach collection ="list" item="item" index= "index" separator =";"> |
|
|
|
insert into dc_event_process |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="item.id != null">id,</if> |
|
|
|
<if test="item.eventId != null and item.eventId != ''">event_id,</if> |
|
|
|
<if test="item.operationTime != null">operation_time,</if> |
|
|
|
<if test="item.operator != null and item.operator != ''">operator,</if> |
|
|
|
<if test="item.source != null">source,</if> |
|
|
|
<if test="item.processType != null">process_type,</if> |
|
|
|
<if test="item.context != null">context,</if> |
|
|
|
<if test="item.processId != null">process_id,</if> |
|
|
|
<if test="item.processName != null">process_name,</if> |
|
|
|
<if test="item.type != null">`type`,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="item.id != null">#{item.id},</if> |
|
|
|
<if test="item.eventId != null and item.eventId != ''">#{item.eventId},</if> |
|
|
|
<if test="item.operationTime != null">#{item.operationTime},</if> |
|
|
|
<if test="item.operator != null and item.operator != ''">#{item.operator},</if> |
|
|
|
<if test="item.source != null">#{item.source},</if> |
|
|
|
<if test="item.processType != null">#{item.processType},</if> |
|
|
|
<if test="item.context != null">#{item.context},</if> |
|
|
|
<if test="item.processId != null">#{item.processId},</if> |
|
|
|
<if test="item.processName != null">#{item.processName},</if> |
|
|
|
<if test="item.type != null">#{item.type},</if> |
|
|
|
</trim> |
|
|
|
</foreach> |
|
|
|
</insert> |
|
|
|
|
|
|
|
<update id="updateDcEventProcess" parameterType="DcEventProcess"> |
|
|
|
update dc_event_process |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
@ -74,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="source != null">source = #{source},</if> |
|
|
|
<if test="processType != null">process_type = #{processType},</if> |
|
|
|
<if test="context != null">context = #{context},</if> |
|
|
|
<if test="type != null">`type` = #{type},</if> |
|
|
|
<if test="processId != null">process_id = #{processId},</if> |
|
|
|
<if test="processName != null">process_name = #{processName},</if> |
|
|
|
</trim> |
|
|
|