puzhibing
2024-02-02 e14a6debcb17348164f703fcb2a7b9b1c3608352
meiya-rest/src/main/java/com/sinata/rest/modular/member/dao/mapping/MemMerchantMapper.xml
@@ -126,15 +126,15 @@
        )
    </select>
    <select id="getMerchantOrderList" resultType="com.sinata.rest.modular.mall.controller.vo.VoMallOrder">
        SELECT
        mo.order_no,mo.state,ms.goods_name,mo.goods_money,mo.use_user_id,md.goods_image goodsImage,md.use_time
            mo.*,
            md.goods_image goodsImage, md.use_time,
            ms.goods_name
        FROM
        mall_order mo
        Left JOIN `mall_order_detail` md ON md.order_no = mo.order_no
        Left JOIN mall_goods ms ON ms.id = md.goods_id
            mall_order mo
            Left JOIN `mall_order_detail` md ON md.order_no = mo.order_no
            Left JOIN mall_goods ms ON ms.id = md.goods_id
        WHERE mo.is_delete = 0 and mo.state in (1,2,3)
        <if test="merchantId != null">
            and (mo.merchant_id =  #{merchantId})