查询语句: SELECT twtkseq 序号,twtkdocdt 填报日期,twtk001 检查人,twtk002 受查部门,twtk003 受查区域,twtk004 责任人,twtk005 看板未更新,twtk006 量具失控,twtk007 量具超期,twtk008 整改缺失,twtk009 安全隐患,twtk010 劳保缺失 FROM dbo.[twtk_t] where 1=1 ${if(len(填报日期)==0," ","and twtkdocdt>= '"+填报日期+"'")} ${if(len(填报日期止)==0," ","and twtkdocdt<= '"+填报日期止+"'")} ${if(len(检查人)==0," ","and twtk001 = '"+检查人+"'")} ${if(len(受查部门)==0," ","and twtk002 = '"+受查部门+"'")}
|