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_name, unit, shop_id, category_id,attr_id, attribute_list, supplier_id,supplier_name, product_sn, barcode, price, purchase_price, wholesale_price, product_picture, product_video, product_intro, sales_week, print_barcode, tail_warn,in_storage_status delete from t_product where id = #{id,jdbcType=VARCHAR} delete from t_product insert into t_product (id, create_by, create_time, del_flag, update_by, update_time, product_name, unit, shop_id, category_id,attr_id, attribute_list, supplier_id, product_sn, barcode, price, purchase_price, wholesale_price, product_picture, product_video, product_intro, sales_week, print_barcode, tail_warn,in_storage_status) values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{productName,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR},#{attrId,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=TIMESTAMP}, #{printBarcode,jdbcType=VARCHAR}, #{tailWarn,jdbcType=INTEGER}, #{inStorageStatus,jdbcType=INTEGER}) insert into t_product id, create_by, create_time, del_flag, update_by, update_time, product_name, unit, shop_id, category_id, attr_id, attribute_list, supplier_id, product_sn, barcode, price, purchase_price, wholesale_price, product_picture, product_video, product_intro, sales_week, print_barcode, tail_warn, in_storage_status, #{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{productName,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR}, #{attrId,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=TIMESTAMP}, #{printBarcode,jdbcType=VARCHAR}, #{tailWarn,jdbcType=INTEGER}, #{inStorageStatus,jdbcType=INTEGER}, update t_product 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_name = #{record.productName,jdbcType=VARCHAR}, unit = #{record.unit,jdbcType=VARCHAR}, shop_id = #{record.shopId,jdbcType=VARCHAR}, category_id = #{record.categoryId,jdbcType=VARCHAR}, attr_id = #{record.attrId,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=TIMESTAMP}, print_barcode = #{record.printBarcode,jdbcType=VARCHAR}, tail_warn = #{record.tailWarn,jdbcType=INTEGER}, in_storage_status = #{record.inStorageStatus,jdbcType=INTEGER}, update t_product 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_name = #{record.productName,jdbcType=VARCHAR}, unit = #{record.unit,jdbcType=VARCHAR}, shop_id = #{record.shopId,jdbcType=VARCHAR}, category_id = #{record.categoryId,jdbcType=VARCHAR}, attr_id = #{record.attrId,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=TIMESTAMP}, print_barcode = #{record.printBarcode,jdbcType=VARCHAR}, tail_warn = #{record.tailWarn,jdbcType=INTEGER}, in_storage_status = #{record.inStorageStatus,jdbcType=INTEGER} update t_product 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_name = #{productName,jdbcType=VARCHAR}, unit = #{unit,jdbcType=VARCHAR}, shop_id = #{shopId,jdbcType=VARCHAR}, category_id = #{categoryId,jdbcType=VARCHAR}, attr_id = #{attrId,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=TIMESTAMP}, print_barcode = #{printBarcode,jdbcType=VARCHAR}, tail_warn = #{tailWarn,jdbcType=INTEGER}, in_storage_status = #{inStorageStatus,jdbcType=INTEGER}, where id = #{id,jdbcType=VARCHAR} update t_product 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_name = #{productName,jdbcType=VARCHAR}, unit = #{unit,jdbcType=VARCHAR}, shop_id = #{shopId,jdbcType=VARCHAR}, category_id = #{categoryId,jdbcType=VARCHAR}, attr_id = #{attrId,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=TIMESTAMP}, print_barcode = #{printBarcode,jdbcType=VARCHAR}, tail_warn = #{tailWarn,jdbcType=INTEGER}, in_storage_status = #{inStorageStatus,jdbcType=INTEGER} where id = #{id,jdbcType=VARCHAR} update t_product set del_flag = 2 where category_id = #{categoryId,jdbcType=VARCHAR} insert into t_product (id, create_by, create_time, del_flag, update_by, update_time, product_name, unit, shop_id, category_id,attr_id, attribute_list, supplier_id,supplier_name, product_sn, barcode, price, purchase_price, wholesale_price, product_picture, product_video, product_intro, sales_week, print_barcode, tail_warn,in_storage_status) values (#{product.id,jdbcType=VARCHAR},#{product.createBy,jdbcType=VARCHAR},#{product.createTime,jdbcType=TIMESTAMP}, #{product.delFlag,jdbcType=INTEGER},#{product.updateBy,jdbcType=VARCHAR},#{product.updateTime,jdbcType=TIMESTAMP}, #{product.productName,jdbcType=VARCHAR},#{product.unit,jdbcType=VARCHAR},#{product.shopId,jdbcType=VARCHAR}, #{product.categoryId,jdbcType=VARCHAR},#{product.attrId,jdbcType=VARCHAR},#{product.attributeList,jdbcType=VARCHAR}, #{product.supplierId,jdbcType=VARCHAR},#{product.supplierName,jdbcType=VARCHAR},#{product.productSn,jdbcType=VARCHAR}, #{product.barcode,jdbcType=VARCHAR},#{product.price,jdbcType=DECIMAL},#{product.purchasePrice,jdbcType=DECIMAL}, #{product.wholesalePrice,jdbcType=DECIMAL},#{product.productPicture,jdbcType=VARCHAR},#{product.productVideo,jdbcType=VARCHAR}, #{product.productIntro,jdbcType=VARCHAR},#{product.salesWeek,jdbcType=DATE},#{product.printBarcode,jdbcType=VARCHAR}, #{product.tailWarn,jdbcType=INTEGER},#{product.inStorageStatus,jdbcType=INTEGER}) update t_product set del_flag = #{delFlag,jdbcType=INTEGER} where id in #{listItem} update t_product set purchase_price = #{item.purchasePrice} WHERE id = #{item.id}