修改bug

This commit is contained in:
yangjun 2023-06-07 08:43:24 +08:00
parent eba71773f2
commit 72874cbac1
1 changed files with 2 additions and 2 deletions

View File

@ -6,10 +6,10 @@
SELECT * from ( SELECT * from (
SELECT * from ( SELECT * from (
select * from ( select * from (
select *,'1' as type from kc_gongkaike where rq >= DATE_FORMAT(now(),'%Y-%m-%d') ORDER BY rq asc select *,'1' as type from kc_gongkaike where rq >= DATE_FORMAT(now(),'%Y-%m-%d') ORDER BY rq asc,kssj asc
) a2 ) a2
union union
select *,'2' as type from kc_gongkaike where rq < DATE_FORMAT(now(),'%Y-%m-%d') ORDER BY rq desc select *,'2' as type from kc_gongkaike where rq < DATE_FORMAT(now(),'%Y-%m-%d') ORDER BY rq desc,kssj desc
) a ORDER BY type asc ) a ORDER BY type asc
) a ) a
${ew.customSqlSegment} ${ew.customSqlSegment}