SELECT g.id, g.type, g.title, g.subtitle, g.STATUS, g.weigh, g.category_ids, wc.name category_name, g.image, g.images, g.params, g.content, g.price, g.original_price, g.is_sku, g.likes, g.views, g.sales, g.show_sales, g.service_ids, g.dispatch_type, g.dispatch_ids, g.create_time, g.update_time, g.deletetime, g.score, g.admin_id, g.check_uid, g.check_status, g.check_remark, g.create_by, g.update_by, g.store_id, g.flag, g.store_goods_flag, g.dept_id, g.submit_time, g.audit_time, g.refund_rule, g.refund_period_day, sbi.`name` AS storeName, sbi.`address` AS address, sbi.images AS storeImage, sbi.latitude AS latitude, sbi.longitude AS longitude, ex.NAME AS dispatchName FROM zdy_wcsc_goods g LEFT JOIN zdy_wcsc_store st ON st.id = g.store_id LEFT JOIN zdy_wcsc_dispatch wd ON wd.id = g.dispatch_ids LEFT JOIN zdy_wcsc_dispatch_express ex ON ex.id = wd.type_ids LEFT JOIN zdy_wcsc_goods_sku_price gsp ON g.id = gsp.goods_id LEFT JOIN zdy_wcsc_category wc ON g.category_ids = wc.id LEFT JOIN zdy_store_base_info sbi ON st.store_id = sbi.id insert into zdy_wcsc_goods type, title, subtitle, status, weigh, category_ids, image, images, params, content, price, original_price, is_sku, likes, views, sales, show_sales, service_ids, dispatch_type, dispatch_ids, create_time, deletetime, score, admin_id, check_uid, check_status, check_remark, create_by, update_by, store_id, flag, dept_id, submit_time, audit_time, refund_rule, refund_period_day, flag_time, store_goods_flag, store_goods_flag_time, #{type}, #{title}, #{subtitle}, #{status}, #{weigh}, #{categoryIds}, #{image}, #{images}, #{params}, #{content}, #{price}, #{originalPrice}, #{isSku}, #{likes}, #{views}, #{sales}, #{showSales}, #{serviceIds}, #{dispatchType}, #{dispatchIds}, sysdate(), #{deletetime}, #{score}, #{adminId}, #{checkUid}, #{checkStatus}, #{checkRemark}, #{createBy}, #{updateBy}, #{storeId}, #{flag}, #{deptId}, #{submitTime}, #{auditTime}, #{refundRule}, #{refundPeriodDay}, #{flagTime}, #{storeGoodsFlag}, #{storeGoodsFlagTime}, update zdy_wcsc_goods type = #{type}, title = #{title}, subtitle = #{subtitle}, status = #{status}, weigh = #{weigh}, category_ids = #{categoryIds}, image = #{image}, images = #{images}, params = #{params}, content = #{content}, price = #{price}, original_price = #{originalPrice}, is_sku = #{isSku}, likes = #{likes}, views = #{views}, sales = #{sales}, show_sales = #{showSales}, service_ids = #{serviceIds}, dispatch_type = #{dispatchType}, dispatch_ids = #{dispatchIds}, update_time = sysdate(), deletetime = #{deletetime}, score = #{score}, admin_id = #{adminId}, check_uid = #{checkUid}, check_status = #{checkStatus}, check_remark = #{checkRemark}, create_by = #{createBy}, update_by = #{updateBy}, store_id = #{storeId}, flag = #{flag}, flag_time= #{flagTime}, store_goods_flag= #{storeGoodsFlag}, store_goods_flag_time= #{storeGoodsFlagTime}, dept_id = #{deptId}, submit_time= #{submitTime}, audit_time= #{auditTime}, refund_rule = #{refundRule}, refund_period_day = #{refundPeriodDay}, where id = #{id} update zdy_wcsc_goods set deletetime = sysdate() where id = #{id} update zdy_wcsc_goods set deletetime = sysdate() where id in #{id} update zdy_wcsc_goods type = #{type}, title = #{title}, subtitle = #{subtitle}, status = #{status}, weigh = #{weigh}, category_ids = #{categoryIds}, image = #{image}, images = #{images}, params = #{params}, content = #{content}, price = #{price}, original_price = #{originalPrice}, is_sku = #{isSku}, likes = #{likes}, views = #{views}, sales = #{sales}, show_sales = #{showSales}, service_ids = #{serviceIds}, dispatch_type = #{dispatchType}, dispatch_ids = #{dispatchIds}, update_time = sysdate(), deletetime = #{deletetime}, score = #{score}, admin_id = #{adminId}, check_uid = #{checkUid}, check_status = #{checkStatus}, check_remark = #{checkRemark}, create_by = #{createBy}, update_by = #{updateBy}, store_id = #{storeId}, flag = #{flag}, dept_id = #{deptId}, submit_time= #{submitTime}, audit_time= #{auditTime}, refund_rule = #{refundRule}, refund_period_day = #{refundPeriodDay}, where id = #{id} update zdy_wcsc_goods set deletetime = sysdate() where store_id in #{id}