| | |
| | | </if> |
| | | <if test="fdAdmin != null and fdAdmin != '' "> <!-- 在车辆分单页面时 --> |
| | | and ( |
| | | (a.td_wfdsl=0 and exists (select 1 from fd_xstdmx tdmx where tdmx.tdmx_tdls = a.td_tdls and |
| | | tdmx.tdmx_gbbz=0 and exists(select 1 from bussinesssheet bs where bussinessNo=tdmx.tdmx_fdywbh |
| | | and cardno is not null and cardno!='') ) |
| | | (a.td_wfdsl=0 and exists |
| | | ( |
| | | select 1 from fd_xstdmx tdmx where tdmx.tdmx_tdls = a.td_tdls and tdmx.tdmx_gbbz=0 and exists |
| | | (select 1 from bussinesssheet bs where bussinessNo=tdmx.tdmx_fdywbh and cardno is not null and cardno!='' and sstatus='在办') |
| | | ) |
| | | ) <!-- 全部分单,则车辆有未发卡显示 --> |
| | | or a.td_wfdsl > 0 <!-- 有未分单显示 --> |
| | | ) |