| | |
| | | </resultMap> |
| | | |
| | | <select id="getMyOrderList" resultType="com.ruoyi.system.vo.MyPushCompanyListVo"> |
| | | select t1.id orderId,t2.id,t2.compamy_name companyName,t2.create_time createTime,t2.sale_money saleMoney,t2.status |
| | | select t1.id orderId,t2.id,t2.company_name companyName,t2.create_time createTime,t2.sale_money saleMoney,t1.status |
| | | from tb_order t1 left join tb_company t2 on t1.company_id = t2.id |
| | | where t2.user_id =#{userId} |
| | | where t1.user_id =#{userId} and t2.id is not null |
| | | <if test="query.status != null and query.status !=6 "> |
| | | and t1.status = #{query.status} |
| | | </if> |
| | | <if test="query.status != null and query.status ==6 "> |
| | | and t1.status in (5,6) |
| | | </if> |
| | | order by t1.create_time desc |
| | | </select> |
| | | <select id="getMyOrderListNum" resultType="com.ruoyi.system.vo.MyPushCompanyListVo" |
| | | parameterType="java.lang.Long"> |
| | | select t1.id orderId,t2.id,t2.company_name companyName,t2.create_time createTime,t2.sale_money saleMoney,t1.status |
| | | from tb_order t1 left join tb_company t2 on t1.company_id = t2.id |
| | | where t1.user_id =#{userId} and t2.id is not null |
| | | order by t1.create_time desc |
| | | </select> |
| | | |