select id, goods_id, auction_id, name, num, unit, imgs, detail, pub_status, pub_time, status, start_time, end_time, real_end_time, rule_type, rule_content, last_price, last_price_time, deal_price, deal_time, deal_account_id, deal_account, paid, bid_count, bid_persion_count, del_flag, create_by, create_time, update_by, update_time, sort, carousel_imgs,merchant_id,merchant_name,merchant_avatar,goods_name,goods_type,private_domain,delay_publish,pub_status,group_id,deposit,service_tariff,pay_time_limit,category,sub_category,properties from lot select l.id, l.goods_id, l.auction_id, l.name, l.num, l.unit, l.imgs, l.detail, l.pub_status, l.pub_time, l.status, l.start_time, l.end_time, l.real_end_time, l.rule_type, l.rule_content, l.last_price, l.last_price_time, l.deal_price, l.deal_time, l.deal_account_id, l.deal_account, l.paid, l.bid_count, l.bid_persion_count, l.del_flag, l.create_by, l.create_time, l.update_by, l.update_time, l.sort,l.carousel_imgs,l.merchant_id,l.merchant_name, l.merchant_avatar,l.goods_name,l.goods_type,l.private_domain,l.group_id,l.live_id from lot l left join bid b on b.lot_id = l.id insert into lot id, goods_id, auction_id, name, num, unit, imgs, detail, pub_status, pub_time, status, start_time, end_time, real_end_time, rule_type, rule_content, last_price, last_price_time, deal_price, deal_time, deal_account_id, deal_account, paid, bid_count, bid_persion_count, del_flag, create_by, create_time, update_by, update_time, sort, carousel_imgs, merchant_id, merchant_name, merchant_avatar, goods_name, goods_type, private_domain, delay_publish, group_id, deposit, service_tariff, pay_time_limit, category, sub_category, properties, #{id}, #{goodsId}, #{auctionId}, #{name}, #{num}, #{unit}, #{imgs}, #{detail}, #{pubStatus}, #{pubTime}, #{status}, #{startTime}, #{endTime}, #{realEndTime}, #{ruleType}, #{ruleContent}, #{lastPrice}, #{lastPriceTime}, #{dealPrice}, #{dealTime}, #{dealAccountId}, #{dealAccount}, #{paid}, #{bidCount}, #{bidPersionCount}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{sort}, #{carouselImgs}, #{merchantId}, #{merchantName}, #{merchantAvatar}, #{goodsName}, #{goodsType}, #{privateDomain}, #{delayPublish}, #{groupId}, #{deposit}, #{serviceTariff}, #{payTimeLimit}, #{category}, #{subCategory}, #{properties,jdbcType=OTHER,typeHandler=cn.hobbystocks.auc.mapper.handler.JsonNodeTypeHandler}::jsonb insert into lot goods_id, auction_id, name, num, unit, imgs, detail, pub_status, status, start_time, end_time, rule_type, rule_content, del_flag, create_by, create_time, sort, carousel_imgs, merchant_id, merchant_name, merchant_avatar, goods_name, goods_type, private_domain, delay_publish, group_id, deposit, service_tariff, pay_time_limit, #{goodsId}, #{auctionId}, #{name}, #{num}, #{unit}, #{imgs}, #{detail}, #{pubStatus}, #{status}, #{startTime}, #{endTime}, #{ruleType}, #{ruleContent}, #{delFlag}, #{createBy}, #{createTime}, #{sort}, #{carouselImgs}, #{merchantId}, #{merchantName}, #{merchantAvatar}, #{goodsName}, #{goodsType}, #{privateDomain}, #{delayPublish}, #{groupId}, #{deposit}, #{serviceTariff}, #{payTimeLimit}, update lot goods_id = #{goodsId}, auction_id = #{auctionId}, name = #{name}, num = #{num}, unit = #{unit}, imgs = #{imgs}, detail = #{detail}, pub_status = #{pubStatus}, pub_time = #{pubTime}, status = #{status}, start_time = #{startTime}, end_time = #{endTime}, real_end_time = #{realEndTime}, rule_type = #{ruleType}, rule_content = #{ruleContent}, last_price = #{lastPrice}, last_price_time = #{lastPriceTime}, deal_price = #{dealPrice}, deal_time = #{dealTime}, deal_account_id = #{dealAccountId}, deal_account = #{dealAccount}, paid = #{paid}, bid_count = #{bidCount}, bid_persion_count = #{bidPersionCount}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, sort = #{sort}, carousel_imgs = #{carouselImgs}, merchant_id = #{merchantId}, merchant_name = #{merchantName}, merchant_avatar = #{merchantAvatar}, goods_name = #{goodsName}, goods_type = #{goodsType}, private_domain = #{privateDomain}, delay_publish = #{delayPublish}, group_id = #{groupId}, deposit=#{deposit}, service_tariff=#{serviceTariff}, pay_time_limit=#{payTimeLimit}, where id = #{id} update lot goods_id = #{goodsId}, auction_id = #{auctionId}, name = #{name}, num = #{num}, unit = #{unit}, imgs = #{imgs}, detail = #{detail}, pub_status = #{pubStatus}, pub_time = #{pubTime}, status = #{status}, start_time = #{startTime}, end_time = #{endTime}, real_end_time = #{realEndTime}, rule_type = #{ruleType}, rule_content = #{ruleContent}, last_price = #{lastPrice}, last_price_time = #{lastPriceTime}, deal_price = #{dealPrice}, deal_time = #{dealTime}, deal_account_id = #{dealAccountId}, deal_account = #{dealAccount}, paid = #{paid}, bid_count = #{bidCount}, bid_persion_count = #{bidPersionCount}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, sort = #{sort}, carousel_imgs = #{carouselImgs}, merchant_id = #{merchantId}, merchant_name = #{merchantName}, merchant_avatar = #{merchantAvatar}, goods_name = #{goodsName}, goods_type = #{goodsType}, private_domain = #{privateDomain}, delay_publish = #{delayPublish}, group_id = #{groupId}, deposit=#{deposit}, service_tariff=#{serviceTariff}, pay_time_limit=#{payTimeLimit}, where id = #{id} update lot set paid = #{paid} where id = #{lotId} update lot goods_id = #{goodsId}, name = #{name}, num = #{num}, unit = #{unit}, imgs = #{imgs}, detail = #{detail}, start_time = #{startTime}, end_time = #{endTime}, update_by = #{updateBy}, update_time = #{updateTime}, sort = #{sort}, carousel_imgs = #{carouselImgs}, merchant_id = #{merchantId}, merchant_name = #{merchantName}, merchant_avatar = #{merchantAvatar}, goods_name = #{goodsName}, goods_type = #{goodsType}, private_domain = #{privateDomain}, delay_publish = #{delayPublish}, group_id = #{groupId}, deposit=#{deposit}, service_tariff=#{serviceTariff}, pay_time_limit=#{payTimeLimit}, where id = #{id} delete from lot where id = #{id} delete from lot where id in #{id}