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, create_by, create_time, del_flag, update_by, update_time, supplier_id, shop_id,
total_amount, should_pay, already_pay, no_pay
delete from t_purchase
where id = #{id,jdbcType=VARCHAR}
delete from t_purchase
insert into t_purchase (id, create_by, create_time,
del_flag, update_by, update_time,
supplier_id, shop_id, total_amount,
should_pay, already_pay, no_pay
)
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{supplierId,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL},
#{shouldPay,jdbcType=DECIMAL}, #{alreadyPay,jdbcType=DECIMAL}, #{noPay,jdbcType=DECIMAL}
)
insert into t_purchase
id,
create_by,
create_time,
del_flag,
update_by,
update_time,
supplier_id,
shop_id,
total_amount,
should_pay,
already_pay,
no_pay,
#{id,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER},
#{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{supplierId,jdbcType=VARCHAR},
#{shopId,jdbcType=VARCHAR},
#{totalAmount,jdbcType=DECIMAL},
#{shouldPay,jdbcType=DECIMAL},
#{alreadyPay,jdbcType=DECIMAL},
#{noPay,jdbcType=DECIMAL},
update t_purchase
id = #{record.id,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
del_flag = #{record.delFlag,jdbcType=INTEGER},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
supplier_id = #{record.supplierId,jdbcType=VARCHAR},
shop_id = #{record.shopId,jdbcType=VARCHAR},
total_amount = #{record.totalAmount,jdbcType=DECIMAL},
should_pay = #{record.shouldPay,jdbcType=DECIMAL},
already_pay = #{record.alreadyPay,jdbcType=DECIMAL},
no_pay = #{record.noPay,jdbcType=DECIMAL},
update t_purchase
set id = #{record.id,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
del_flag = #{record.delFlag,jdbcType=INTEGER},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
supplier_id = #{record.supplierId,jdbcType=VARCHAR},
shop_id = #{record.shopId,jdbcType=VARCHAR},
total_amount = #{record.totalAmount,jdbcType=DECIMAL},
should_pay = #{record.shouldPay,jdbcType=DECIMAL},
already_pay = #{record.alreadyPay,jdbcType=DECIMAL},
no_pay = #{record.noPay,jdbcType=DECIMAL}
update t_purchase
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
supplier_id = #{supplierId,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
total_amount = #{totalAmount,jdbcType=DECIMAL},
should_pay = #{shouldPay,jdbcType=DECIMAL},
already_pay = #{alreadyPay,jdbcType=DECIMAL},
no_pay = #{noPay,jdbcType=DECIMAL},
where id = #{id,jdbcType=VARCHAR}
update t_purchase
set create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
supplier_id = #{supplierId,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
total_amount = #{totalAmount,jdbcType=DECIMAL},
should_pay = #{shouldPay,jdbcType=DECIMAL},
already_pay = #{alreadyPay,jdbcType=DECIMAL},
no_pay = #{noPay,jdbcType=DECIMAL}
where id = #{id,jdbcType=VARCHAR}