fix:79150

This commit is contained in:
梁琦涛
2023-12-08 11:57:35 +08:00
parent a626ec251b
commit 09841493bf
@@ -15,9 +15,9 @@
case when standard_state = 5 then 2 case when standard_state = 5 then 2
when standard_state = 6 then 1 when standard_state = 6 then 1
when standard_state = 7 then 3 when standard_state = 7 then 3
else '' else null
end as standard_state_order, end as standard_state_order,
standard_class,dynamic_type,applicable_vehicle,standard_property,standard_state,'' as standard_code,'' as grade_classification, standard_class,dynamic_type,applicable_vehicle,standard_property,standard_state,null as standard_code,null as grade_classification,
implementation_date implementation_date
from laws_domestic_standard where del_flag = 0 from laws_domestic_standard where del_flag = 0
union all union all
@@ -25,23 +25,23 @@
case when standard_state = 5 then 2 case when standard_state = 5 then 2
when standard_state = 6 then 1 when standard_state = 6 then 1
when standard_state = 7 then 3 when standard_state = 7 then 3
else '' else null
end as standard_state_order, end as standard_state_order,
standard_class,'',applicable_vehicle,'',standard_state,'','',implementation_date standard_class,null,applicable_vehicle,null,standard_state,null,null,implementation_date
from laws_overseas_standard where del_flag = 0 from laws_overseas_standard where del_flag = 0
union all union all
select id,'3' as resource_type,CONCAT_WS(' ',standard_number,standard_name) AS standard_name,create_time,6 as standard_type_order, select id,'3' as resource_type,CONCAT_WS(' ',standard_number,standard_name) AS standard_name,create_time,6 as standard_type_order,
case when standard_state = 5 then 2 case when standard_state = 5 then 2
when standard_state = 6 then 1 when standard_state = 6 then 1
when standard_state = 7 then 3 when standard_state = 7 then 3
else '' else null
end as standard_state_order, end as standard_state_order,
'','','','',standard_state,standard_code,grade_classification,implementation_date null,null,null,null,standard_state,standard_code,grade_classification,implementation_date
from laws_enterprise_standard where del_flag = 0 from laws_enterprise_standard where del_flag = 0
union all union all
select id,'4' as resource_type,dynamic_heading as standard_name,create_time,9 as standard_type_order, select id,'4' as resource_type,dynamic_heading as standard_name,create_time,9 as standard_type_order,
'' AS standard_state_order, null AS standard_state_order,
'','','','','','','','' null,null,null,null,null,null,null,null
from laws_news_feed where del_flag = 0 from laws_news_feed where del_flag = 0
) as all_data ) as all_data
<where> <where>