优化序列号模块
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
<result column="creator" jdbcType="BIGINT" property="creator" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="updater" jdbcType="BIGINT" property="updater" />
|
||||
<result column="depot_head_id" jdbcType="BIGINT" property="depotHeadId" />
|
||||
<result column="in_bill_no" jdbcType="VARCHAR" property="inBillNo" />
|
||||
<result column="out_bill_no" jdbcType="VARCHAR" property="outBillNo" />
|
||||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
@@ -76,7 +77,7 @@
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, material_id, depot_id, serial_number, is_sell, remark, delete_flag, create_time,
|
||||
creator, update_time, updater, depot_head_id, tenant_id
|
||||
creator, update_time, updater, in_bill_no, out_bill_no, tenant_id
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.SerialNumberExample" resultMap="BaseResultMap">
|
||||
select
|
||||
@@ -112,13 +113,13 @@
|
||||
insert into jsh_serial_number (id, material_id, depot_id,
|
||||
serial_number, is_sell, remark,
|
||||
delete_flag, create_time, creator,
|
||||
update_time, updater, depot_head_id,
|
||||
tenant_id)
|
||||
update_time, updater, in_bill_no,
|
||||
out_bill_no, tenant_id)
|
||||
values (#{id,jdbcType=BIGINT}, #{materialId,jdbcType=BIGINT}, #{depotId,jdbcType=BIGINT},
|
||||
#{serialNumber,jdbcType=VARCHAR}, #{isSell,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
|
||||
#{deleteFlag,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{creator,jdbcType=BIGINT},
|
||||
#{updateTime,jdbcType=TIMESTAMP}, #{updater,jdbcType=BIGINT}, #{depotHeadId,jdbcType=BIGINT},
|
||||
#{tenantId,jdbcType=BIGINT})
|
||||
#{updateTime,jdbcType=TIMESTAMP}, #{updater,jdbcType=BIGINT}, #{inBillNo,jdbcType=VARCHAR},
|
||||
#{outBillNo,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.SerialNumber">
|
||||
insert into jsh_serial_number
|
||||
@@ -156,8 +157,11 @@
|
||||
<if test="updater != null">
|
||||
updater,
|
||||
</if>
|
||||
<if test="depotHeadId != null">
|
||||
depot_head_id,
|
||||
<if test="inBillNo != null">
|
||||
in_bill_no,
|
||||
</if>
|
||||
<if test="outBillNo != null">
|
||||
out_bill_no,
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id,
|
||||
@@ -197,8 +201,11 @@
|
||||
<if test="updater != null">
|
||||
#{updater,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="depotHeadId != null">
|
||||
#{depotHeadId,jdbcType=BIGINT},
|
||||
<if test="inBillNo != null">
|
||||
#{inBillNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="outBillNo != null">
|
||||
#{outBillNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
#{tenantId,jdbcType=BIGINT},
|
||||
@@ -247,8 +254,11 @@
|
||||
<if test="record.updater != null">
|
||||
updater = #{record.updater,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="record.depotHeadId != null">
|
||||
depot_head_id = #{record.depotHeadId,jdbcType=BIGINT},
|
||||
<if test="record.inBillNo != null">
|
||||
in_bill_no = #{record.inBillNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.outBillNo != null">
|
||||
out_bill_no = #{record.outBillNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.tenantId != null">
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||
@@ -271,7 +281,8 @@
|
||||
creator = #{record.creator,jdbcType=BIGINT},
|
||||
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||
updater = #{record.updater,jdbcType=BIGINT},
|
||||
depot_head_id = #{record.depotHeadId,jdbcType=BIGINT},
|
||||
in_bill_no = #{record.inBillNo,jdbcType=VARCHAR},
|
||||
out_bill_no = #{record.outBillNo,jdbcType=VARCHAR},
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
@@ -310,8 +321,11 @@
|
||||
<if test="updater != null">
|
||||
updater = #{updater,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="depotHeadId != null">
|
||||
depot_head_id = #{depotHeadId,jdbcType=BIGINT},
|
||||
<if test="inBillNo != null">
|
||||
in_bill_no = #{inBillNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="outBillNo != null">
|
||||
out_bill_no = #{outBillNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
@@ -331,7 +345,8 @@
|
||||
creator = #{creator,jdbcType=BIGINT},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
updater = #{updater,jdbcType=BIGINT},
|
||||
depot_head_id = #{depotHeadId,jdbcType=BIGINT},
|
||||
in_bill_no = #{inBillNo,jdbcType=VARCHAR},
|
||||
out_bill_no = #{outBillNo,jdbcType=VARCHAR},
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
|
||||
Reference in New Issue
Block a user