and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, material_id, depot_id, number, low_safe_stock, high_safe_stock, tenant_id, delete_flag
delete from jsh_material_initial_stock
where id = #{id,jdbcType=BIGINT}
delete from jsh_material_initial_stock
insert into jsh_material_initial_stock (id, material_id, depot_id,
number, low_safe_stock, high_safe_stock,
tenant_id, delete_flag)
values (#{id,jdbcType=BIGINT}, #{materialId,jdbcType=BIGINT}, #{depotId,jdbcType=BIGINT},
#{number,jdbcType=DECIMAL}, #{lowSafeStock,jdbcType=DECIMAL}, #{highSafeStock,jdbcType=DECIMAL},
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR})
insert into jsh_material_initial_stock
id,
material_id,
depot_id,
number,
low_safe_stock,
high_safe_stock,
tenant_id,
delete_flag,
#{id,jdbcType=BIGINT},
#{materialId,jdbcType=BIGINT},
#{depotId,jdbcType=BIGINT},
#{number,jdbcType=DECIMAL},
#{lowSafeStock,jdbcType=DECIMAL},
#{highSafeStock,jdbcType=DECIMAL},
#{tenantId,jdbcType=BIGINT},
#{deleteFlag,jdbcType=VARCHAR},
update jsh_material_initial_stock
id = #{record.id,jdbcType=BIGINT},
material_id = #{record.materialId,jdbcType=BIGINT},
depot_id = #{record.depotId,jdbcType=BIGINT},
number = #{record.number,jdbcType=DECIMAL},
low_safe_stock = #{record.lowSafeStock,jdbcType=DECIMAL},
high_safe_stock = #{record.highSafeStock,jdbcType=DECIMAL},
tenant_id = #{record.tenantId,jdbcType=BIGINT},
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR},
update jsh_material_initial_stock
set id = #{record.id,jdbcType=BIGINT},
material_id = #{record.materialId,jdbcType=BIGINT},
depot_id = #{record.depotId,jdbcType=BIGINT},
number = #{record.number,jdbcType=DECIMAL},
low_safe_stock = #{record.lowSafeStock,jdbcType=DECIMAL},
high_safe_stock = #{record.highSafeStock,jdbcType=DECIMAL},
tenant_id = #{record.tenantId,jdbcType=BIGINT},
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}
update jsh_material_initial_stock
material_id = #{materialId,jdbcType=BIGINT},
depot_id = #{depotId,jdbcType=BIGINT},
number = #{number,jdbcType=DECIMAL},
low_safe_stock = #{lowSafeStock,jdbcType=DECIMAL},
high_safe_stock = #{highSafeStock,jdbcType=DECIMAL},
tenant_id = #{tenantId,jdbcType=BIGINT},
delete_flag = #{deleteFlag,jdbcType=VARCHAR},
where id = #{id,jdbcType=BIGINT}
update jsh_material_initial_stock
set material_id = #{materialId,jdbcType=BIGINT},
depot_id = #{depotId,jdbcType=BIGINT},
number = #{number,jdbcType=DECIMAL},
low_safe_stock = #{lowSafeStock,jdbcType=DECIMAL},
high_safe_stock = #{highSafeStock,jdbcType=DECIMAL},
tenant_id = #{tenantId,jdbcType=BIGINT},
delete_flag = #{deleteFlag,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}