判斷不為空
where 1=1 // 此句用來處理某些全要判空的情況
<if test="compShopMO.uciCompName != null and compShopMO.uciCompName != ''"> and USER_COMPANY_INFO.UCI_COMP_NAME = #{compShopMO.uciCompName} </if>
判斷為空
<if test="compShopMO.uciCompName == null or compShopMO.uciCompName == ''"> and USER_COMPANY_INFO.UCI_COMP_NAME = #{compShopMO.uciCompName} </if>