| | |
| | | t1.payUserName as buyTypeName, t1.classHours as classHours,t1.insertTime as insertTime,t1.coursePackageId as coursePackageId, |
| | | CONCAT(t2.province,t2.city) as provinceAndCity,t2.coursePackageTypeId,t2.storeId,t2.name as coursePackage, |
| | | t3.name as coursePackageType,t1.orderNumber |
| | | from t_course_package_order t1 |
| | | from ( |
| | | select * from t_course_package_order1 |
| | | union all select * from t_course_package_order2 |
| | | union all select * from t_course_package_order3 |
| | | union all select * from t_course_package_order4 |
| | | union all select * from t_course_package_order5 |
| | | ) t1 |
| | | left join t_course_package t2 on t1.coursePackageId = t2.id |
| | | left join t_course_package_type t3 on t2.coursePackageTypeId = t3.id |
| | | <where> |