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, product_id, product_name,
unit, shop_id, category_id, attribute_list, supplier_id, product_sn, barcode, price,
purchase_price, wholesale_price, product_picture, product_video, product_intro, sales_week,
print_barcode, stock_count
delete from t_stock
where id = #{id,jdbcType=VARCHAR}
delete from t_stock
insert into t_stock (id, create_by, create_time,
del_flag, update_by, update_time,
product_id, product_name, unit,
shop_id, category_id, attribute_list,
supplier_id, product_sn, barcode,
price, purchase_price, wholesale_price,
product_picture, product_video, product_intro,
sales_week, print_barcode, stock_count
)
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{productId,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR},
#{shopId,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR}, #{attributeList,jdbcType=VARCHAR},
#{supplierId,jdbcType=VARCHAR}, #{productSn,jdbcType=VARCHAR}, #{barcode,jdbcType=VARCHAR},
#{price,jdbcType=DECIMAL}, #{purchasePrice,jdbcType=DECIMAL}, #{wholesalePrice,jdbcType=DECIMAL},
#{productPicture,jdbcType=VARCHAR}, #{productVideo,jdbcType=VARCHAR}, #{productIntro,jdbcType=VARCHAR},
#{salesWeek,jdbcType=VARCHAR}, #{printBarcode,jdbcType=VARCHAR}, #{stockCount,jdbcType=INTEGER}
)
insert into t_stock
id,
create_by,
create_time,
del_flag,
update_by,
update_time,
product_id,
product_name,
unit,
shop_id,
category_id,
attribute_list,
supplier_id,
product_sn,
barcode,
price,
purchase_price,
wholesale_price,
product_picture,
product_video,
product_intro,
sales_week,
print_barcode,
stock_count,
#{id,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER},
#{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{productId,jdbcType=VARCHAR},
#{productName,jdbcType=VARCHAR},
#{unit,jdbcType=VARCHAR},
#{shopId,jdbcType=VARCHAR},
#{categoryId,jdbcType=VARCHAR},
#{attributeList,jdbcType=VARCHAR},
#{supplierId,jdbcType=VARCHAR},
#{productSn,jdbcType=VARCHAR},
#{barcode,jdbcType=VARCHAR},
#{price,jdbcType=DECIMAL},
#{purchasePrice,jdbcType=DECIMAL},
#{wholesalePrice,jdbcType=DECIMAL},
#{productPicture,jdbcType=VARCHAR},
#{productVideo,jdbcType=VARCHAR},
#{productIntro,jdbcType=VARCHAR},
#{salesWeek,jdbcType=VARCHAR},
#{printBarcode,jdbcType=VARCHAR},
#{stockCount,jdbcType=INTEGER},
update t_stock
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},
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},
supplier_id = #{record.supplierId,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
barcode = #{record.barcode,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
purchase_price = #{record.purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{record.wholesalePrice,jdbcType=DECIMAL},
product_picture = #{record.productPicture,jdbcType=VARCHAR},
product_video = #{record.productVideo,jdbcType=VARCHAR},
product_intro = #{record.productIntro,jdbcType=VARCHAR},
sales_week = #{record.salesWeek,jdbcType=VARCHAR},
print_barcode = #{record.printBarcode,jdbcType=VARCHAR},
stock_count = #{record.stockCount,jdbcType=INTEGER},
update t_stock
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},
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},
supplier_id = #{record.supplierId,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
barcode = #{record.barcode,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
purchase_price = #{record.purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{record.wholesalePrice,jdbcType=DECIMAL},
product_picture = #{record.productPicture,jdbcType=VARCHAR},
product_video = #{record.productVideo,jdbcType=VARCHAR},
product_intro = #{record.productIntro,jdbcType=VARCHAR},
sales_week = #{record.salesWeek,jdbcType=VARCHAR},
print_barcode = #{record.printBarcode,jdbcType=VARCHAR},
stock_count = #{record.stockCount,jdbcType=INTEGER}
update t_stock
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},
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},
supplier_id = #{supplierId,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
barcode = #{barcode,jdbcType=VARCHAR},
price = #{price,jdbcType=DECIMAL},
purchase_price = #{purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{wholesalePrice,jdbcType=DECIMAL},
product_picture = #{productPicture,jdbcType=VARCHAR},
product_video = #{productVideo,jdbcType=VARCHAR},
product_intro = #{productIntro,jdbcType=VARCHAR},
sales_week = #{salesWeek,jdbcType=VARCHAR},
print_barcode = #{printBarcode,jdbcType=VARCHAR},
stock_count = #{stockCount,jdbcType=INTEGER},
where id = #{id,jdbcType=VARCHAR}
update t_stock
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},
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},
supplier_id = #{supplierId,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
barcode = #{barcode,jdbcType=VARCHAR},
price = #{price,jdbcType=DECIMAL},
purchase_price = #{purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{wholesalePrice,jdbcType=DECIMAL},
product_picture = #{productPicture,jdbcType=VARCHAR},
product_video = #{productVideo,jdbcType=VARCHAR},
product_intro = #{productIntro,jdbcType=VARCHAR},
sales_week = #{salesWeek,jdbcType=VARCHAR},
print_barcode = #{printBarcode,jdbcType=VARCHAR},
stock_count = #{stockCount,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}