You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.wms.mapper.WmsInstockOrderMapper">
<update id="updateInstock" parameterType="org.dromara.wms.domain.WmsInstockOrder">
update wms_instock_order
<trim prefix="SET" suffixOverrides=",">
<if test="instockCode != null">instock_code = #{instockCode},</if>
<if test="materialCategories != null and materialCategories != ''">material_categories = #{materialCategories},</if>
<if test="instockType != null and instockType != ''">instock_type = #{instockType},</if>
<if test="auditBy != null">audit_by = #{auditBy},</if>
<if test="auditComments != null">audit_comments = #{auditComments},</if>
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where instock_id = #{instockId}
</update>
</mapper>