服务指令-生成工单时,如果是护理单元则派单nu状态,其它不判断

This commit is contained in:
曹磊 2026-01-21 17:07:13 +08:00
parent 9195930833
commit e83565f512
1 changed files with 4 additions and 4 deletions

View File

@ -129,8 +129,8 @@
a.start_time as startTime, a.start_time as startTime,
(case when c.orderly is null then 2 else 1 end) as orderEmp (case when c.orderly is null then 2 else 1 end) as orderEmp
from nu_biz_nu_directive_data_pool a 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' 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)
left join nu_biz_elder_info c on a.nu_id = c.nu_id and c.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' 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' where a.iz_orders = 'N'
order by a.start_time,orderEmp,a.nu_id order by a.start_time,orderEmp,a.nu_id
@ -458,8 +458,8 @@
iz_package, iz_package,
(case when c.orderly is null then 2 else 1 end) as orderEmp (case when c.orderly is null then 2 else 1 end) as orderEmp
from ${tableName} m from ${tableName} m
inner join nu_base_info b on m.nu_id = b.nu_id and b.del_flag = '0' inner join nu_base_info b on m.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)
left join nu_biz_elder_info c on m.nu_id = c.nu_id and c.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 m.cycle_type_id = d.item_value and d.dict_code = 'period_type' left join view_sys_dict d on m.cycle_type_id = d.item_value and d.dict_code = 'period_type'
where m.id = #{id} where m.id = #{id}
and m.cycle_type_id = '2' and m.cycle_type_id = '2'