| | |
| | | LEFT JOIN xzx_user_info e ON e.user_id = a.receiver |
| | | WHERE |
| | | a.create_user_id=#{userId} |
| | | and a.order_status in (4,5,7) |
| | | GROUP BY |
| | | a.order_id |
| | | ) |
| | |
| | | LEFT JOIN xzx_jhy_order_items d ON a.id = d.order_id |
| | | WHERE |
| | | a.user_id = #{userId} |
| | | and a.status = 3 |
| | | GROUP BY |
| | | a.id |
| | | ) |
| | |
| | | '0' score, |
| | | a.address address, |
| | | ifnull(sum(d.weight), 0) weight, |
| | | e. NAME NAME, |
| | | e.NAME NAME, |
| | | a.create_time createTime |
| | | FROM |
| | | xzx_order_info a |
| | |
| | | LEFT JOIN xzx_user_info e ON e.user_id = a.receiver |
| | | WHERE |
| | | a.create_user_id = #{userId} |
| | | and a.order_status in (4,5,7) |
| | | GROUP BY |
| | | a.order_id |
| | | ) |
| | |
| | | LEFT JOIN xzx_jhy_order_items d ON a.id = d.order_id |
| | | WHERE |
| | | a.user_id = #{userId} |
| | | and a.status = 3 |
| | | GROUP BY |
| | | a.id |
| | | ) |