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, name, basic_unit, other_unit, other_unit_two, other_unit_three, ratio, ratio_two,
ratio_three, enabled, tenant_id, delete_flag
delete from jsh_unit
where id = #{id,jdbcType=BIGINT}
delete from jsh_unit
insert into jsh_unit (id, name, basic_unit,
other_unit, other_unit_two, other_unit_three,
ratio, ratio_two, ratio_three,
enabled, tenant_id, delete_flag
)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{basicUnit,jdbcType=VARCHAR},
#{otherUnit,jdbcType=VARCHAR}, #{otherUnitTwo,jdbcType=VARCHAR}, #{otherUnitThree,jdbcType=VARCHAR},
#{ratio,jdbcType=DECIMAL}, #{ratioTwo,jdbcType=DECIMAL}, #{ratioThree,jdbcType=DECIMAL},
#{enabled,jdbcType=BIT}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}
)
insert into jsh_unit
id,
name,
basic_unit,
other_unit,
other_unit_two,
other_unit_three,
ratio,
ratio_two,
ratio_three,
enabled,
tenant_id,
delete_flag,
#{id,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR},
#{basicUnit,jdbcType=VARCHAR},
#{otherUnit,jdbcType=VARCHAR},
#{otherUnitTwo,jdbcType=VARCHAR},
#{otherUnitThree,jdbcType=VARCHAR},
#{ratio,jdbcType=DECIMAL},
#{ratioTwo,jdbcType=DECIMAL},
#{ratioThree,jdbcType=DECIMAL},
#{enabled,jdbcType=BIT},
#{tenantId,jdbcType=BIGINT},
#{deleteFlag,jdbcType=VARCHAR},
update jsh_unit
id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
basic_unit = #{record.basicUnit,jdbcType=VARCHAR},
other_unit = #{record.otherUnit,jdbcType=VARCHAR},
other_unit_two = #{record.otherUnitTwo,jdbcType=VARCHAR},
other_unit_three = #{record.otherUnitThree,jdbcType=VARCHAR},
ratio = #{record.ratio,jdbcType=DECIMAL},
ratio_two = #{record.ratioTwo,jdbcType=DECIMAL},
ratio_three = #{record.ratioThree,jdbcType=DECIMAL},
enabled = #{record.enabled,jdbcType=BIT},
tenant_id = #{record.tenantId,jdbcType=BIGINT},
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR},
update jsh_unit
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
basic_unit = #{record.basicUnit,jdbcType=VARCHAR},
other_unit = #{record.otherUnit,jdbcType=VARCHAR},
other_unit_two = #{record.otherUnitTwo,jdbcType=VARCHAR},
other_unit_three = #{record.otherUnitThree,jdbcType=VARCHAR},
ratio = #{record.ratio,jdbcType=DECIMAL},
ratio_two = #{record.ratioTwo,jdbcType=DECIMAL},
ratio_three = #{record.ratioThree,jdbcType=DECIMAL},
enabled = #{record.enabled,jdbcType=BIT},
tenant_id = #{record.tenantId,jdbcType=BIGINT},
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}
update jsh_unit
name = #{name,jdbcType=VARCHAR},
basic_unit = #{basicUnit,jdbcType=VARCHAR},
other_unit = #{otherUnit,jdbcType=VARCHAR},
other_unit_two = #{otherUnitTwo,jdbcType=VARCHAR},
other_unit_three = #{otherUnitThree,jdbcType=VARCHAR},
ratio = #{ratio,jdbcType=DECIMAL},
ratio_two = #{ratioTwo,jdbcType=DECIMAL},
ratio_three = #{ratioThree,jdbcType=DECIMAL},
enabled = #{enabled,jdbcType=BIT},
tenant_id = #{tenantId,jdbcType=BIGINT},
delete_flag = #{deleteFlag,jdbcType=VARCHAR},
where id = #{id,jdbcType=BIGINT}
update jsh_unit
set name = #{name,jdbcType=VARCHAR},
basic_unit = #{basicUnit,jdbcType=VARCHAR},
other_unit = #{otherUnit,jdbcType=VARCHAR},
other_unit_two = #{otherUnitTwo,jdbcType=VARCHAR},
other_unit_three = #{otherUnitThree,jdbcType=VARCHAR},
ratio = #{ratio,jdbcType=DECIMAL},
ratio_two = #{ratioTwo,jdbcType=DECIMAL},
ratio_three = #{ratioThree,jdbcType=DECIMAL},
enabled = #{enabled,jdbcType=BIT},
tenant_id = #{tenantId,jdbcType=BIGINT},
delete_flag = #{deleteFlag,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}