| | |
| | | |
| | | <select id="getReceivable" resultType="com.stylefeng.guns.modular.system.model.ReceivableVo"> |
| | | select t1.id,t1.create_time invoiceDate,t1.company_id userId,sum(t1.pay_money) as total,t2.name userName from t_order t1 left join t_company t2 on t1.company_id=t2.id |
| | | where t1.status !=0 |
| | | where t1.status !=0 and t1.company_id =#{id} |
| | | <if test="name !=null and name !=''"> |
| | | and t2.name like concat("%",#{name},"%") |
| | | </if> |
| | |
| | | <select id="getPayList" resultType="com.stylefeng.guns.modular.system.model.ShouldPayVo"> |
| | | select t1.id,t1.success_time billDate,t1.carriers_id userId,sum(t1.pay_money) as total, |
| | | t2.company_name userName from t_order t1 left join t_carriers t2 on t1.carriers_id=t2.id |
| | | where t1.status !=0 |
| | | where t1.status !=0 and t1.company_id =#{id} |
| | | <if test="name !=null and name !=''"> |
| | | and t2.company_name like concat("%",#{name},"%") |
| | | </if> |
| | |
| | | <select id="listOfReceivables" resultType="com.stylefeng.guns.modular.system.model.ReceivablesList"> |
| | | select t1.invoice_number invoiceNumber,t1.id orderId,t1.user_id userId,t1.pay_money total,t1.pay_time invoicesTime,t2.company_name userName |
| | | from t_order t1 LEFT JOIN t_user t2 on t1.user_id=t2.id |
| | | where t1.status = 1 |
| | | where t1.status = 1 and t1.company_id=#{id} |
| | | <if test="sTime !=null "> |
| | | and t1.pay_time between #{sTime} and #{eTime} |
| | | </if> |
| | |
| | | |
| | | </select> |
| | | <select id="getPayStatus" resultType="java.lang.Integer"> |
| | | select id from t_order where pay_status =1 |
| | | select id from t_order where pay_status =1 and id =#{orderId} |
| | | </select> |
| | | <select id="listOfPay" resultType="com.stylefeng.guns.modular.system.model.PayList"> |
| | | select t1.id orderId,t1.carriers_id companyId,t2.company_name companyName,t1.pay_carriers_time billTime,t1.pay_time dueDate,t1.carriers_pay_status paystatus,t1.pay_audit payAudit,(t1.pay_money*(t2.commission/100) ) as total FROM t_order t1 LEFT JOIN t_carriers t2 on t1.carriers_id =t2.id |
| | | where t1.status = 1 |
| | | where t1.status = 1 and t1.company_id=#{id} |
| | | <if test="sTime !=null"> |
| | | and t1.pay_carriers_time between #{sTime} and #{eTime} |
| | | </if> |
| | |
| | | t1.shipment_date pickupDate, |
| | | t1.delivery_date deliveryDate, |
| | | t1.status status, |
| | | t1.e_address destination |
| | | t1.e_address destination, |
| | | t2.kg kg |
| | | FROM |
| | | t_order t1 |
| | | LEFT JOIN t_goods t2 ON t1.id = t2.order_id |