|
|
@@ -26,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="materialsRfid" column="materials_rfid" />
|
|
|
<result property="supplier" column="supplier" />
|
|
|
<result property="expirationDate" column="expiration_date" />
|
|
|
+ <result property="properties" column="properties" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectIsMaterialsVo">
|
|
|
@@ -76,6 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="materialsRfid != null">materials_rfid,</if>
|
|
|
<if test="supplier != null and supplier != ''">supplier,</if>
|
|
|
<if test="expirationDate != null">expiration_date,</if>
|
|
|
+ <if test="properties != null and properties != ''">properties,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="materialsCode != null and materialsCode != ''">#{materialsCode},</if>
|
|
|
@@ -98,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="materialsRfid != null">#{materialsRfid},</if>
|
|
|
<if test="supplier != null and supplier != ''">#{supplier},</if>
|
|
|
<if test="expirationDate != null">#{expirationDate},</if>
|
|
|
+ <if test="properties != null and properties != ''">#{properties},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -124,6 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="materialsRfid != null">materials_rfid = #{materialsRfid},</if>
|
|
|
<if test="supplier != null and supplier != ''">supplier = #{supplier},</if>
|
|
|
<if test="expirationDate != null">expiration_date = #{expirationDate},</if>
|
|
|
+ <if test="properties != null and properties != ''">properties = #{properties},</if>
|
|
|
</trim>
|
|
|
where materials_id = #{materialsId}
|
|
|
</update>
|