添加出库时开启序列号的商品强制附加使用序列号
This commit is contained in:
@@ -9,13 +9,14 @@
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="material_Id" jdbcType="BIGINT" property="materialId" />
|
||||
<result column="serial_Number" jdbcType="VARCHAR" property="serialNumber" />
|
||||
<result column="is_Sell" jdbcType="BIT" property="isSell" />
|
||||
<result column="is_Sell" jdbcType="VARCHAR" property="isSell" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="delete_Flag" jdbcType="BIT" property="deleteFlag" />
|
||||
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||
<result column="create_Time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="creator" jdbcType="BIGINT" property="creator" />
|
||||
<result column="update_Time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="updater" jdbcType="BIGINT" property="updater" />
|
||||
<result column="depothead_Id" jdbcType="BIGINT" property="depotheadId" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<!--
|
||||
@@ -89,7 +90,7 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
id, material_Id, serial_Number, is_Sell, remark, delete_Flag, create_Time, creator,
|
||||
update_Time, updater
|
||||
update_Time, updater,depothead_Id
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.SerialNumberExample" resultMap="BaseResultMap">
|
||||
<!--
|
||||
@@ -145,11 +146,11 @@
|
||||
insert into jsh_serial_number (id, material_Id, serial_Number,
|
||||
is_Sell, remark, delete_Flag,
|
||||
create_Time, creator, update_Time,
|
||||
updater)
|
||||
updater,depothead_Id)
|
||||
values (#{id,jdbcType=BIGINT}, #{materialId,jdbcType=BIGINT}, #{serialNumber,jdbcType=VARCHAR},
|
||||
#{isSell,jdbcType=BIT}, #{remark,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=BIT},
|
||||
#{isSell,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP}, #{creator,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP},
|
||||
#{updater,jdbcType=BIGINT})
|
||||
#{updater,jdbcType=BIGINT},#{depotheadId,jdbcType=BIGINT})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.SerialNumber">
|
||||
<!--
|
||||
@@ -188,6 +189,9 @@
|
||||
<if test="updater != null">
|
||||
updater,
|
||||
</if>
|
||||
<if test="depotheadId != null">
|
||||
depothead_Id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
@@ -200,13 +204,13 @@
|
||||
#{serialNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isSell != null">
|
||||
#{isSell,jdbcType=BIT},
|
||||
#{isSell,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
#{deleteFlag,jdbcType=BIT},
|
||||
#{deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
@@ -220,6 +224,9 @@
|
||||
<if test="updater != null">
|
||||
#{updater,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="depotheadId != null">
|
||||
#{depotheadId,jdbcType=BIGINT},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.SerialNumberExample" resultType="java.lang.Integer">
|
||||
@@ -249,13 +256,13 @@
|
||||
serial_Number = #{record.serialNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.isSell != null">
|
||||
is_Sell = #{record.isSell,jdbcType=BIT},
|
||||
is_Sell = #{record.isSell,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.remark != null">
|
||||
remark = #{record.remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.deleteFlag != null">
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=BIT},
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_Time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
@@ -269,6 +276,9 @@
|
||||
<if test="record.updater != null">
|
||||
updater = #{record.updater,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="record.depotheadId != null">
|
||||
depothead_Id = #{record.depotheadId,jdbcType=BIGINT},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
@@ -283,13 +293,14 @@
|
||||
set id = #{record.id,jdbcType=BIGINT},
|
||||
material_Id = #{record.materialId,jdbcType=BIGINT},
|
||||
serial_Number = #{record.serialNumber,jdbcType=VARCHAR},
|
||||
is_Sell = #{record.isSell,jdbcType=BIT},
|
||||
is_Sell = #{record.isSell,jdbcType=VARCHAR},
|
||||
remark = #{record.remark,jdbcType=VARCHAR},
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=BIT},
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||
create_Time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
creator = #{record.creator,jdbcType=BIGINT},
|
||||
update_Time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||
updater = #{record.updater,jdbcType=BIGINT}
|
||||
updater = #{record.updater,jdbcType=BIGINT},
|
||||
depothead_Id = #{record.depotheadId,jdbcType=BIGINT}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -308,13 +319,13 @@
|
||||
serial_Number = #{serialNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isSell != null">
|
||||
is_Sell = #{isSell,jdbcType=BIT},
|
||||
is_Sell = #{isSell,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
delete_Flag = #{deleteFlag,jdbcType=BIT},
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_Time = #{createTime,jdbcType=TIMESTAMP},
|
||||
@@ -328,6 +339,9 @@
|
||||
<if test="updater != null">
|
||||
updater = #{updater,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="depotheadId != null">
|
||||
depothead_Id = #{depotheadId,jdbcType=BIGINT},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
@@ -339,13 +353,14 @@
|
||||
update jsh_serial_number
|
||||
set material_Id = #{materialId,jdbcType=BIGINT},
|
||||
serial_Number = #{serialNumber,jdbcType=VARCHAR},
|
||||
is_Sell = #{isSell,jdbcType=BIT},
|
||||
is_Sell = #{isSell,jdbcType=VARCHAR},
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
delete_Flag = #{deleteFlag,jdbcType=BIT},
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||
create_Time = #{createTime,jdbcType=TIMESTAMP},
|
||||
creator = #{creator,jdbcType=BIGINT},
|
||||
update_Time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
updater = #{updater,jdbcType=BIGINT}
|
||||
updater = #{updater,jdbcType=BIGINT},
|
||||
depothead_Id = #{depotheadId,jdbcType=BIGINT}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user