|
|
@@ -17,10 +17,11 @@ 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="lockSpec" column="lock_spec" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectIsLockVo">
|
|
|
- select lock_id, lock_code, lock_name, lock_type_id, hardware_id, lock_nfc, del_flag, create_by, create_time, update_time, update_by, remark from is_lock
|
|
|
+ select * from is_lock
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectIsLockList" parameterType="IsLock" resultMap="IsLockResult">
|
|
|
@@ -52,7 +53,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
- <if test="remark != null">remark,</if>
|
|
|
+ <if test="remark != null and remark != ''">remark,</if>
|
|
|
+ <if test="lockSpec != null and lockSpec != ''">lock_spec,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="lockCode != null and lockCode != ''">#{lockCode},</if>
|
|
|
@@ -65,7 +67,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
- <if test="remark != null">#{remark},</if>
|
|
|
+ <if test="remark != null and remark != ''">#{remark},</if>
|
|
|
+ <if test="lockSpec != null and lockSpec != ''">#{lockSpec},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -82,7 +85,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<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="remark != null and remark != ''">remark = #{remark},</if>
|
|
|
+ <if test="lockSpec != null and lockSpec != ''">lock_spec = #{lockSpec},</if>
|
|
|
</trim>
|
|
|
where lock_id = #{lockId}
|
|
|
</update>
|