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, sale_id, product_id,
product_name, unit, shop_id, category_id, attribute_list, price, purchase_price,
wholesale_price, product_count, discount, discount_amount, real_price,product_picture,product_sn
delete from t_sale_detail
where id = #{id,jdbcType=VARCHAR}
delete from t_sale_detail
insert into t_sale_detail (id, create_by, create_time,
del_flag, update_by, update_time,
sale_id, product_id, product_name,
unit, shop_id, category_id,
attribute_list, price, purchase_price,
wholesale_price, product_count, discount,
discount_amount, real_price,product_picture,product_sn)
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{saleId,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR},
#{unit,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR},
#{attributeList,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{purchasePrice,jdbcType=DECIMAL},
#{wholesalePrice,jdbcType=DECIMAL}, #{productCount,jdbcType=INTEGER}, #{discount,jdbcType=DECIMAL},
#{discountAmount,jdbcType=DECIMAL}, #{realPrice,jdbcType=DECIMAL}, #{productPicture,jdbcType=VARCHAR}, #{productSn,jdbcType=VARCHAR})
insert into t_sale_detail
id,
create_by,
create_time,
del_flag,
update_by,
update_time,
sale_id,
product_id,
product_name,
unit,
shop_id,
category_id,
attribute_list,
price,
purchase_price,
wholesale_price,
product_count,
discount,
discount_amount,
real_price,
#{id,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER},
#{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{saleId,jdbcType=VARCHAR},
#{productId,jdbcType=VARCHAR},
#{productName,jdbcType=VARCHAR},
#{unit,jdbcType=VARCHAR},
#{shopId,jdbcType=VARCHAR},
#{categoryId,jdbcType=VARCHAR},
#{attributeList,jdbcType=VARCHAR},
#{price,jdbcType=DECIMAL},
#{purchasePrice,jdbcType=DECIMAL},
#{wholesalePrice,jdbcType=DECIMAL},
#{productCount,jdbcType=INTEGER},
#{discount,jdbcType=DECIMAL},
#{discountAmount,jdbcType=DECIMAL},
#{realPrice,jdbcType=DECIMAL},
update t_sale_detail
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},
sale_id = #{record.saleId,jdbcType=VARCHAR},
product_id = #{record.productId,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
unit = #{record.unit,jdbcType=VARCHAR},
shop_id = #{record.shopId,jdbcType=VARCHAR},
category_id = #{record.categoryId,jdbcType=VARCHAR},
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
purchase_price = #{record.purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{record.wholesalePrice,jdbcType=DECIMAL},
product_count = #{record.productCount,jdbcType=INTEGER},
discount = #{record.discount,jdbcType=DECIMAL},
discount_amount = #{record.discountAmount,jdbcType=DECIMAL},
real_price = #{record.realPrice,jdbcType=DECIMAL},
update t_sale_detail
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},
sale_id = #{record.saleId,jdbcType=VARCHAR},
product_id = #{record.productId,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
unit = #{record.unit,jdbcType=VARCHAR},
shop_id = #{record.shopId,jdbcType=VARCHAR},
category_id = #{record.categoryId,jdbcType=VARCHAR},
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
purchase_price = #{record.purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{record.wholesalePrice,jdbcType=DECIMAL},
product_count = #{record.productCount,jdbcType=INTEGER},
discount = #{record.discount,jdbcType=DECIMAL},
discount_amount = #{record.discountAmount,jdbcType=DECIMAL},
real_price = #{record.realPrice,jdbcType=DECIMAL}
update t_sale_detail
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},
sale_id = #{saleId,jdbcType=VARCHAR},
product_id = #{productId,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
unit = #{unit,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=VARCHAR},
attribute_list = #{attributeList,jdbcType=VARCHAR},
price = #{price,jdbcType=DECIMAL},
purchase_price = #{purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{wholesalePrice,jdbcType=DECIMAL},
product_count = #{productCount,jdbcType=INTEGER},
discount = #{discount,jdbcType=DECIMAL},
discount_amount = #{discountAmount,jdbcType=DECIMAL},
real_price = #{realPrice,jdbcType=DECIMAL},
where id = #{id,jdbcType=VARCHAR}
update t_sale_detail
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},
sale_id = #{saleId,jdbcType=VARCHAR},
product_id = #{productId,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
unit = #{unit,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=VARCHAR},
attribute_list = #{attributeList,jdbcType=VARCHAR},
price = #{price,jdbcType=DECIMAL},
purchase_price = #{purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{wholesalePrice,jdbcType=DECIMAL},
product_count = #{productCount,jdbcType=INTEGER},
discount = #{discount,jdbcType=DECIMAL},
discount_amount = #{discountAmount,jdbcType=DECIMAL},
real_price = #{realPrice,jdbcType=DECIMAL}
where id = #{id,jdbcType=VARCHAR}
delete from t_sale_detail
where sale_id = #{saleId,jdbcType=VARCHAR}
insert into t_sale_detail (id, create_by, create_time,
del_flag, update_by, update_time,
sale_id, product_id, product_name,
unit, shop_id, category_id,
attribute_list, price, purchase_price,
wholesale_price, product_count, discount,
discount_amount, real_price,product_picture,product_sn) values
(#{entity.id,jdbcType=VARCHAR}, #{entity.createBy,jdbcType=VARCHAR}, #{entity.createTime,jdbcType=TIMESTAMP},
#{entity.delFlag,jdbcType=INTEGER}, #{entity.updateBy,jdbcType=VARCHAR}, #{entity.updateTime,jdbcType=TIMESTAMP},
#{entity.saleId,jdbcType=VARCHAR}, #{entity.productId,jdbcType=VARCHAR}, #{entity.productName,jdbcType=VARCHAR},
#{entity.unit,jdbcType=VARCHAR}, #{entity.shopId,jdbcType=VARCHAR}, #{entity.categoryId,jdbcType=VARCHAR},
#{entity.attributeList,jdbcType=VARCHAR}, #{entity.price,jdbcType=DECIMAL}, #{entity.purchasePrice,jdbcType=DECIMAL},
#{entity.wholesalePrice,jdbcType=DECIMAL}, #{entity.productCount,jdbcType=INTEGER}, #{entity.discount,jdbcType=DECIMAL},
#{entity.discountAmount,jdbcType=DECIMAL}, #{entity.realPrice,jdbcType=DECIMAL}, #{entity.productPicture,jdbcType=VARCHAR}, #{entity.productSn,jdbcType=VARCHAR})