123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.kmall.admin.dao.GoodsDao">
- <resultMap type="com.kmall.admin.entity.GoodsEntity" id="goodsMap">
- <result property="id" column="id"/>
- <result property="merchSn" column="merch_sn"/>
- <!--<result property="categoryId" column="category_id"/>-->
- <result property="goodsSn" column="goods_sn"/>
- <result property="name" column="name"/>
- <!--<result property="brandId" column="brand_id"/>-->
- <!--<result property="freightId" column="freight_id"/>-->
- <result property="brand" column="brand"/>
- <result property="goodsNumber" column="goods_number"/>
- <result property="keywords" column="keywords"/>
- <result property="goodsBrief" column="goods_brief"/>
- <result property="goodsDesc" column="goods_desc"/>
- <result property="isOnSale" column="is_on_sale"/>
- <result property="addTime" column="add_time"/>
- <result property="sortOrder" column="sort_order"/>
- <result property="isDelete" column="is_delete"/>
- <!--<result property="attributeCategory" column="attribute_category"/>-->
- <result property="counterPrice" column="counter_price"/>
- <result property="extraPrice" column="extra_price"/>
- <result property="isNew" column="is_new"/>
- <result property="goodsUnit" column="goods_unit"/>
- <result property="primaryPicUrl" column="primary_pic_url"/>
- <result property="listPicUrl" column="list_pic_url"/>
- <!--<result property="retailPrice" column="retail_price"/>-->
- <result property="sellVolume" column="sell_volume"/>
- <result property="primaryProductId" column="primary_product_id"/>
- <result property="unitPrice" column="unit_price"/>
- <result property="promotionDesc" column="promotion_desc"/>
- <result property="promotionTag" column="promotion_tag"/>
- <result property="appExclusivePrice" column="app_exclusive_price"/>
- <result property="isAppExclusive" column="is_app_exclusive"/>
- <result property="isLimited" column="is_limited"/>
- <result property="isHot" column="is_hot"/>
- <!--<result property="marketPrice" column="market_price"/>-->
- <result property="goodsType" column="goodsType"/>
- <result property="sku" column="sku"/>
- <result property="goodsBizType" column="goods_biz_type"/>
- <result column="creater_sn" property="createrSn" jdbcType="VARCHAR" />
- <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
- <result column="moder_sn" property="moderSn" jdbcType="VARCHAR" />
- <result column="mod_time" property="modTime" jdbcType="TIMESTAMP" />
- <result column="tstm" property="tstm" jdbcType="TIMESTAMP" />
- <result property="prodBarcode" column="prod_barcode"/>
- <result property="unitCode" column="unit_code"/>
- <result property="goodsDesc" column="goods_desc"/>
- <result property="cusGoodsCode" column="cus_goods_code"/>
- <result property="ciqProdModel" column="ciq_prod_model"/>
- <result property="oriCntCode" column="ori_cnt_code"/>
- <result property="cusDeclEle" column="cus_decl_ele"/>
- <result property="cusRecCode" column="cus_rec_code"/>
- <result property="supplierId" column="supplier_id"/>
- <result property="stockNum" column="stock_num"/>
- <result property="storeName" column="store_name"/>
- <result property="productId" column="productId"/>
- <result property="storeId" column="storeId"/>
- <result column="merch_name" property="merchName" />
- <result column="storeMarketPrice" property="storeMarketPrice" />
- <result column="storeRetailPrice" property="storeRetailPrice" />
- <result column="third_party_merch_code" property="thirdPartyMerchCode" />
- <result column="isStockShare" property="isStockShare" />
- <result column="gross_weight" property="grossWeight" />
- <result column="net_weight" property="netWeight" />
- <result property="isGoodsShareStock" column="is_goods_share_stock"/>
- </resultMap>
- <select id="queryObject" resultType="com.kmall.admin.entity.GoodsEntity">
- SELECT
- a.*, CASE
- when g.id > 0 then 2 else 0 end as goodsType,
- mb.third_party_merch_code,
- mb.is_stock_share isStockShare,
- mb.is_supplier_goods 'isSupplierGoods'
- FROM
- mall_goods a
- LEFT JOIN mall_goods_group g ON g.goods_id = a.id AND g.open_status != 3
- LEFT JOIN third_merchant_biz mb ON a.third_party_merch_code = mb.third_party_merch_code
- WHERE a.id = #{value}
- </select>
- <select id="queryObjectByStoreId" resultMap="goodsMap">
- select
- a.sku,
- a.id,
- psr1.category_id,
- a.goods_sn,
- a.name,
- psr1.brand_id,
- a.goods_number,
- a.keywords,
- a.goods_brief,
- a.is_on_sale,
- a.add_time,
- a.sort_order,
- a.is_delete,
- psr1.attribute_category,
- a.counter_price,
- a.extra_price,
- a.is_new,
- a.goods_unit,
- a.primary_pic_url,
- a.list_pic_url,
- psr1.retail_price,
- psr1.sell_volume,
- a.primary_product_id,
- a.unit_price,
- a.promotion_desc,
- a.promotion_tag,
- a.app_exclusive_price,
- a.is_app_exclusive,
- a.is_limited,
- a.is_hot,
- a.merch_sn,
- m.merch_name,
- psr1.store_id,
- psr1.market_price,
- psr1.stock_num,
- a.goods_desc,a.goods_biz_type,a.goods_rate,
- a.sell_volume goods_sell_volume,
- mb.third_party_merch_code,
- mb.is_stock_share isStockShare,
- mb.is_supplier_goods 'isSupplierGoods',
- mb2.third_party_merch_code 'supplierThirdMerchCode',
- mb2.is_stock_share 'isStockShareBySuppler'
- from mall_goods a left join mall_merch m on a.merch_sn = m.merch_sn
- LEFT JOIN mall_product_store_rela psr1 ON a.id = psr1.goods_id and a.merch_sn = psr1.merch_sn
- LEFT JOIN mall_store s ON s.id = psr1.store_id
- LEFT JOIN third_merchant_biz mb on s.third_party_merch_code = mb.third_party_merch_code
- LEFT JOIN third_merchant_biz mb2 ON a.third_party_merch_code = mb2.third_party_merch_code
- where a.id = #{id} and psr1.store_id = #{storeId}
- </select>
- <select id="queryGoodsByGoodsSnAndStoreId" resultMap="goodsMap">
- select
- a.sku,
- a.id,
- psr1.category_id,
- a.goods_sn,
- a.name,
- psr1.brand_id,
- a.goods_number,
- a.keywords,
- a.goods_brief,
- a.is_on_sale,
- a.add_time,
- a.sort_order,
- a.is_delete,
- psr1.attribute_category,
- a.counter_price,
- a.extra_price,
- a.is_new,
- a.goods_unit,
- a.primary_pic_url,
- a.list_pic_url,
- psr1.retail_price,
- psr1.sell_volume,
- a.primary_product_id,
- a.unit_price,
- a.promotion_desc,
- a.promotion_tag,
- a.app_exclusive_price,
- a.is_app_exclusive,
- a.is_limited,
- a.is_hot,
- a.merch_sn,
- m.merch_name,
- psr1.store_id,
- psr1.market_price,
- psr1.stock_num,
- a.goods_desc,a.goods_biz_type,a.goods_rate,
- a.sell_volume goods_sell_volume,
- mb.third_party_merch_code,
- mb.is_stock_share isStockShare,
- mb.is_supplier_goods 'isSupplierGoods',
- mb2.third_party_merch_code 'supplierThirdMerchCode',
- mb2.is_stock_share 'isStockShareBySuppler'
- from mall_goods a left join mall_merch m on a.merch_sn = m.merch_sn
- LEFT JOIN mall_product_store_rela psr1 ON a.id = psr1.goods_id and a.merch_sn = psr1.merch_sn
- LEFT JOIN mall_store s ON s.id = psr1.store_id
- LEFT JOIN third_merchant_biz mb on s.third_party_merch_code = mb.third_party_merch_code
- LEFT JOIN third_merchant_biz mb2 ON a.third_party_merch_code = mb2.third_party_merch_code
- where a.goods_sn = #{goodsSn} and psr1.store_id = #{storeId}
- </select>
- <select id="queryObjectByProdBarcodeAndBizType" resultType="com.kmall.admin.entity.GoodsEntity">
- SELECT
- a.id,a.sku,a.goods_sn,a.name,a.list_pic_url,a.prod_barcode,r.market_price storeMarketPrice,r.retail_price storeRetailPrice ,r.stock_num,s.store_name,r.product_id,s.id 'storeId'
- FROM
- mall_goods a
- LEFT JOIN mall_product_store_rela r ON r.goods_id = a.id
- inner join mall_store s on r.store_id=s.id
- where a.prod_barcode = #{prodBarcode} and a.goods_biz_type = 11 and r.store_id = #{storeId}
- </select>
- <select id="queryObjectByProdBarcode" resultType="com.kmall.admin.entity.GoodsEntity">
- SELECT
- a.id,a.sku,a.goods_sn,a.name,a.list_pic_url,a.prod_barcode
- FROM
- mall_goods a
- where a.prod_barcode = #{prodBarcode} and a.is_delete = 0
- <if test="goodsId != null and goodsId != ''">
- AND a.id != #{goodsId}
- </if>
- <if test="merchSn != null and merchSn != ''">
- AND a.merch_sn = #{merchSn}
- </if>
- </select>
- <select id="queryObjectBySn" resultType="com.kmall.admin.entity.GoodsEntity">
- SELECT
- a.*, CASE
- when g.id > 0 then 2 else 0 end as goodsType
- FROM
- mall_goods a
- LEFT JOIN mall_goods_group g ON g.goods_id = a.id
- AND g.open_status != 3
- where a.goods_sn = #{goodsSn}
- </select>
- <select id="queryList" resultType="com.kmall.admin.entity.GoodsEntity">
- select
- mall_goods.*,
- case when mall_goods_group.id > 0 then 2 else 0 end as goodsType,
- m.merch_name merchName, mb.is_stock_share isStockShare
- from mall_goods
- left join mall_merch m on mall_goods.merch_sn = m.merch_sn
- left join mall_goods_group on mall_goods_group.goods_id = mall_goods.id and mall_goods_group.open_status != 3
- left join third_merchant_biz mb on mb.third_party_merch_code = mall_goods.third_party_merch_code and mb.merch_sn=mall_goods.merch_sn
- WHERE 1=1
- <!-- 数据过滤 -->
- ${filterSql}
- <if test="merchSn != null and merchSn.trim() != ''">
- AND mall_goods.merch_sn = #{merchSn}
- </if>
- <if test="prodBarcode != null and prodBarcode.trim() != ''">
- AND mall_goods.prod_barcode = #{prodBarcode}
- </if>
- <if test="thirdPartyMerchCode != null and thirdPartyMerchCode.trim() != ''">
- AND mall_goods.third_party_merch_code = #{thirdPartyMerchCode}
- </if>
- <if test="thirdMerchSn != null and thirdMerchSn.trim() != ''">
- AND mb.third_merch_sn = #{thirdMerchSn}
- </if>
- <if test="goodsSn != null and goodsSn != ''">
- AND mall_goods.goods_sn like concat('%',#{goodsSn},'%')
- </if>
- <if test="name != null and name != ''">
- AND mall_goods.name LIKE concat('%',#{name},'%')
- </if>
- <!--<if test="brandId != null and brandId != ''">
- AND mall_goods.brand_id = #{brandId}
- </if>
- <if test="freightId != null and freightId != ''">
- AND mall_goods.freight_id = #{freightId}
- </if>
- <if test="categoryId != null and categoryId != ''">
- AND mall_goods.category_id = #{categoryId}
- </if>
- <if test="category != null and category != ''">
- AND mall_goods.category_id IN (select id from mall_category where parent_id = #{category})
- </if>
- <if test="categoryTwo != null and categoryTwo != ''">
- AND mall_goods.category_id = #{categoryTwo}
- </if>-->
- <if test="sku != null and sku != ''">
- AND mall_goods.sku LIKE concat('%',#{sku},'%')
- </if>
- <if test="isDelete != null">
- AND mall_goods.is_Delete = #{isDelete}
- </if>
- <if test="isOnSale != null">
- AND mall_goods.is_on_sale = #{isOnSale}
- </if>
- <if test="goodsBizType != null and goodsBizType != ''">
- AND mall_goods.goods_biz_type = #{goodsBizType}
- </if>
- <if test="id != null and id != ''">
- AND mall_goods.id = #{id}
- </if>
- <if test="storeId != null and storeId != ''">
- AND mall_goods.third_party_merch_code = ( SELECT third_party_merch_code FROM mall_store WHERE id = #{storeId} )
- AND mall_goods.id NOT IN (
- SELECT
- goods_id
- FROM
- mall_product_store_rela pp
- WHERE
- store_id = #{storeId}
- )
- </if>
- <if test="storeIdBySupplier != null and storeIdBySupplier != ''">
- AND mall_goods.id NOT IN (
- SELECT
- goods_id
- FROM
- mall_product_store_rela pp
- WHERE
- store_id = #{storeIdBySupplier} and supplier_third_id = #{thirdMerchSn}
- )
- </if>
- <choose>
- <when test="sidx != null and sidx.trim() != ''">
- order by ${sidx} ${order}
- </when>
- <otherwise>
- order by mall_goods.id desc
- </otherwise>
- </choose>
- <if test="offset != null and limit != null">
- limit #{offset}, #{limit}
- </if>
- </select>
- <select id="querySame" resultType="com.kmall.admin.entity.GoodsEntity">
- select
- mall_goods.*,
- case when mall_goods_group.id > 0 then 2 else 0 end as goodsType
- from mall_goods
- left join mall_goods_group on mall_goods_group.goods_id = mall_goods.id and mall_goods_group.open_status != 3
- WHERE 1=1
- <!-- 数据过滤 -->
- ${filterSql}
- <if test="isSame != null and isSame != ''">
- AND ((mall_goods.sku = #{sku} AND mall_goods.goods_biz_type = #{goodsBizType}) OR mall_goods.goods_sn = #{goodsSn})
- <if test="id != null and id != ''">
- AND mall_goods.id != #{id}
- </if>
- </if>
- <choose>
- <when test="sidx != null and sidx.trim() != ''">
- order by ${sidx} ${order}
- </when>
- <otherwise>
- order by mall_goods.id desc
- </otherwise>
- </choose>
- <if test="offset != null and limit != null">
- limit #{offset}, #{limit}
- </if>
- </select>
- <select id="queryTotal" resultType="int">
- select count(*) from mall_goods
- left join mall_merch m on mall_goods.merch_sn = m.merch_sn
- left join mall_goods_group on mall_goods_group.goods_id = mall_goods.id and mall_goods_group.open_status != 3
- WHERE 1=1
- <!-- 数据过滤 -->
- ${filterSql}
- <if test="merchSn != null and merchSn.trim() != ''">
- AND mall_goods.merch_sn = #{merchSn}
- </if>
- <if test="prodBarcode != null and prodBarcode.trim() != ''">
- AND mall_goods.prod_barcode = #{prodBarcode}
- </if>
- <if test="thirdPartyMerchCode != null and thirdPartyMerchCode.trim() != ''">
- AND mall_goods.third_party_merch_code = #{thirdPartyMerchCode}
- </if>
- <if test="goodsSn != null and goodsSn != ''">
- AND mall_goods.goods_sn like concat('%',#{goodsSn},'%')
- </if>
- <if test="name != null and name != ''">
- AND mall_goods.name LIKE concat('%',#{name},'%')
- </if>
- <if test="sku != null and sku != ''">
- AND mall_goods.sku LIKE concat('%',#{sku},'%')
- </if>
- <if test="isDelete != null">
- AND mall_goods.is_Delete = #{isDelete}
- </if>
- <if test="isOnSale != null">
- AND mall_goods.is_on_sale = #{isOnSale}
- </if>
- <if test="goodsBizType != null and goodsBizType != ''">
- AND mall_goods.goods_biz_type = #{goodsBizType}
- </if>
- <if test="storeId != null and storeId != ''">
- AND mall_goods.third_party_merch_code = ( SELECT third_party_merch_code FROM mall_store WHERE id = #{storeId} )
- AND mall_goods.id NOT IN (
- SELECT
- goods_id
- FROM
- mall_product_store_rela pp
- LEFT JOIN mall_goods gg ON pp.goods_id = gg.id
- AND pp.merch_sn = gg.merch_sn
- AND pp.merch_sn
- LEFT JOIN mall_store s ON pp.store_id = s.id
- AND s.third_party_merch_code = gg.third_party_merch_code
- WHERE
- store_id = #{storeId}
- )
- </if>
- </select>
- <insert id="save" parameterType="com.kmall.admin.entity.GoodsEntity" useGeneratedKeys="true" keyProperty="id">
- insert into mall_goods(
- `merch_sn`,
- third_party_merch_code,
- `supplier_id`,
- `goods_sn`,
- `prod_barcode`,
- `sku`,
- `goods_biz_type`,
- `name`,
- `unit_code`,
- `brand`,
- `goods_number`,
- `keywords`,
- `goods_brief`,
- `goods_desc`,
- `cus_goods_code`,
- `ciq_prod_model`,
- `ori_cnt_code`,
- `cus_decl_ele`,
- `cus_rec_code`,
- `is_on_sale`,
- `add_time`,
- `sort_order`,
- `is_delete`,
- `counter_price`,
- `extra_price`,
- `is_new`,
- `goods_unit`,
- `primary_pic_url`,
- `list_pic_url`,
- `goods_rate`,
- `sell_volume`,
- `primary_product_id`,
- `unit_price`,
- `promotion_desc`,
- `promotion_tag`,
- `app_exclusive_price`,
- `is_app_exclusive`,
- `gross_weight`,
- `net_weight`,
- is_goods_share_stock,
- `is_limited`,
- `is_hot`,
- `creater_sn`,
- `create_time`,
- `moder_sn`,
- `mod_time`,
- `tstm`)
- values(
- #{merchSn},
- #{thirdPartyMerchCode},
- #{supplierId},
- #{goodsSn},
- #{prodBarcode},
- #{sku},
- #{goodsBizType},
- #{name},
- #{unitCode},
- #{brand},
- #{goodsNumber},
- #{keywords},
- #{goodsBrief},
- #{goodsDesc},
- #{cusGoodsCode},
- #{ciqProdModel},
- #{oriCntCode},
- #{cusDeclEle},
- #{cusRecCode},
- #{isOnSale},
- #{addTime},
- #{sortOrder},
- #{isDelete},
- #{counterPrice},
- #{extraPrice},
- #{isNew},
- #{goodsUnit},
- #{primaryPicUrl},
- #{listPicUrl},
- #{goodsRate},
- #{sellVolume},
- #{primaryProductId},
- #{unitPrice},
- #{promotionDesc},
- #{promotionTag},
- #{appExclusivePrice},
- #{isAppExclusive},
- #{grossWeight},
- #{netWeight},
- #{isGoodsShareStock},
- #{isLimited},
- #{isHot},
- #{createrSn},
- #{createTime},
- #{moderSn},
- #{modTime},
- #{tstm})
- </insert>
- <update id="update" parameterType="com.kmall.admin.entity.GoodsEntity">
- update mall_goods
- <set>
- <if test="merchSn != null">`merch_sn` = #{merchSn}, </if>
- <if test="thirdPartyMerchCode != null">`third_party_merch_code` = #{thirdPartyMerchCode}, </if>
- <if test="supplierId != null">`supplier_id` = #{supplierId}, </if>
- <if test="goodsSn != null">`goods_sn` = #{goodsSn}, </if>
- <if test="prodBarcode != null">`prod_barcode` = #{prodBarcode}, </if>
- <if test="sku != null">`sku` = #{sku}, </if>
- <if test="goodsBizType != null">`goods_biz_type` = #{goodsBizType}, </if>
- <if test="name != null">`name` = #{name}, </if>
- <if test="unitCode != null">`unit_code` = #{unitCode}, </if>
- <if test="brand != null">`brand` = #{brand}, </if>
- <if test="goodsNumber != null">`goods_number` = #{goodsNumber}, </if>
- <if test="keywords != null">`keywords` = #{keywords}, </if>
- <if test="goodsBrief != null">`goods_brief` = #{goodsBrief}, </if>
- <if test="goodsDesc != null">`goods_desc` = #{goodsDesc}, </if>
- <if test="cusGoodsCode != null">`cus_goods_code` = #{cusGoodsCode}, </if>
- <if test="ciqProdModel != null">`ciq_prod_model` = #{ciqProdModel}, </if>
- <if test="oriCntCode != null">`ori_cnt_code` = #{oriCntCode}, </if>
- <if test="cusDeclEle != null">`cus_decl_ele` = #{cusDeclEle}, </if>
- <if test="cusRecCode != null">`cus_rec_code` = #{cusRecCode}, </if>
- <if test="isOnSale != null">`is_on_sale` = #{isOnSale}, </if>
- <if test="addTime != null">`add_time` = #{addTime}, </if>
- <if test="sortOrder != null">`sort_order` = #{sortOrder}, </if>
- <if test="isDelete != null">`is_delete` = #{isDelete}, </if>
- <if test="counterPrice != null">`counter_price` = #{counterPrice}, </if>
- <if test="extraPrice != null">`extra_price` = #{extraPrice}, </if>
- <if test="isNew != null">`is_new` = #{isNew}, </if>
- <if test="goodsUnit != null">`goods_unit` = #{goodsUnit}, </if>
- <if test="primaryPicUrl != null">`primary_pic_url` = #{primaryPicUrl}, </if>
- <if test="listPicUrl != null">`list_pic_url` = #{listPicUrl}, </if>
- <if test="goodsRate != null">`goods_rate` = #{goodsRate}, </if>
- <if test="sellVolume != null">`sell_volume` = #{sellVolume}, </if>
- <if test="primaryProductId != null">`primary_product_id` = #{primaryProductId}, </if>
- <if test="unitPrice != null">`unit_price` = #{unitPrice}, </if>
- <if test="promotionDesc != null">`promotion_desc` = #{promotionDesc}, </if>
- <if test="promotionTag != null">`promotion_tag` = #{promotionTag}, </if>
- <if test="appExclusivePrice != null">`app_exclusive_price` = #{appExclusivePrice}, </if>
- <if test="isAppExclusive != null">`is_app_exclusive` = #{isAppExclusive}, </if>
- <if test="grossWeight != null">`gross_weight` = #{grossWeight}, </if>
- <if test="netWeight != null">`net_weight` = #{netWeight}, </if>
- <if test="isGoodsShareStock != null">`is_goods_share_stock` = #{isGoodsShareStock}, </if>
- <if test="isLimited != null">`is_limited` = #{isLimited}, </if>
- <if test="isHot != null">`is_hot` = #{isHot}, </if>
- <if test="createrSn != null">`creater_sn` = #{createrSn}, </if>
- <if test="createTime != null">`create_time` = #{createTime}, </if>
- <if test="moderSn != null">`moder_sn` = #{moderSn}, </if>
- <if test="modTime != null">`mod_time` = #{modTime}, </if>
- <if test="tstm != null">`tstm` = #{tstm}</if>
- </set>
- where id = #{id}
- </update>
- <delete id="delete">
- delete from mall_goods where id = #{value}
- </delete>
- <delete id="deleteBatch">
- delete from mall_goods where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- <select id="queryMaxId" resultType="java.lang.Long" parameterType="map">
- SELECT MAX(id) FROM mall_goods
- </select>
- </mapper>
|