| | |
| | | <result property="applyStatus" column="apply_status" /> |
| | | <result property="scorePay" column="score_pay" /> |
| | | <result property="companyId" column="company_id" /> |
| | | <!--返回详情列表--> |
| | | <collection property="details" column="{orderId=id}" |
| | | select="com.matrix.system.shopXcx.dao.ShopOrderDetailsDao.selectByOrderId"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | o.wx_order_no, |
| | | o.pay_result, |
| | | o.postage, |
| | | s.store_name, |
| | | s.score_pay, |
| | | s.shop_name, |
| | | o.order_type |
| | | from shop_order o |
| | | LEFT JOIN shop_store s on o.store_id = s.store_id |
| | | LEFT JOIN sys_shop_info s on o.store_id = s.ID |
| | | where del_flag = 2 and o.company_id = #{record.companyId} |
| | | |
| | | <if test="record != null"> |
| | |
| | | and o.order_status = #{record.orderStatus} |
| | | </if> |
| | | <if test="(record.storeName!=null and record.storeName!='')"> |
| | | and s.store_name like concat('%', #{record.storeName}, '%') |
| | | and s.shop_name like concat('%', #{record.storeName}, '%') |
| | | </if> |
| | | </if> |
| | | <if test="pageVo !=null"><!-- 判断pageVo对象是否为空 --> |
| | |
| | | <select id="selectOrderStatusCount" resultType="java.util.HashMap" > |
| | | select count(order_status) as count , order_status as orderStatus |
| | | from shop_order |
| | | where user_id=#{openId} |
| | | where user_id=#{userId} |
| | | group by order_status |
| | | </select> |
| | | |