| | |
| | | LEFT JOIN t_user t3 on t1.user_id =t3.id |
| | | LEFT JOIN t_port t4 on t1.`port` = t4.id |
| | | LEFT JOIN t_group t5 on t3.group_id = t5.id |
| | | where t1.company_id = #{companyId} and t1.order_type=#{type} |
| | | where t1.company_id = #{companyId} and t1.order_type=#{type} and t1.status != 17 |
| | | <if test="sTime !=null"> |
| | | and (t1.shipment_date between #{sTime} and #{eTime} or t1.delivery_date between #{sTime} and #{eTime}) |
| | | </if> |
| | |
| | | </if> |
| | | GROUP BY |
| | | t1.id |
| | | order by t1.create_time desc |
| | | |
| | | |
| | | </select> |
| | |
| | | tc.`name`, |
| | | too.s_email as mailAddr, |
| | | tp.car_price as amount, |
| | | too.paid as unitPrice |
| | | tp.price as unitPrice |
| | | FROM `t_order` AS too |
| | | JOIN t_user tu ON too.user_id = tu.id |
| | | JOIN t_company tc ON too.company_id = tc.id |
| | |
| | | WHERE too.STATUS = 1 |
| | | </select> |
| | | |
| | | <select id="getLonLat" resultType="java.util.Map"> |
| | | select lon,lat from t_order_lonlat where orderId =#{orderId} |
| | | </select> |
| | | |
| | | </mapper> |