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