|
@@ -130,22 +130,22 @@
|
|
|
|
|
|
<insert id="insert" parameterType="com.jsh.erp.datasource.entities.Material">
|
|
|
insert into jsh_material (id, category_id, name,
|
|
|
- mfrs, model, standard,
|
|
|
+ model, standard,
|
|
|
brand, mnemonic, color,
|
|
|
unit, remark, img_name,
|
|
|
unit_id, expiry_num, weight,
|
|
|
enabled, other_field1, other_field2,
|
|
|
other_field3, enable_serial_number, enable_batch_number,
|
|
|
- position, tenant_id, delete_flag
|
|
|
+ tenant_id, delete_flag
|
|
|
)
|
|
|
values (#{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
|
|
|
- #{mfrs,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{standard,jdbcType=VARCHAR},
|
|
|
+ #{model,jdbcType=VARCHAR}, #{standard,jdbcType=VARCHAR},
|
|
|
#{brand,jdbcType=VARCHAR}, #{mnemonic,jdbcType=VARCHAR}, #{color,jdbcType=VARCHAR},
|
|
|
#{unit,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{imgName,jdbcType=VARCHAR},
|
|
|
- #{unitId,jdbcType=BIGINT}, #{expiryNum,jdbcType=INTEGER}, #{weight,jdbcType=DECIMAL},
|
|
|
+ #{unitId,jdbcType=BIGINT}, #{weight,jdbcType=DECIMAL},
|
|
|
#{enabled,jdbcType=BIT}, #{otherField1,jdbcType=VARCHAR}, #{otherField2,jdbcType=VARCHAR},
|
|
|
#{otherField3,jdbcType=VARCHAR}, #{enableSerialNumber,jdbcType=VARCHAR}, #{enableBatchNumber,jdbcType=VARCHAR},
|
|
|
- #{position,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}
|
|
|
+ #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -161,9 +161,6 @@
|
|
|
<if test="name != null">
|
|
|
name,
|
|
|
</if>
|
|
|
- <if test="mfrs != null">
|
|
|
- mfrs,
|
|
|
- </if>
|
|
|
<if test="model != null">
|
|
|
model,
|
|
|
</if>
|
|
@@ -191,9 +188,6 @@
|
|
|
<if test="unitId != null">
|
|
|
unit_id,
|
|
|
</if>
|
|
|
- <if test="expiryNum != null">
|
|
|
- expiry_num,
|
|
|
- </if>
|
|
|
<if test="weight != null">
|
|
|
weight,
|
|
|
</if>
|
|
@@ -215,9 +209,6 @@
|
|
|
<if test="enableBatchNumber != null">
|
|
|
enable_batch_number,
|
|
|
</if>
|
|
|
- <if test="position != null">
|
|
|
- position,
|
|
|
- </if>
|
|
|
<if test="tenantId != null">
|
|
|
tenant_id,
|
|
|
</if>
|
|
@@ -235,9 +226,6 @@
|
|
|
<if test="name != null">
|
|
|
#{name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="mfrs != null">
|
|
|
- #{mfrs,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="model != null">
|
|
|
#{model,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -265,9 +253,6 @@
|
|
|
<if test="unitId != null">
|
|
|
#{unitId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="expiryNum != null">
|
|
|
- #{expiryNum,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="weight != null">
|
|
|
#{weight,jdbcType=DECIMAL},
|
|
|
</if>
|
|
@@ -289,9 +274,6 @@
|
|
|
<if test="enableBatchNumber != null">
|
|
|
#{enableBatchNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="position != null">
|
|
|
- #{position,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="tenantId != null">
|
|
|
#{tenantId,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -320,9 +302,6 @@
|
|
|
<if test="record.name != null">
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.mfrs != null">
|
|
|
- mfrs = #{record.mfrs,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="record.model != null">
|
|
|
model = #{record.model,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -350,9 +329,6 @@
|
|
|
<if test="record.unitId != null">
|
|
|
unit_id = #{record.unitId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="record.expiryNum != null">
|
|
|
- expiry_num = #{record.expiryNum,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="record.weight != null">
|
|
|
weight = #{record.weight,jdbcType=DECIMAL},
|
|
|
</if>
|
|
@@ -374,9 +350,6 @@
|
|
|
<if test="record.enableBatchNumber != null">
|
|
|
enable_batch_number = #{record.enableBatchNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.position != null">
|
|
|
- position = #{record.position,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="record.tenantId != null">
|
|
|
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -394,7 +367,6 @@
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
category_id = #{record.categoryId,jdbcType=BIGINT},
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
- mfrs = #{record.mfrs,jdbcType=VARCHAR},
|
|
|
model = #{record.model,jdbcType=VARCHAR},
|
|
|
standard = #{record.standard,jdbcType=VARCHAR},
|
|
|
brand = #{record.brand,jdbcType=VARCHAR},
|
|
@@ -404,7 +376,6 @@
|
|
|
remark = #{record.remark,jdbcType=VARCHAR},
|
|
|
img_name = #{record.imgName,jdbcType=VARCHAR},
|
|
|
unit_id = #{record.unitId,jdbcType=BIGINT},
|
|
|
- expiry_num = #{record.expiryNum,jdbcType=INTEGER},
|
|
|
weight = #{record.weight,jdbcType=DECIMAL},
|
|
|
enabled = #{record.enabled,jdbcType=BIT},
|
|
|
other_field1 = #{record.otherField1,jdbcType=VARCHAR},
|
|
@@ -412,7 +383,6 @@
|
|
|
other_field3 = #{record.otherField3,jdbcType=VARCHAR},
|
|
|
enable_serial_number = #{record.enableSerialNumber,jdbcType=VARCHAR},
|
|
|
enable_batch_number = #{record.enableBatchNumber,jdbcType=VARCHAR},
|
|
|
- position = #{record.position,jdbcType=VARCHAR},
|
|
|
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
|
|
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
@@ -497,7 +467,6 @@
|
|
|
update jsh_material
|
|
|
set category_id = #{categoryId,jdbcType=BIGINT},
|
|
|
name = #{name,jdbcType=VARCHAR},
|
|
|
- mfrs = #{mfrs,jdbcType=VARCHAR},
|
|
|
model = #{model,jdbcType=VARCHAR},
|
|
|
standard = #{standard,jdbcType=VARCHAR},
|
|
|
brand = #{brand,jdbcType=VARCHAR},
|
|
@@ -507,7 +476,6 @@
|
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
|
img_name = #{imgName,jdbcType=VARCHAR},
|
|
|
unit_id = #{unitId,jdbcType=BIGINT},
|
|
|
- expiry_num = #{expiryNum,jdbcType=INTEGER},
|
|
|
weight = #{weight,jdbcType=DECIMAL},
|
|
|
enabled = #{enabled,jdbcType=BIT},
|
|
|
other_field1 = #{otherField1,jdbcType=VARCHAR},
|
|
@@ -515,7 +483,6 @@
|
|
|
other_field3 = #{otherField3,jdbcType=VARCHAR},
|
|
|
enable_serial_number = #{enableSerialNumber,jdbcType=VARCHAR},
|
|
|
enable_batch_number = #{enableBatchNumber,jdbcType=VARCHAR},
|
|
|
- position = #{position,jdbcType=VARCHAR},
|
|
|
tenant_id = #{tenantId,jdbcType=BIGINT},
|
|
|
delete_flag = #{deleteFlag,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|