| | |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | |
| | | select DATE_FORMAT(insertTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(money), 0 from t_order_cancel where orderType = 1 |
| | | select DATE_FORMAT(insertTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(money), 0 from t_income where orderType = 1 and userType = 1 and type = 3 |
| | | <if test="null != companyId"> |
| | | and orderId in (select id from t_order_private_car where isDelete = 1 and companyId = #{companyId} and state = 10) |
| | | and incomeId = #{companyId} |
| | | </if> |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(insertTime, '%Y-%m-%d') between #{start} and #{end} |
| | |
| | | </if> |
| | | group by DATE_FORMAT(travelTime, '%Y-%m-%d') |
| | | union all |
| | | select DATE_FORMAT(insertTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(money), 0 from t_order_cancel where orderType = 4 |
| | | select DATE_FORMAT(insertTime, '%Y-%m-%d'), 0, 0, 0, 0, count(id), 0, sum(money), 0 from t_income where orderType = 4 and userType = 1 and type = 3 |
| | | <if test="null != companyId"> |
| | | and orderId in (select id from t_order_logistics where isDelete = 1 and companyId = #{companyId} and state = 10) |
| | | and objectId = #{companyId} |
| | | </if> |
| | | <if test="null != start and '' != start and null != end and '' != end"> |
| | | and DATE_FORMAT(insertTime, '%Y-%m-%d') between #{start} and #{end} |