| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.mandi.fendan.mapper.Fd_XSTDMapper"> |
| | | <sql id="column"> |
| | | a.td_bmbh,a.td_bmmc,a.td_bz,a.td_djrq,a.td_fpbh, a.td_jylx, a.td_khbh,a.td_cqNo, |
| | | a.td_bmbh,a.td_bmmc,a.td_bz,a.td_djrq,a.td_fpbh, a.td_jylx, a.td_khbh,a.td_cqNo,a.committime, |
| | | CASE WHEN a.td_fpbh IS NULL THEN b.name WHEN a.td_fpbh= '' THEN b.name |
| | | WHEN a.td_ywdybh= '101' THEN '河南报关' WHEN a.td_ywdybh= '102' THEN '郑州报关' WHEN a.td_ywdybh= '111' THEN '明晟报关' WHEN a.td_ywdybh= '114' THEN '义瑞报关' ELSE '科技报关' |
| | | END td_khmc, |
| | |
| | | </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 <!-- 有未分单显示 --> |
| | | ) |