|
|
@ -1154,6 +1154,61 @@ |
|
|
WHERE id = #{id} |
|
|
WHERE id = #{id} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateMaterialForImport"> |
|
|
|
|
|
UPDATE material |
|
|
|
|
|
<set> |
|
|
|
|
|
<if test="uid != '' and uid != null"> |
|
|
|
|
|
uid = #{uid}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="price != null"> |
|
|
|
|
|
price = #{price}, |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test="updateTime != '' and updateTime != null"> |
|
|
|
|
|
updateTime = #{updateTime}, |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test="unit != null and unit != ''"> |
|
|
|
|
|
unit = #{unit}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="texture != null and texture != ''"> |
|
|
|
|
|
texture = #{texture}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="shelfLife != null"> |
|
|
|
|
|
shelfLife = #{shelfLife}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="producedDate != null"> |
|
|
|
|
|
producedDate = #{producedDate}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="productionPlace != null and productionPlace !=''"> |
|
|
|
|
|
productionPlace = #{productionPlace}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="brand != '' and brand != null"> |
|
|
|
|
|
brand = #{brand}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="remark != '' and remark != null"> |
|
|
|
|
|
remark = #{remark} |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
</set> |
|
|
|
|
|
WHERE |
|
|
|
|
|
1 = 1 |
|
|
|
|
|
<if test="mname != null and mname != ''"> |
|
|
|
|
|
and mname = #{mname} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="version != null and version != ''"> |
|
|
|
|
|
and version = #{version} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="version == null or version == ''"> |
|
|
|
|
|
and version is null |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="mcode != null and mcode != ''"> |
|
|
|
|
|
and `code` = #{mcode} |
|
|
|
|
|
</if> |
|
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
<!-- 修改数据 --> |
|
|
<!-- 修改数据 --> |
|
|
<update id="updateInventory"> |
|
|
<update id="updateInventory"> |
|
|
UPDATE inventory |
|
|
UPDATE inventory |
|
|
|