main
黄海 8 months ago
parent 01f484aa0c
commit 4c19795b2f

@ -2,10 +2,14 @@
#namespace("Gtzz")
-- 获取指定步骤的项目列表(待办) max()...group by 只显示同一个项目+步骤CODE的最后一条
#sql("getToDoStepList")
select '#(person_id)' as operator_id,progress_id,subject_id,subject_name,org_code,subject_type_id,subject_type_name,
step_code,step_name,action_bureau,year,check_status,is_current,begin_time,
select '#(person_id)' as operator_id,progress_id,subject_id,subject_name,org_code,subject_type_id,
subject_type_name,step_code,step_name,action_bureau,year,check_status,is_current,begin_time,
task_number,data_type,is_back_log,lixiang_time,org_name as xmdw
from t_gtzz_progress as ta where is_finish_flag <3 and progress_id in
from t_gtzz_progress as ta where is_finish_flag <3
#if(data_type)
and ta.data_type=#(data_type)
#end
and progress_id in
(
select max(progress_id) from t_gtzz_progress where step_code in
(

Loading…
Cancel
Save