| | |
| | | ) |
| | | </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}) |