|
|
@@ -265,10 +265,10 @@
|
|
|
from show_dlyc
|
|
|
where del_flag = '0'
|
|
|
and rectify_result='未处理'
|
|
|
- and file_id =
|
|
|
- (select max(id) from show_file where data_type = 'yctj' and imp_result = '1')
|
|
|
- and ssgq is not null) x
|
|
|
- right join sys_dict_data t1 on x.ssgq = t1.dict_label
|
|
|
+ and file_id = (select max(id) from show_file where data_type = 'yctj' and imp_result = '1')
|
|
|
+ and ssgq = '电力维修队'
|
|
|
+ ) x
|
|
|
+ right join sys_dict_data t1 on x.ssgq = t1.dict_label
|
|
|
where t1.dict_type = 'dlyc_sygq'
|
|
|
group by t1.dict_label
|
|
|
</select>
|