|
|
|
|
@ -9,7 +9,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="userId" column="user_id" />
|
|
|
|
|
<result property="serial" column="serial" />
|
|
|
|
|
<result property="instrumentId" column="instrument_id" />
|
|
|
|
|
<result property="instrumentName" column="instrument_name" />
|
|
|
|
|
<result property="serialImage" column="serial_image" />
|
|
|
|
|
<result property="guarantee" column="guarantee" />
|
|
|
|
|
<result property="guaranteeEndtime" column="guarantee_endtime" />
|
|
|
|
|
@ -23,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectWxUserInstrumentVo">
|
|
|
|
|
select id, user_id, serial, instrument_id, instrument_name, serial_image, guarantee, guarantee_endtime, binding_status, status, create_by, create_time, update_by, update_time, remark from wx_user_instrument
|
|
|
|
|
select id, user_id, serial, instrument_id, serial_image, guarantee, guarantee_endtime, binding_status, status, create_by, create_time, update_by, update_time, remark from wx_user_instrument
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectListByCondition" parameterType="WxUserInstrument" resultMap="WxUserInstrumentResult">
|
|
|
|
|
@ -60,7 +59,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
|
<if test="serial != null and serial != ''"> and serial like concat('%', #{serial}, '%')</if>
|
|
|
|
|
<if test="instrumentId != null "> and instrument_id like concat('%', #{instrumentId}, '%')</if>
|
|
|
|
|
<if test="instrumentName != null and instrumentName != ''"> and instrument_name like concat('%', #{instrumentName}, '%')</if>
|
|
|
|
|
<if test="serialImage != null and serialImage != ''"> and serial_image = #{serialImage}</if>
|
|
|
|
|
<if test="guarantee != null "> and guarantee = #{guarantee}</if>
|
|
|
|
|
<if test="guaranteeEndtime != null "> and guarantee_endtime = #{guaranteeEndtime}</if>
|
|
|
|
|
@ -106,7 +104,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
|
<if test="serial != null and serial != ''">serial,</if>
|
|
|
|
|
<if test="instrumentId != null">instrument_id,</if>
|
|
|
|
|
<if test="instrumentName != null and instrumentName != ''">instrument_name,</if>
|
|
|
|
|
<if test="serialImage != null and serialImage != ''">serial_image,</if>
|
|
|
|
|
<if test="guarantee != null">guarantee,</if>
|
|
|
|
|
<if test="guaranteeEndtime != null">guarantee_endtime,</if>
|
|
|
|
|
@ -122,7 +119,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
|
<if test="serial != null and serial != ''">#{serial},</if>
|
|
|
|
|
<if test="instrumentId != null">#{instrumentId},</if>
|
|
|
|
|
<if test="instrumentName != null and instrumentName != ''">#{instrumentName},</if>
|
|
|
|
|
<if test="serialImage != null and serialImage != ''">#{serialImage},</if>
|
|
|
|
|
<if test="guarantee != null">#{guarantee},</if>
|
|
|
|
|
<if test="guaranteeEndtime != null">#{guaranteeEndtime},</if>
|
|
|
|
|
@ -142,7 +138,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
|
|
<if test="serial != null and serial != ''">serial = #{serial},</if>
|
|
|
|
|
<if test="instrumentId != null">instrument_id = #{instrumentId},</if>
|
|
|
|
|
<if test="instrumentName != null and instrumentName != ''">instrument_name = #{instrumentName},</if>
|
|
|
|
|
<if test="serialImage != null and serialImage != ''">serial_image = #{serialImage},</if>
|
|
|
|
|
<if test="guarantee != null">guarantee = #{guarantee},</if>
|
|
|
|
|
<if test="guaranteeEndtime != null">guarantee_endtime = #{guaranteeEndtime},</if>
|
|
|
|
|
|