|
|
@@ -23,10 +23,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="loanState" column="loan_state" />
|
|
|
+ <result property="materialsRfid" column="materials_rfid" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectIsMaterialsVo">
|
|
|
- select materials_id, materials_code, materials_name, materials_type_id, workarea_id, materials_cabinet_id, service_life, available_life, service_times, available_times, start_time, remark, del_flag, create_by, create_time, update_time, update_by, loan_state from is_materials
|
|
|
+ select * from is_materials
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectIsMaterialsList" parameterType="IsMaterials" resultMap="IsMaterialsResult">
|
|
|
@@ -70,6 +71,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="loanState != null and loanState != ''">loan_state,</if>
|
|
|
+ <if test="materialsRfid != null">materials_rfid,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="materialsCode != null and materialsCode != ''">#{materialsCode},</if>
|
|
|
@@ -89,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="loanState != null and loanState != ''">#{loanState},</if>
|
|
|
+ <if test="materialsRfid != null">#{materialsRfid},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -112,6 +115,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="loanState != null and loanState != ''">loan_state = #{loanState},</if>
|
|
|
+ <if test="materialsRfid != null">materials_rfid = #{materialsRfid},</if>
|
|
|
</trim>
|
|
|
where materials_id = #{materialsId}
|
|
|
</update>
|