<select id="selectOrderNoByEmptyColumn" parameterType="com.dhc.crm.datasarrange.domain.InvoiceApplication" resultType="java.lang.String">
select ORDER_NO from invoiceapplication where ifnull(ORDER_NO,'') = ''or ifnull(LINE_NO,'') = '' or ifnull(REL_NO,'') = '' or ifnull(TOTAL_PERCENTAGE,'') = '' or ifnull(AMOUNT,'') = ''
or ifnull(AMOUNT_INCL_TAX,'') = '' or ifnull(COMPANY_NO,'') = '' or ifnull(C_REQUISITION_NO,'') = '' or ifnull(C_APPROVAL_STATUS,'') = '' or ifnull(C_PLANN_STAGE,'') = '' or ifnull(C_BILL_DATE,'') = ''
or ifnull(C_PERFORMANCE_AMT,'') = '' or ifnull(FinancialVoucherTime,'') = ''
</select>
光使用is Null的话,会筛选不出来空字符串的数据。写is Null or != ""又太臃肿,因此使用ifnull(列名,’’) = ‘’。