|
|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ktg.iscs.mapper.IsJobTicketLocksetMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="IsJobTicketLockset" id="IsJobTicketLocksetResult">
|
|
|
<result property="recordId" column="record_id" />
|
|
|
<result property="jobTicketId" column="job_ticket_id" />
|
|
|
@@ -20,15 +20,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="remark" column="remark" />
|
|
|
+ <result property="locksetTypeId" column="lockset_type_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectIsJobTicketLocksetVo">
|
|
|
- select record_id, job_ticket_id, point_id, lockset_id, from_hardware_id, to_hardware_id, lockset_status, collect_time, give_back_time, del_flag, create_by, create_time, update_time, update_by, remark from is_job_ticket_lockset
|
|
|
+ select * from is_job_ticket_lockset
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectIsJobTicketLocksetList" parameterType="IsJobTicketLockset" resultMap="IsJobTicketLocksetResult">
|
|
|
<include refid="selectIsJobTicketLocksetVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="jobTicketId != null "> and job_ticket_id = #{jobTicketId}</if>
|
|
|
<if test="pointId != null "> and point_id = #{pointId}</if>
|
|
|
<if test="locksetId != null "> and lockset_id = #{locksetId}</if>
|
|
|
@@ -39,12 +40,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="giveBackTime != null "> and give_back_time = #{giveBackTime}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectIsJobTicketLocksetByRecordId" parameterType="Long" resultMap="IsJobTicketLocksetResult">
|
|
|
<include refid="selectIsJobTicketLocksetVo"/>
|
|
|
where record_id = #{recordId}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertIsJobTicketLockset" parameterType="IsJobTicketLockset" useGeneratedKeys="true" keyProperty="recordId">
|
|
|
insert into is_job_ticket_lockset
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -62,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
+ <if test="locksetTypeId != null">lockset_type_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="jobTicketId != null">#{jobTicketId},</if>
|
|
|
@@ -78,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
+ <if test="locksetTypeId != null">#{locksetTypeId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -98,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="locksetTypeId != null">lockset_type_id = #{locksetTypeId},</if>
|
|
|
</trim>
|
|
|
where record_id = #{recordId}
|
|
|
</update>
|
|
|
@@ -107,9 +111,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteIsJobTicketLocksetByRecordIds" parameterType="String">
|
|
|
- delete from is_job_ticket_lockset where record_id in
|
|
|
+ delete from is_job_ticket_lockset where record_id in
|
|
|
<foreach item="recordId" collection="array" open="(" separator="," close=")">
|
|
|
#{recordId}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
-</mapper>
|
|
|
+</mapper>
|