派发工单-指令池查询指令调整:原本只查询老人已入住的房间,改为去掉这个条件,原因(比如日常房间清洁维护的指令,执行时可能是空房间)

This commit is contained in:
1378012178@qq.com 2026-03-03 13:56:20 +08:00
parent 26a1435058
commit 1d7e993fc4
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@
a.start_time as startTime,
(case when c.orderly is null then 2 else 1 end) as orderEmp
from nu_biz_nu_directive_data_pool a
inner join nu_base_info b on a.nu_id = b.nu_id and b.del_flag = '0' and (case when b.area_flag = 1 then b.status = '2' else 1=1 end)
inner join nu_base_info b on a.nu_id = b.nu_id and b.del_flag = '0'
left join nu_biz_elder_info c on b.elder_id = c.id and c.del_flag = '0'
left join view_sys_dict d on a.cycle_type_id = d.item_value and d.dict_code = 'period_type'
where a.iz_orders = 'N'