<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.saye.hospitalgd.mapper.ThirdFtpConfigMapper">

   <select id="findThirdFtpConfigList" parameterType="HashMap" resultType="HashMap">
        select id,MCH_ID,FTP_HOST,FTP_PORT,FTP_USER,FTP_PASSWORD,FTP_PATH,FTP_FILE_NAME,LOCAL_PATH,bill_table_name,execute_class,is_active
        from third_ftp_config
        <where>
            <if test="is_active!=null and is_active!=''">
                and is_active = #{is_active}
            </if>
            <if test="thirdConfigId!=null and thirdConfigId!=''">
                and id=#{thirdConfigId}
            </if>
        </where>
   </select>
    <select id="findWLIF" parameterType="HashMap" resultType="HashMap">
        select
        CUST_ID
        ,USER_ID
        ,TX_CODE
        ,PASSWORD
        ,LANGUAGE
        ,WLIP
        ,WLPORT
        ,FILEPATH
        ,FUBS
        ,EXECUTE_CLASS from wlif
        <where>
            <if test="FUBS!=null and FUBS!=''">
                and FUBS=#{FUBS}
            </if>
        </where>

    </select>

</mapper>