123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627 |
- <?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.caimei.modules.order.dao.NewOrderProductDao">
- <resultMap id="ResultorderProduct" type="NewOrderProduct">
- <result property="productID" column="productId"/>
- <result column="id" property="contractProductId"/>
- <result column="shopName" property="shopName"/>
- <result column="shopId" property="shopId"/>
- <result column="price" property="price"/>
- <result column="discount" property="discount"/>
- <result column="discountPrice" property="discountPrice"/>
- <result column="taxRate" property="taxRate"/>
- <result column="addedValueTax" property="addedValueTax"/>
- <result column="totalAddedValueTax" property="totalAddedValueTax"/>
- <result column="stipulateFlag" property="stipulateFlag"/>
- <result column="name" property="name"/>
- <result column="image" property="image"/>
- <result column="contractId" property="contractId"/>
- <result column="shopFee" property="shopFee"/>
- <result column="otherFee" property="otherFee"/>
- <result column="cmFee" property="cmFee"/>
- <result column="ladderPriceFlag" property="ladderPriceFlag"/>
- </resultMap>
- <sql id="orderProductColumns">
- a.skuId AS skuID,
- a.`orderProductID` AS `orderProductID`,
- a.`orderNo` AS `orderNo`,
- a.`orderID` AS `orderID`,
- a.`shopOrderID` AS `shopOrderID`,
- a.`shopOrderNo` AS `shopOrderNo`,
- a.`shopID` AS `shopID`,
- a.`productID` AS `productID`,
- a.`num` AS `num`,
- a.`presentNum` AS `presentNum`,
- a.`outStoreType` AS `outStoreType`,
- a.`skuID` AS `skuID`,
- a.`productNo` AS `productNo`,
- a.`price` AS `price`,
- a.`normalPrice` AS `normalPrice`,
- a.`totalAmount` AS `totalAmount`,
- a.`totalFee` AS `totalFee`,
- a.`shouldPayFee` AS `shouldPayFee`,
- a.`discount` AS `discount`,
- a.`discountPrice` AS `discountPrice`,
- a.`ladderPriceFlag` AS `ladderPriceFlag`,
- a.`taxRate` AS `taxRate`,
- a.`addedValueTax` AS `addedValueTax`,
- a.`totalAddedValueTax` AS `totalAddedValueTax`,
- IFNULL(a.`includedTax`, 2) AS `includedTax`,
- IFNULL(a.`invoiceType`, 3) AS `invoiceType`,
- IFNULL(a.`supplierTaxRate`, 0) AS `supplierTaxRate`,
- IFNULL(a.`singleShouldPayTotalTax`, 0) AS `singleShouldPayTotalTax`,
- IFNULL(a.`shouldPayTotalTax` ,0) AS `shouldPayTotalTax`,
- a.`shopFee` AS `shopFee`,
- a.`otherFee` AS `otherFee`,
- a.`cmFee` AS `cmFee`,
- a.`singleShopFee` AS `singleShopFee`,
- a.`singleOtherFee` AS `singleOtherFee`,
- a.`singleCmFee` AS `singleCmFee`,
- a.`status` AS `status`,
- a.`totalBeans` AS `totalBeans`,
- a.`useBalanceAmount` AS `useBalanceAmount`,
- a.`useBeanAmount` AS `useBeanAmount`,
- a.`notOutStore` AS `notOutStore`,
- a.`cmbeanPrice` AS `cmbeanPrice`,
- a.`isActProduct` AS `isActProduct`,
- a.`isGiftProduct` AS `isGiftProduct`,
- a.`productActInfo` AS `productActInfo`,
- a.`buyAgainFlag` AS `buyAgainFlag`,
- a.`confirmProductFlag` AS `confirmProductFlag`,
- a.`payStatus` AS `payStatus`,
- a.`name` AS `name`,
- a.`actType` AS `actType`,
- a.productType AS productType,
- a.orderPromotionsId AS orderPromotionsId,
- a.`actPreferential` AS `actPreferential`,
- a.`preferential` AS `preferential`,
- (select mainImage from product p where p.productID = a.productID) AS image,
- a.`discountFee` AS `discountFee`,
- a.`productUnit` AS `productUnit`,
- a.`productImage` AS `productImage`,
- a.`shopName` AS `shopName`,
- cs.stock AS stock,
- cs.costCheckFlag AS costCheckFlag,
- cs.costPrice AS costPrice,
- cs.unit AS unit,
- a.costPrice as newCostPrice,
- p.aliasName AS aliasName,
- a.singleShouldPayTotalTax AS singleShouldPayTotalTax,
- a.heUserId AS heUserId,
- p.productCategory as "productCategory",
- a.svipPriceFlag,
- a.svipPriceType,
- a.svipDiscount,
- a.svipReduction
- </sql>
- <sql id="orderProductJoins">
- left join cm_sku cs on cs.skuId = a.skuId
- LEFT JOIN product p ON p.productID = a.productID
- </sql>
- <select id="get" resultType="NewOrderProduct">
- SELECT
- <include refid="orderProductColumns"/>
- FROM cm_order_product a
- <include refid="orderProductJoins"/>
- WHERE a.orderProductID = #{orderProductID}
- </select>
- <select id="findListByShopOrderID" resultType="NewOrderProduct">
- SELECT
- <include refid="orderProductColumns"/>
- ,csdh.secondHandType AS "secondHandType"
- FROM cm_order_product a
- <include refid="orderProductJoins"/>
- LEFT JOIN cm_second_hand_detail csdh ON csdh.productID = a.productID
- WHERE a.shopOrderID = #{shopOrderID}
- </select>
- <select id="getListByShopOrderID" resultType="NewOrderProduct">
- select cop.*, cpo.touchPrice as touchPrice
- From cm_order_product cop
- LEFT JOIN product p on p.productID = cop.productID
- LEFT JOIN cm_promotions_order cpo on (cop.orderPromotionsId = cpo.id and cpo.mode = 1)
- where cop.shopOrderID = #{shopOrderID}
- </select>
- <select id="findListByOrderID" resultType="NewOrderProduct">
- SELECT
- <include refid="orderProductColumns"/>
- FROM cm_order_product a
- <include refid="orderProductJoins"/>
- WHERE a.orderID = #{orderID}
- </select>
- <select id="findAllSnList" resultType="NewOrderProduct">
- SELECT
- DISTINCT a.orderProductID AS orderProductID1,
- a.*,
- tbou.`shouHuoRen` AS consignee,
- tbou.`name` AS buyer
- FROM
- cm_order_product a
- INNER JOIN product tp
- ON a.`productID` = tp.`productID`
- INNER JOIN tinyType AS tt
- ON tp.tinyTypeID = tt.tinyTypeID
- INNER JOIN smallType AS ts
- ON tt.smallTypeID = ts.smallTypeID
- INNER JOIN bigType AS tb
- ON tb.`bigTypeID` = ts.`bigTypeID`
- INNER JOIN bp_order_userinfo tbou
- ON a.`orderID` = tbou.`orderId`
- RIGHT JOIN cm_product_sn AS tcps ON
- tcps.orderProductID=a.orderProductID
- <where>
- tb.`bigTypeCode` IN ('Q1' ,'Q2')
- <if test="orderID != null and orderID != ''">
- AND a.orderID = #{orderID}
- </if>
- <if test="buyer != null and buyer != ''">
- AND tbou.name LIKE concat('%',#{buyer},'%')
- </if>
- <if test="name != null and name != ''">
- AND a.name LIKE concat('%',#{name},'%')
- </if>
- </where>
- <choose>
- <when test="page !=null and page.orderBy != null and page.orderBy != ''">
- ORDER BY ${page.orderBy}
- </when>
- <otherwise>
- </otherwise>
- </choose>
- </select>
- <select id="findAllList" resultType="NewOrderProduct">
- SELECT
- <include refid="orderProductColumns"/>
- FROM cm_order_product a
- <include refid="orderProductJoins"/>
- <where>
- <if test="orderID != null and orderID != ''">
- AND a.orderID = #{orderID}
- </if>
- <if test="shopID != null and shopID != ''">
- AND a.shopID = #{shopID}
- </if>
- <if test="shopOrderID != null and shopOrderID != ''">
- AND a.shopOrderID = #{shopOrderID}
- </if>
- <if test="payStatus != null and payStatus != ''">
- AND a.payStatus = #{payStatus}
- </if>
- </where>
- <choose>
- <when test="page !=null and page.orderBy != null and page.orderBy != ''">
- ORDER BY ${page.orderBy}
- </when>
- <otherwise>
- </otherwise>
- </choose>
- </select>
- <insert id="insert" parameterType="NewOrderProduct" keyProperty="orderProductID" useGeneratedKeys="true">
- INSERT INTO cm_order_product(productType,
- orderID,
- orderNo,
- shopOrderID,
- shopOrderNo,
- shopID,
- productID,
- num,
- presentNum,
- outStoreType,
- skuID,
- productNo,
- price,
- totalAmount,
- discount,
- discountPrice,
- costPrice,
- includedTax,
- invoiceType,
- taxRate,
- supplierTaxRate,
- addedValueTax,
- totalAddedValueTax,
- shouldPayTotalTax,
- shopProductAmount,
- shopFee,
- otherFee,
- cmFee,
- singleShopFee,
- singleOtherFee,
- singleCmFee,
- shouldPayFee,
- normalPrice,
- totalFee,
- totalBeans,
- useBalanceAmount,
- useBeanAmount,
- notOutStore,
- cmbeanPrice,
- isGiftProduct,
- productActInfo,
- buyAgainFlag,
- confirmProductFlag,
- shopName,
- name,
- preferential,
- productUnit,
- productImage,
- discountFee,
- payStatus,
- status,
- singleShouldPayTotalTax,
- orderPromotionsId,
- ladderPriceFlag,
- svipPriceFlag,
- svipPriceType,
- svipDiscount,
- svipReduction)
- VALUES (#{productType},
- #{orderID},
- #{orderNo},
- #{shopOrderID},
- #{shopOrderNo},
- #{shopID},
- #{productID},
- #{num},
- #{presentNum},
- #{outStoreType},
- #{skuID},
- #{productNo},
- #{price},
- #{totalAmount},
- #{discount},
- #{discountPrice},
- #{costPrice},
- #{includedTax},
- #{invoiceType},
- #{taxRate},
- #{supplierTaxRate},
- #{addedValueTax},
- #{totalAddedValueTax},
- #{shouldPayTotalTax},
- #{shopProductAmount},
- #{shopFee},
- #{otherFee},
- #{cmFee},
- #{singleShopFee},
- #{singleOtherFee},
- #{singleCmFee},
- #{shouldPayFee},
- #{normalPrice},
- #{totalFee},
- #{totalBeans},
- #{useBalanceAmount},
- #{useBeanAmount},
- #{notOutStore},
- #{cmbeanPrice},
- #{isGiftProduct},
- #{productActInfo},
- #{buyAgainFlag},
- #{confirmProductFlag},
- #{shopName},
- #{name},
- #{preferential},
- #{productUnit},
- #{productImage},
- #{discountFee},
- #{payStatus},
- #{status},
- #{singleShouldPayTotalTax},
- #{orderPromotionsId},
- #{ladderPriceFlag},
- #{svipPriceFlag},
- #{svipPriceType},
- #{svipDiscount},
- #{svipReduction})
- </insert>
- <insert id="insertOrderProductLadderPrice">
- insert into order_product_ladder_price (orderProductId, ladderNum, buyNum, buyPrice, createDate)
- values (#{orderProductId}, #{ladderNum}, #{buyNum}, #{buyPrice}, #{createDate})
- </insert>
- <update id="updateStatus">
- update cm_order_product
- set payStatus = #{payStatus}
- where orderID = #{orderID}
- </update>
- <update id="update">
- update cm_order_product
- set orderNo = #{orderNo,jdbcType=VARCHAR},
- orderID = #{orderID,jdbcType=BIGINT},
- shopOrderID = #{shopOrderID,jdbcType=INTEGER},
- shopOrderNo = #{shopOrderNo,jdbcType=VARCHAR},
- shopID = #{shopID,jdbcType=BIGINT},
- productID = #{productID,jdbcType=INTEGER},
- num = #{num,jdbcType=INTEGER},
- presentNum = #{presentNum,jdbcType=INTEGER},
- outStoreType = #{outStoreType,jdbcType=CHAR},
- skuID = #{skuID,jdbcType=INTEGER},
- productNo = #{productNo,jdbcType=VARCHAR},
- price = #{price,jdbcType=REAL},
- normalPrice = #{normalPrice,jdbcType=REAL},
- totalAmount = #{totalAmount,jdbcType=REAL},
- discount = #{discount,jdbcType=DECIMAL},
- discountPrice = #{discountPrice,jdbcType=DECIMAL},
- taxRate = #{taxRate,jdbcType=DECIMAL},
- addedValueTax = #{addedValueTax,jdbcType=DECIMAL},
- totalAddedValueTax = #{totalAddedValueTax,jdbcType=DECIMAL},
- shouldPayTotalTax = #{shouldPayTotalTax,jdbcType=DECIMAL},
- shopFee = #{shopFee},
- otherFee = #{otherFee},
- cmFee = #{cmFee},
- singleShopFee = #{singleShopFee,jdbcType=DECIMAL},
- singleOtherFee = #{singleOtherFee,jdbcType=DECIMAL},
- singleCmFee = #{singleCmFee,jdbcType=DECIMAL},
- shouldPayFee = #{shouldPayFee,jdbcType=DECIMAL},
- totalFee = #{totalFee,jdbcType=REAL},
- totalBeans = #{totalBeans,jdbcType=DECIMAL},
- useBalanceAmount = #{useBalanceAmount,jdbcType=VARCHAR},
- useBeanAmount = #{useBeanAmount,jdbcType=INTEGER},
- notOutStore = #{notOutStore,jdbcType=INTEGER},
- cmbeanPrice = #{cmbeanPrice,jdbcType=INTEGER},
- isGiftProduct = #{isGiftProduct,jdbcType=VARCHAR},
- productActInfo = #{productActInfo,jdbcType=VARCHAR},
- buyAgainFlag = #{buyAgainFlag,jdbcType=CHAR},
- confirmProductFlag = #{confirmProductFlag,jdbcType=CHAR},
- payStatus = #{payStatus,jdbcType=CHAR},
- status = #{status},
- discountFee = #{discountFee},
- shopName = #{shopName,jdbcType=VARCHAR},
- name = #{name,jdbcType=VARCHAR},
- preferential = #{preferential,jdbcType=INTEGER},
- productUnit = #{productUnit,jdbcType=VARCHAR},
- productImage = #{productImage,jdbcType=VARCHAR},
- singleShouldPayTotalTax = #{singleShouldPayTotalTax,jdbcType=DECIMAL},
- productType = #{productType},
- orderPromotionsId = #{orderPromotionsId},
- costPrice = #{costPrice},
- includedTax = #{includedTax},
- invoiceType = #{invoiceType},
- supplierTaxRate = #{supplierTaxRate},
- ladderPriceFlag = #{ladderPriceFlag},
- isActProduct = #{isActProduct}
- where orderProductID = #{orderProductID,jdbcType=INTEGER}
- </update>
- <update id="updateForDelivery">
- update cm_order_product
- <set>
- <if test="notOutStore != null">
- notOutStore = #{notOutStore},
- </if>
- <if test="status != null and status != 0">
- status = #{status},
- </if>
- </set>
- where orderProductID = #{orderProductID,jdbcType=INTEGER}
- </update>
- <select id="findStipulateFee" resultType="Integer">
- SELECT stipulateFee
- FROM `bp_contract`
- WHERE `id` = #{contractId}
- </select>
- <delete id="delete">
- DELETE
- FROM cm_order_product
- WHERE orderProductID = #{orderProductID}
- </delete>
- <delete id="deleteLadderPrice">
- DELETE
- FROM order_product_ladder_price
- WHERE orderProductId = #{orderProductID}
- </delete>
- <update id="deleteByOrderID">
- DELETE
- FROM cm_order_product
- WHERE orderID = #{orderID}
- </update>
- <update id="updatePayStatus">
- UPDATE cm_order_product
- SET payStatus = #{payStatus},
- status = #{status}
- WHERE orderProductID = #{orderProductID}
- </update>
- <select id="findWithOrderID" resultType="NewOrderProduct">
- select
- <include refid="orderProductColumns"/>,
- s.ledgerNo AS "ledgerNo",
- s.`name` AS `shopName`
- FROM cm_order_product a
- LEFT JOIN product p on p.productID = a.productID
- LEFT JOIN shop s on s.shopID = a.shopID
- where a.orderID = #{orderID}
- -- AND a.productID != 999
- </select>
- <!--通过订单ID获取订单商品并以供应商分组-->
- <select id="getWithorderIdGroupByShopId" resultType="NewOrderProduct">
- SELECT a.*
- from cm_order_product a
- where a.orderId = #{orderId}
- GROUP BY a.shopID
- </select>
- <select id="getTotalPay" resultType="java.lang.Double">
- SELECT sum(ROUND(shopFee, 2))
- from cm_order_product
- where orderId = #{orderId}
- AND shopID = #{shopId}
- </select>
- <!--通过订单ID统计订单商品表中对应第三方的应付总额-->
- <select id="totalOtherFee" resultType="java.lang.Double">
- SELECT sum(ROUND(otherFee, 2))
- from cm_order_product
- where orderId = #{orderId}
- </select>
- <select id="getCmTotalPay" resultType="java.lang.Double">
- SELECT sum(cmFee)
- from cm_order_product
- where orderId = #{orderId}
- </select>
- <select id="getCmTotalTaxFee" resultType="java.lang.Double">
- SELECT sum(shouldPayTotalTax)
- from cm_order_product
- where orderId = #{orderId}
- </select>
- <select id="getProductNameByOrderproductId" resultType="NewOrderProduct">
- SELECT `name`
- from cm_order_product
- where orderProductID = #{ProductId}
- </select>
- <select id="findByOrderIdGroupByShopId" resultType="NewOrderProduct">
- SELECT
- <include refid="orderProductColumns"/>
- FROM cm_order_product a
- <include refid="orderProductJoins"/>
- WHERE a.orderID=#{orderId} GROUP BY a.shopID;
- </select>
- <update id="updateShopConfigFlag">
- UPDATE cm_order_product
- SET confirmProductFlag = 0
- WHERE orderID = #{orderID}
- </update>
- <update id="updateProductFee">
- UPDATE cm_order_product
- SET costPrice = #{costPrice},
- supplierTaxRate = #{supplierTaxRate},
- shouldPayTotalTax = #{shouldPayTotalTax},
- singleShouldPayTotalTax = #{singleShouldPayTotalTax}
- WHERE orderProductID = #{orderProductID}
- </update>
- <select id="findByOrderProductID" resultType="NewOrderProduct" useCache="false" flushCache="true">
- SELECT
- <include refid="orderProductColumns"/>
- FROM cm_order_product a
- <include refid="orderProductJoins"/>
- WHERE a.orderProductID = #{orderProductID}
- </select>
- <select id="getGroupOrderProductIdS" resultType="String">
- SELECT group_concat(a.orderproductID)
- FROM cm_order_product a
- WHERE a.orderID = #{orderId}
- </select>
- <select id="findFreightOrderProductList" resultType="NewOrderProduct">
- SELECT a.shopOrderID AS shopOrderID,
- a.orderID AS orderID,
- a.orderProductID AS orderProductID
- FROM cm_order_product AS a
- WHERE a.orderID = #{orderID}
- AND a.productID = #{freightProductID}
- </select>
- <select id="getReturningNum" resultType="Integer">
- SELECT IFNULL(sum(a.actualReturnedNum + a.actualCancelNum), 0)
- FROM cm_returned_purchase_product a
- right join cm_returned_purchase b on a.returnedID = b.id
- WHERE a.orderProductID = #{orderProductID}
- and b.status = 1
- and b.delFlag = 0
- </select>
- <select id="getReturnedNum" resultType="Integer">
- SELECT IFNULL(sum(a.actualReturnedNum + a.actualCancelNum), 0)
- FROM cm_returned_purchase_product a
- right join cm_returned_purchase b on a.returnedID = b.id
- WHERE a.orderProductID = #{orderProductID}
- and b.status = 2
- and b.delFlag = 0
- </select>
- <select id="getReceivedNum" resultType="Integer">
- SELECT IFNULL(sum(a.num), 0)
- FROM cm_logistics_record a
- right join cm_logistics_batch b on a.logisticsBatchID = b.id
- WHERE a.orderProductID = #{orderProductID}
- and b.status = 1
- </select>
- <select id="findByShopOrderID" resultType="NewOrderProduct">
- select cop.name AS name,
- cop.orderProductID AS orderProductID,
- cop.productID AS productID,
- cop.productUnit AS unit,
- cop.num AS num,
- cop.presentNum AS presentNum,
- cop.discountPrice AS discountPrice,
- cop.totalFee AS totalFee,
- cop.shouldPayTotalTax AS shouldPayTotalTax,
- cop.shopProductAmount AS shopProductAmount,
- cop.costPrice AS costPrice,
- cop.singleShouldPayTotalTax AS singleShouldPayTotalTax,
- cop.taxRate AS taxRate,
- cop.supplierTaxRate AS supplierTaxRate,
- cop.includedTax AS includedTax,
- cop.invoiceType AS invoiceType,
- cop.addedValueTax AS addedValueTax,
- cop.productType AS productType,
- cop.totalAddedValueTax AS totalAddedValueTax,
- cpo.touchPrice AS touchPrice
- from cm_order_product cop
- left join cm_sku cs on cop.skuId = cs.skuId
- left join cm_promotions_order cpo on (cop.orderPromotionsId = cpo.id and cpo.mode = 1)
- left join product p on p.productID = cop.productID
- left join cm_order co on co.orderID = cop.orderID
- left join user u on u.userID = co.userID
- where cop.shopOrderID = #{shopOrderID}
- </select>
- <select id="CountReturnedPurchaseProduct" resultType="java.lang.Integer">
- select SUM(crpp.actualReturnedNum) + SUM(crpp.actualCancelNum)
- from cm_returned_purchase_product crpp
- left join cm_returned_purchase rp on rp.id = crpp.returnedID
- where crpp.shopOrderID = #{shopOrderID}
- and crpp.orderProductID = #{orderProductID}
- and rp.status = '2'
- and rp.delFlag = '0'
- </select>
- <select id="getActualCancelNum" resultType="java.lang.Integer">
- select SUM(crpp.actualCancelNum)
- from cm_returned_purchase_product crpp
- left join cm_returned_purchase rp on rp.id = crpp.returnedID
- where crpp.orderProductID = #{orderProductID}
- and rp.status = '2'
- and rp.delFlag = '0'
- </select>
- <select id="findladderPriceList" resultType="com.caimei.modules.product.entity.OrderProductLadderPrice">
- select *
- from order_product_ladder_price
- where orderProductId = #{orderProductID}
- </select>
- <select id="countReturnedFreightProduct" resultType="java.lang.Integer">
- select SUM(crpp.actualReturnedNum) + SUM(crpp.actualCancelNum)
- from cm_returned_purchase_product crpp
- left join cm_returned_purchase rp on rp.id = crpp.returnedID
- left join cm_shop_order cso on crpp.shopOrderID = cso.shopOrderID
- where crpp.shopOrderID = cso.shopOrderID
- and cso.orderID = #{orderID}
- and cso.shopID = 998
- and rp.status = '2'
- and rp.delFlag = '0'
- </select>
- </mapper>
|